Free ER Diagram — Online SQL to ER Diagram Generator

Free ER Diagram is a free online tool that instantly converts SQL DDL (CREATE TABLE) statements into beautiful entity-relationship diagrams. No signup required, no data uploaded — everything runs locally in your browser.

Key Features

How to Use

  1. Paste SQL DDL — Copy your CREATE TABLE statements from your database and paste them into the editor on the left panel.
  2. Click "Parse All DDL" — Or press Ctrl/Cmd + Enter. The tool will parse your SQL and extract table structures, columns, data types, and constraints.
  3. View ER Diagram — Your entity-relationship diagram appears on the right panel. Switch between PlantUML (remote rendering) and Mermaid (local rendering) formats.
  4. Customize — Add custom relationships, organize tables into groups, switch between compact and detailed display modes, and choose vertical or horizontal layout.
  5. Export — Download your diagram as PNG or PDF, or share it via a URL link.

Supported SQL Dialects

Free ER Diagram supports SQL DDL from multiple database systems including MySQL, PostgreSQL, SQLite, MariaDB, SQL Server, and Oracle. The parser handles CREATE TABLE statements with columns, data types, PRIMARY KEY, FOREIGN KEY, UNIQUE, NOT NULL, DEFAULT, AUTO_INCREMENT, COMMENT, and other common constraints.

Frequently Asked Questions

Is this tool really free?

Yes, completely free. No signup, no credit card, no usage limits. Just paste your SQL and generate diagrams instantly.

Is my data safe?

Absolutely. All data is processed locally in your browser. Your SQL statements are never uploaded to any server. The only external service used is PlantUML's public server for rendering PlantUML diagrams.

What is the difference between PlantUML and Mermaid?

PlantUML renders diagrams on a remote server and produces high-quality images suitable for documentation. Mermaid renders diagrams locally in your browser with interactive features and multiple theme options. Both formats are widely used in software documentation.

Can I use this for database design?

Yes! Free ER Diagram is perfect for visualizing existing database schemas, planning new databases, creating documentation, and sharing database designs with your team.