SQL to ER Diagram
Home › Snowflake

Snowflake to ER Diagram

Paste your Snowflake CREATE TABLE (or CREATE OR REPLACE TABLE) statements and get an interactive entity-relationship diagram of your warehouse schema — tables, columns and foreign keys, drawn automatically.

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

How it works

  1. Get the DDL with SELECT GET_DDL('TABLE', 'your_table') in a worksheet, or copy your CREATE TABLE statements.
  2. Paste it into the editor — Snowflake SQL parses, including CREATE OR REPLACE and TRANSIENT tables.
  3. Tables render with types like VARIANT, NUMBER and TIMESTAMP_NTZ; foreign keys become relations.
  4. Arrange, hide tables, then export PNG/SVG or convert to Mermaid/DBML.

Example

A Snowflake schema like this:

CREATE OR REPLACE TABLE customers (
  id NUMBER(38,0) PRIMARY KEY,
  email VARCHAR NOT NULL,
  profile VARIANT
);

CREATE TABLE orders (
  id NUMBER(38,0) PRIMARY KEY,
  customer_id NUMBER(38,0) REFERENCES customers(id)
);

…renders two tables with a relation from orders.customer_idcustomers.id. Try it with your own →

Why use it

SnowflakeBigQueryPostgreSQLSQL Server

FAQ

How do I diagram a Snowflake schema?

Run SELECT GET_DDL('TABLE', 'your_table') (or script several tables) and paste the DDL here. CREATE OR REPLACE TABLE and foreign keys are handled.

Is my schema uploaded anywhere?

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

Can I export the diagram?

Yes — export a high-resolution PNG or vector SVG, copy the schema as Mermaid, DBML or PlantUML, or share a link that encodes the whole diagram in the URL.

Is it free?

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

Related