SQL to ER Diagram
Home › TypeORM

TypeORM to ER Diagram

Visualize your TypeORM entities as an interactive ER diagram. The most reliable path is to let TypeORM emit the SQL for your entities and paste that — every column type and relation comes through exactly.

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

How it works

  1. Generate the schema SQL from your entities: run a migration with typeorm migration:generate, or log the SQL from synchronize.
  2. Copy the CREATE TABLE / ALTER TABLE statements.
  3. Paste them into the editor — the SQL is parsed and tables + foreign keys are drawn.
  4. Arrange, hide tables, then export PNG/SVG or convert to Mermaid/DBML.

Example

TypeORM generates SQL like this from your entities:

CREATE TABLE "user" (
  "id" SERIAL PRIMARY KEY,
  "email" varchar NOT NULL
);

CREATE TABLE "post" (
  "id" SERIAL PRIMARY KEY,
  "authorId" integer REFERENCES "user"("id")
);

…renders two tables with a relation from post.authorIduser.id. Try it with your own →

Why use it

TypeORMSQLPrismaSequelize

FAQ

How do I get an ER diagram from TypeORM?

Have TypeORM emit the SQL for your entities (via migration:generate or by logging the synchronize SQL), then paste those CREATE TABLE statements here.

Why use the generated SQL instead of the entity files?

The generated SQL is the source of truth for the actual database shape — column types, defaults and foreign keys are all explicit, so the diagram is exact.

Is my schema uploaded anywhere?

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

Is it free?

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

Related