Text to ER Diagram Generator
Type your tables, columns and relationships as text — get an entity relationship diagram of your database schema instantly. Free online ER diagram generator that renders in your browser and exports a crisp PNG. No sign-up, and your schema never leaves your device.
The demo above is live — edit the code and hit Generate. The example that loads with the page is free; each Generate click uses one of your 10 free generations per day.
How it works
From schema text to an ER diagram in four steps.
Write your schema as text
Entities, attributes and relationships, one per line — like “CUSTOMER ||--o{ ORDER : places”.
Pick “Mermaid diagram”
The visual type is pre-selected on this page.
Hit Generate
Your ER diagram is drawn instantly in your browser — nothing is uploaded.
Download PNG
One click, no watermark — ready for design docs, wikis or reviews.
What goes into an ER diagram
Three building blocks describe any relational database schema — and all three are just text.
Entities
Each box is a table — CUSTOMER, ORDER, PRODUCT — with its columns listed inside.
Attributes and keys
Column names with their types; PK marks primary keys, FK marks foreign keys.
Relationships and cardinality
Crow’s-foot notation shows how many rows connect: one-to-many ||--o{, exactly-one ||--|{.
Private by design: your schema never leaves your browser
Database schemas are usually internal. Text2Viz renders them locally, so nothing is uploaded.
No sign-up, no account
There is nothing to create and nothing to log into. Open the page and start diagramming.
Rendered locally
Your diagram is drawn by JavaScript running on your own device. Your schema is never sent to our servers.
Safe for internal databases
Unshipped features, client databases, internal tools — render them here without a second thought.
What people make with it
Three common ways people use this free ER diagram generator.
Design a new schema
Sketch the tables before you write a migration — see missing keys and broken relationships early.
Document an existing database
Turn a live schema into a diagram for onboarding docs, wikis and architecture reviews.
From AI chat to image
ChatGPT or Claude drafted your schema as erDiagram code? Paste it here and export a shareable PNG.
Frequently asked questions
Is this ER diagram generator free?
How do I turn text into an ER diagram online?
Can AI write the erDiagram code for me?
Can I download the ER diagram as a PNG?
More text-to-diagram tools
The same paste-and-generate flow, tuned for other diagram types.
Sequence Diagram Maker
Map API calls and message flows between users, services and databases.
Mind Map Maker
Turn an indented outline into a radial mind map for brainstorming and notes.
Mermaid Diagram Maker
Any Mermaid syntax — flowcharts, class, state, Gantt, git graphs and more.
Text to Timeline Maker
Dates and events become a clean horizontal timeline. Also see the horizontal, project and history timeline makers.