SQL to ER Diagram
Home › BigQuery

BigQuery to ER Diagram

Turn a BigQuery query into a diagram. Paste a WITH … AS (…) CTE query and each CTE becomes a node, with edges inferred from the FROM / JOIN tables it reads — or paste plain CREATE TABLE DDL for a classic ER diagram.

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

How it works

  1. Copy a BigQuery WITH / CTE query, or your CREATE TABLE DDL.
  2. Paste it into the editor — BigQuery CTE queries are auto-detected.
  3. Each CTE becomes a node; columns come from its SELECT list, and FROM/JOIN references (including backtick project.dataset.table) are drawn as edges.
  4. Arrange, hide nodes, then export PNG/SVG or convert to Mermaid/DBML.

Example

A BigQuery CTE query like this:

WITH customers AS (
  SELECT id, email FROM `proj.shop.customers_raw`
),
orders AS (
  SELECT o.id, o.customer_id
  FROM `proj.shop.orders_raw` o
)
SELECT * FROM orders

…renders customers and orders as nodes, linked to the base tables they read from. Try it with your own →

Why use it

BigQueryCTE / WITHSnowflakeSQL

FAQ

How do I visualize a BigQuery CTE query?

Paste your WITH … AS (…) query. Each CTE becomes a node, columns come from its SELECT list, and references to other CTEs or backtick-quoted project.dataset.table tables are drawn as edges.

Does it work with BigQuery CREATE TABLE DDL too?

Yes — paste standard CREATE TABLE statements and it draws a classic ER diagram with foreign-key relations.

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