SQL to ER Diagram — a free online SQL diagram generator and database schema visualizer. Convert a SQL schema (CREATE TABLE / DDL) into an interactive entity-relationship diagram (ERD) right in your browser. Turn SQL into a diagram instantly — no signup, nothing uploaded.

SQL to ER Diagram part of yourbrowsercandoit.com

Paste SQL, see the schema.

Drop your CREATE TABLE statements on the left. Drag tables, scroll to zoom, double-click to rename, export when done.

100% local — your schema never leaves your browser. No accounts, no uploads.

SQL to ER Diagram — free online SQL diagram generator & schema visualizer

SQL to ER Diagram is a free, open-source tool that converts a SQL schema into a diagram — an interactive entity-relationship diagram (ERD) — right in your browser. Paste your CREATE TABLE statements or raw DDL and instantly visualize tables, columns, primary keys, foreign keys and relationships. Use it as a SQL diagram generator, a SQL schema visualizer, or a SQL-to-ERD converter — it works with PostgreSQL, MySQL, SQLite, SQL Server, Oracle, MariaDB, Snowflake and BigQuery. Drag tables, auto-arrange the layout, add notes, and export to PNG, SVG, Mermaid, DBML or PlantUML. Nothing is uploaded — your schema stays on your machine. It also reads Prisma schemas, DBML, Mermaid, SQLAlchemy and Sequelize. It's part of yourbrowsercandoit.com, a collection of free tools that run entirely in your browser — nothing uploaded.

Guides & converters

Frequently asked questions

How do I create an ER diagram from SQL?

Paste your SQL CREATE TABLE statements into the editor and SQL to ER Diagram instantly renders an interactive entity-relationship diagram. Drag tables to arrange them, then export as PNG or SVG.

How do I convert SQL to a diagram online?

Paste your SQL CREATE TABLE statements or DDL and the tool instantly converts them into an interactive diagram you can drag, arrange and export to PNG, SVG, Mermaid, DBML or PlantUML — a free online SQL-to-diagram converter, no signup.

Is this a SQL schema visualizer?

Yes. It visualizes any SQL database schema as an entity-relationship diagram — every table, column, key and foreign-key relationship — and works with PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, Oracle, Snowflake and BigQuery.

Which SQL dialects are supported?

It parses standard CREATE TABLE and ALTER TABLE DDL and works with PostgreSQL, MySQL, MariaDB, SQLite, SQL Server, Oracle, Snowflake and BigQuery syntax, including primary keys, foreign keys, unique and not-null constraints.

Is it free?

Yes. SQL to ER Diagram is completely free and open source, with no account or sign-up required.

Is my data private? Does my SQL get uploaded?

Everything runs locally in your browser. Your SQL schema is never uploaded to or stored on any server.

Can I export the diagram?

Yes. You can export a high-resolution PNG or a vector SVG, save the full project as a file, or copy a shareable link that encodes the diagram in the URL.

Do I need to install anything?

No installation needed. It runs entirely in your web browser on both desktop and mobile.