SQL Schema Visualizer

Turn SQL DDL into an interactive ER diagram.

Paste CREATE TABLE statements from PostgreSQL, MySQL, or SQLite. Get a navigable map of tables, columns, primary keys, and foreign keys — in your browser, no signup.

your schema·app.posts
schema.sql
sql
CREATE TABLE app.posts (
  id SERIAL PRIMARY KEY,
  author_id INT NOT NULL REFERENCES app.authors(id),
  slug VARCHAR(255) UNIQUE NOT NULL,
  title VARCHAR(500) NOT NULL,
  body TEXT,
  published BOOLEAN DEFAULT FALSE,
  published_at TIMESTAMPTZ,
  created_at TIMESTAMPTZ DEFAULT NOW()
);
the sample·6 tables · 5 foreign keys
Mini Map
primary_key

id SERIAL PRIMARY KEY

foreign_key

author_id REFERENCES authors(id)

unique

slug VARCHAR(255) UNIQUE

nullable

body TEXT

free · no signup · runs in your browser

Visualize your schema

capabilities

Everything you need to explore a schema.

Built for engineers who want to understand a database layout in seconds, not hours.

Interactive canvas

Pan, zoom, and drag nodes. Hover to trace foreign keys across tables and schemas.

Auto layout

Tables arrange themselves to minimize edge crossings. Reset any time.

Multi-schema support

Switch between schemas to focus on one area, or view cross-schema foreign keys at a glance.

Export to PNG and SVG

Download a high-resolution image of your diagram for docs, slides, or pull requests.

Privacy first

All parsing and rendering happens in your browser. Your SQL never leaves the client.

Copy as SQL or Markdown

Round-trip a schema between your editor, a doc, and the visualizer without losing structure.

How it works.

From raw SQL to a clean ER diagram in three steps.

  1. 01

    Paste your SQL

    Drop in CREATE TABLE statements with primary key, foreign key, and unique constraints.

  2. 02

    Render the graph

    The parser builds a table-and-column model and computes an automatic layout.

  3. 03

    Explore and export

    Pan and zoom the canvas, filter by schema, and download a PNG or SVG when you are ready.