ER Diagram Generator
Describe your database schema in plain text — define entities, fields, types, and relationships — and instantly get a professional, industry-grade entity-relationship diagram. Export as SVG or PNG.
Fields without a prefix are regular columns. All field names support spaces if quoted.
What is an ER Diagram?
An Entity-Relationship (ER) diagram is a visual blueprint of a database. It shows the entities (tables), their attributes (columns), and the relationships between them. ER diagrams are used by database architects, backend developers, and software teams during the design phase to plan and communicate database structure before writing any code.
How to use this tool
- Define each table using the
entitykeyword followed by a name and curly braces - Inside each entity, list fields with an optional prefix:
PKfor primary key,FKfor foreign key,UKfor unique key - After the field name, specify the SQL data type (INT, VARCHAR, DATETIME, etc.)
- Define relationships using the
relationkeyword withone-to-one,one-to-many, ormany-to-many - Use the template buttons to load a full working example and customise from there
Enjoying this tool?
Every tool here is free, forever — no signup, no paywall. If this one just saved you real time, a small tip keeps them free and ad-light.
☕ Support This Tool →Need something built, not just formatted?
This toolbox is free. If your business needs custom software, AI integration, or a system built around this kind of tooling, that's what I do for a living.