IRIntellrise
Free tool

ER diagram generator

Paste your CREATE TABLE statements and get an entity-relationship diagram — tables, columns, primary and foreign keys, and the lines between them. Download it as an .svg, or take the Mermaid erDiagram and paste it straight into a README. Free, no signup, and the SQL is parsed in this browser tab — it is never uploaded.

Parsed in this browser tab — the SQL is not uploaded.

How it works

  1. Paste one CREATE TABLE statement or a whole schema dump. Anything that is not a CREATE TABLE — indexes, grants, inserts, comments, function bodies — is skipped rather than treated as an error, and SQL that appears inside a string (a migrations table storing its own DDL, say) is read as the data it is rather than as another table.
  2. Each table becomes a box, each column a row in it, with PK and FK marked and the declared type on the right.
  3. A foreign key is drawn as a line whenever the SQL says unambiguously which table it points at. Solid means NOT NULL, dashed means nullable. The two cases that get named under the diagram instead of drawn: the target table is not in what you pasted, or it is in there more than once under different schemas and the reference did not say which.
  4. Copy or download the SVG, or switch to the Mermaid tab for a block you can commit alongside the schema itself.

The lines it will not draw

This diagram is a reading of your DDL, and DDL only knows what was declared in it. A relationship your team maintains by convention — a customer_id column with no FOREIGN KEY behind it — will not get a line, because inferring one from a column name would put a guess on the picture in the same ink as the facts. The same goes for cardinality: CREATE TABLE cannot tell a one-to-one from a many-to-one without a UNIQUE constraint to go with it, so every drawn relationship is shown as many-to-one and nothing claims more. If the diagram comes out sparser than the schema in your head, the difference between the two is a real finding about the database rather than a shortcoming of the drawing, and it is usually the part worth taking to whoever owns it — a constraint that exists only in everyone's memory is not enforced by anything.

You drew the schema because you are about to ask it something

Nobody generates an ERD for its own sake. It comes out when you are new to a database and need to know what joins to what before you can ask it anything useful. Intellrise is the step after that: connect the same database, ask in plain English, and get the chart back — and because it reads your schema the way this page just did, it knows which tables join to which without being told again. Every result carries a Show SQL toggle with the query it actually ran, because a number you cannot check is not an answer.

Intellrise is an AI data analyst for your own database or spreadsheet: ask in plain English, get charts, dashboards and reports back. Every new account starts on a 14-day Pro trial with no card — nothing to enter, nothing to cancel — and lands on a permanently free tier after it lapses. Every plan, the trial included, runs on your own AI provider key; a Google Gemini key is free to create.

Frequently asked questions

No. The SQL is parsed by JavaScript running in this browser tab — there is no request carrying it, no account and no login. Close the tab and nothing of it remains.