# Paste your SQL, get an entity relationship diagram

Source: https://planloom.app/sql-to-erd
Last reviewed: 2026-11-03

Paste CREATE TABLE statements from Postgres, MySQL or SQLite and Planloom draws one box per table with its key columns and one arrow per foreign key. Then open it as an editable canvas to rearrange, annotate and share. It runs in your browser, so your schema is not uploaded.

## Why it matters

- **Foreign keys become arrows.** Inline REFERENCES, table-level FOREIGN KEY and pg_dump style ALTER TABLE statements are all read.
- **Editable, not an image.** The result is real shapes and connectors on a collaborative canvas, ready to restyle and discuss.
- **Private by design.** Parsing happens in your browser. Nothing is sent to a server or to AI.
- **Honest about limits.** Anything it cannot read is skipped and listed, never guessed. Wide tables show their first columns and a count of the rest.

## How to start

1. Paste your CREATE TABLE statements.
2. Check the live preview and any skipped items.
3. Open it as an editable canvas and share the board.

## Frequently asked questions

**Which SQL does it read?**

CREATE TABLE, including inline and table-level primary and foreign keys, and ALTER TABLE ADD FOREIGN KEY, in common Postgres, MySQL and SQLite syntax.

**Does it connect to my database?**

No. You paste SQL text. It never connects to a database and does not upload your schema.

**How many tables can it draw?**

Up to 40 tables per diagram. Split larger schemas by area.

**Does it show every column?**

It shows the first columns of each table and a count of the rest, with primary keys marked, to keep the diagram readable.

Try it: https://planloom.app#tool
