Raw capture โ€” raw/sqltoerdiagram.md


url: https://github.com/royalbhati/sqltoerdiagram date_fetched: 2026-07-05 backfilled: true


A free, open-source online ERD generator. Paste a SQL schema (CREATE TABLE statements) โ†’ get a clean, interactive entity-relationship diagram.

100% local ยท no signup ยท no upload. It runs entirely in your browser, so your schema never leaves your machine โ€” no server, no backend. Live at sqltoerdiagram.com.

Every other SQL-diagram tool is either paywalled, ugly, or slow. SQL to ER Diagram is a single static page that stays smooth at hundreds of tables, edits your SQL two-way, and shares a whole diagram in a single link โ€” with no account and nothing leaving your browser.

npm install
npm run dev      # http://localhost:5173
npm run build    # outputs static files to dist/
npm run preview  # preview the production build locally

dist/ is plain static HTML/JS/CSS โ€” drop it on any static host:

Select BigQuery from the dialect dropdown to work with BigQuery SQL instead of DDL.

Key Action
โŒ˜ / Ctrl + Enter Re-arrange
Double-clickcanvas Zoom in
Drag the pane divider Resize the editor

MIT ยฉ Royal Bhati. Fork it, self-host it, add your own SQL dialects โ€” go for it.