ERD Generator — Salesforce Schema Visualization Tool
Skip to main content

ERD Generator

Generate Entity Relationship Diagrams from Salesforce describe API JSON responses.

About the Salesforce ERD Generator

Complex Salesforce data models with dozens of objects and hundreds of relationships are impossible to understand from a list of field names alone. An Entity Relationship Diagram makes the structure visual — showing which objects connect to which, via what relationship type, and in which direction. This tool generates ERDs from Salesforce describe API output using Mermaid.js, with filtering by namespace and focus-node navigation.

What this tool generates

Mermaid ERD

Mermaid.js entity relationship diagram syntax — renderable in GitHub, Notion, Confluence, and any Mermaid-compatible tool.

Relationship Types

Distinguishes lookup vs. master-detail relationships with different line styles. Shows relationship field names and cardinality.

Namespace Filter

Filter objects by namespace prefix to focus on managed package objects, custom objects, or standard objects separately.

SVG Export

Export the rendered diagram as an SVG image for documentation, architecture reviews, or onboarding materials.

Pipeline

  • Field Analyzer — inspect individual object fields before building the ERD.
  • SOQL Builder — write relationship queries across the objects in your diagram.
  • JSON Formatter — validate your describe API JSON before pasting it here.

Frequently asked

Is my Salesforce schema data sent to a server?
No. All ERD generation runs 100% in your browser. Your describe API output — which contains your org's object and field metadata — never leaves your device.
How do I get the describe JSON for multiple objects?
Use the Salesforce REST API: GET /services/data/v59.0/sobjects/{ObjectName}/describe for each object. Or use SFDX CLI: "sf data query --query \"SELECT QualifiedApiName, Label FROM EntityDefinition\"". Paste an array of describe results into this tool.
What is an ERD?
An Entity Relationship Diagram (ERD) is a visual representation of database tables (entities) and the relationships between them. In Salesforce, entities are sObjects and relationships are lookup and master-detail fields. ERDs are essential for understanding complex data models.
What is the difference between a lookup and a master-detail relationship?
A lookup is a loose relationship — the child record can exist without the parent, and deleting the parent does not delete the child. A master-detail is a tight relationship — the child cannot exist without the parent, and deleting the parent cascades to delete all children. Master-detail also rolls up summary fields.
What format does the ERD output use?
The tool generates Mermaid.js ERD syntax, which can be rendered in GitHub Markdown, Notion, Confluence, and many documentation tools. You can also export the diagram as an SVG image.