About ER Diagram Maker
An entity-relationship diagram works best when entity names, attributes, keys and cardinalities are explicit. This editor keeps each entity with its attribute rows and a separate relationship list, then generates a Mermaid 12 `erDiagram` with PK/FK markers and cardinality symbols.
The live preview renders locally through Mermaid in the browser. Blog and orders templates are included, duplicate names and unknown relationship endpoints are reported, and the generated source is available as an editable .mmd file alongside SVG, PNG and PDF exports.
What this tool does
Entities and attribute rows
Add entities, then add or remove attributes with a name, type and PK/FK/none marker for each field.
Cardinality-aware relationships
Choose one-to-one, one-to-many or many-to-many; the generator maps these to Mermaid's `||--||`, `||--o{` and `}o--o{` symbols.
Live Mermaid 12 preview
The ER preview updates as the model changes and shows Mermaid parser errors clearly instead of a silent failure.
Validation for real schemas
Duplicate entity or attribute names, invalid identifiers, missing labels and unknown relationship endpoints are listed before rendering.
Blog and orders templates
Start from a blogging schema or an order/customer/product schema and adapt the entities, keys and relationships.
Editable exports
Download SVG, a 2× PNG or the generated .mmd source; the source is the canonical Mermaid version of the model.
How to use ER Diagram Maker
- 01
Add entities
Add an entity row, give it a name and add at least one attribute. Names must start with a letter and use letters, digits or underscores.
- 02
Define attributes and keys
For each attribute provide a name and a type, then mark a primary key, a foreign key or none. Duplicate attributes in one entity are rejected.
- 03
Create relationships
Add a relationship with a source entity, target entity, label and cardinality. One-to-many points from the one side to the many side.
- 04
Review the preview
Check the rendered ER diagram and the generated source. The validation panel explains any issues before Mermaid runs.
- 05
Export the diagram
Download SVG, PNG or PDF for documentation, or download the .mmd file for a Mermaid-compatible wiki or repository.
How this tool works
- Works with
- ENTITIES → ER DIAGRAM
- Processing
- Client-side, in your browser. Nothing is uploaded.
- Requirements
- A modern browser with JavaScript and SVG support · At least one entity with a name and one attribute, plus unique entity and attribute identifiers
Limitations worth knowing
- This is a diagram editor, not a database modeling tool: it does not validate referential integrity, data types or SQL, and it does not generate a schema.
- The generator supports Mermaid's ER syntax without manual layout, color or per-relationship styling controls.
- Diagrams are capped at 30 entities and 100 relationships, and an existing .mmd file cannot be imported for visual editing.
- Rendered output depends on Mermaid's layout engine; visual placement is automatic and not suitable for pixel-precise documentation.
Privacy and file handling
Entity names, attributes, keys and relationships stay inside this browser tab. Mermaid renders locally and every SVG, PNG, PDF and .mmd download is created on your device; the schema is never uploaded, stored on a server or sent over the network.
Read the full privacy policy
