SQL to ER Diagram
Home › SQLite

SQLite to ER Diagram

Paste your SQLite schema — the output of .schema — and get an interactive ER diagram of every table, column and relationship.

Open the diagram tool →
No signup · nothing uploaded · export PNG / SVG / Mermaid / DBML · shareable link

How it works

  1. In the sqlite3 shell run .schema (or .schema --indent) and copy the output.
  2. Paste it into the editor — SQLite is parsed automatically.
  3. Tables render with columns; REFERENCES become relations.
  4. Arrange, hide tables, then export PNG/SVG or share a link.

Example

A SQLite schema like this:

CREATE TABLE customers (
  id INTEGER PRIMARY KEY AUTOINCREMENT,
  email TEXT NOT NULL UNIQUE
);

CREATE TABLE orders (
  id INTEGER PRIMARY KEY AUTOINCREMENT,
  customer_id INTEGER NOT NULL REFERENCES customers(id)
);

…renders two tables with a relation from orders.customer_idcustomers.id. Try it with your own →

Why use it

SQLitePostgreSQLMySQLSQL Server

FAQ

How do I diagram a SQLite database?

Open it with sqlite3 mydb.db, run .schema, and paste the output here. The diagram is generated instantly.

Is my schema uploaded anywhere?

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

Can I export the diagram?

Yes — export a high-resolution PNG or vector SVG, copy the schema as Mermaid, DBML or PlantUML, or share a link that encodes the whole diagram in the URL.

Is it free?

Yes. It is completely free and open source, with no account or sign-up required.

Related