FREE TOOL
SQL to ER Diagram Generator
Paste SQL here - connect GitHub when you want Moxie to keep data-model docs accurate.
Live Mermaid ER preview, SVG/PNG export, and shareable links in your browser. Optional AI docs for a full data-model writeup. No account needed for the diagram.
Prefer hand-written Mermaid? Open the live diagram editorPaste SQL to generate an ER diagram.
Tired of redrawing ER diagrams after every migration? Export free above · connect a repo when you want Moxie to keep it accurate
Paste Postgres, MySQL, or SQLite CREATE TABLE statements and get a Mermaid erDiagram with relationships and keys.
Download clean SVG or PNG for docs and slides, or copy Mermaid into a README. Shareable links too.
Optional: turn the same schema into Markdown documentation - overview, tables, and relationships.
SQL parsing and diagram rendering run in your browser. Schema never leaves your device unless you ask for AI docs.
Common uses
Drop migration SQL into a shareable ER diagram for PRs and architecture reviews.
Export SVG or paste Mermaid into docs so the schema is visible without a DB client.
Use Document with AI for a Markdown writeup of tables and relationships.
Share a link with SQL and Mermaid encoded in the URL - no accounts, no uploads.
Frequently asked questions
For teams that document code
Tired of redrawing ER diagrams after every migration?
Generate a diagram from SQL here. Connect GitHub when you want Moxie to keep architecture and data-model docs accurate as the schema changes - with reviewable Cleanup PRs every Friday.
Export free above · connect a repo when you want Moxie to keep it accurate