Intellrise
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.

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, type your question, 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 the one-stop AI data analyst for your own database or spreadsheet: one question becomes the SQL, the chart, a dashboard and a report, in one place. 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, needs an AI 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.