qmetrics.net

SQL to ER Diagram

In-browser SQL schema to interactive ER diagram tool

Paste CREATE TABLE DDL and get an interactive entity-relationship diagram in your browser. Parsing and rendering stay on your machine with no upload or account.

Overview

SQL to ER Diagram turns SQL schema definitions into an interactive entity-relationship diagram. You paste CREATE TABLE statements or related schema text, and the tool builds a canvas view of tables, columns, keys, and foreign-key relationships.

Processing runs entirely in the browser, so schema text is not sent to a backend server. The app supports multiple SQL dialects for DDL parsing, including PostgreSQL, MySQL, SQLite, SQL Server, and Snowflake, and can also ingest Prisma, DBML, Mermaid, PlantUML, and several ORM model formats. You can drag tables, zoom and pan, auto-arrange layout, edit names and types on the canvas with changes reflected back in the SQL, and add notes or group boxes on the diagram.

You can keep several named diagrams in the browser, use version snapshots, compare schemas and generate migration SQL, export PNG or SVG, save or open JSON project files, and share diagrams via a URL that encodes the project in the fragment. A service worker can cache the app for offline use after the first visit. Static build output can be hosted on generic static hosting if you want your own copy of the site.

The authors position it as a free alternative to tools they describe as paywalled, slow, or limited, emphasizing a single static page that remains responsive on large schemas with hundreds of tables.

Key features

  • CREATE TABLE and ALTER TABLE DDL parsing
  • Interactive canvas ERD with zoom and pan
  • Two-way SQL and diagram editing
  • Auto-arrange layout in a Web Worker
  • Import Prisma, DBML, Mermaid, and ORM models
  • PNG, SVG, and project file export
  • Share links with diagram encoded in the URL
  • Offline use via service worker caching

Use cases

  • Documenting an existing database schema visually
  • Exploring foreign keys on large SQL dumps
  • Sharing an ERD without sending SQL to a server
  • Comparing schema versions and drafting migrations
  • Converting or exporting schema between SQL dialects

Open-source alternative to

DrawSQL
“DrawSQL Alternative” source

Tags

Compare SQL to ER Diagram

Similar software

Excalidraw

Open-source collaborative whiteboard for hand-drawn style diagrams

Excalidraw is a virtual whiteboard for sketching diagrams and wireframes in a hand-drawn style. It offers an infinite canvas, real-time collaboration with end-to-end encryption, and is also published as an npm package for embedding.

  • Infinite canvas whiteboard
  • Hand-drawn style shapes
  • Real-time collaboration
TypeScriptWebDetails →
★ 136.9k⟳ todayMIT
Open Source Alternative to:Google DrawingsMiro+1

Supabase

Open-source Postgres platform with auth, APIs, and storage

Supabase bundles a dedicated Postgres database with authentication, auto-generated REST and GraphQL APIs, realtime, functions, file storage, and vector tooling.

  • Dedicated Postgres per project
  • Built-in authentication and RLS
  • Auto-generated REST and GraphQL APIs
TypeScriptDetails →
★ 115.9k⟳ todayApache-2.0
Open Source Alternative to:Amazon AuroraFirebase+1

Mermaid

Text-defined diagrams from Markdown-like syntax

Mermaid turns plain-text diagram definitions into flowcharts, sequence charts, Gantt charts, and many other diagram types. It renders in browsers, documentation tools, and GitHub Markdown.

  • Twenty-plus diagram types
  • Markdown-inspired text syntax
  • Themes and layout customization
TypeScriptCLIDetails →
★ 91.3k⟳ todayMIT
Open Source Alternative to:Google DrawingsVisio

Chart.js

Flexible JavaScript charting library for HTML5 canvas

Chart.js draws animated, customizable charts in the browser using JavaScript and the canvas element, aimed at designers and developers.

  • Multiple animated chart types
  • HTML5 canvas rendering
  • Responsive resize handling
JavaScriptDetails →
★ 67.9k⟳ 4 days agoMIT

NocoDB

Self-hostable no-code database with spreadsheet interface

NocoDB turns Postgres, MySQL, SQLite, or a hosted database into editable tables with grid, kanban, form, gallery, and calendar views. Teams collaborate with roles, sharing, REST APIs, and workflow integrations.

  • Spreadsheet-style grid and alternate views
  • Connect Postgres, MySQL, or SQLite
  • Role-based access and locked views
TypeScriptDockerDetails →
★ 65.7k⟳ todaySource-available
DatabasesSelf-hostable
Alternative to:AirtableGoogle Sheets+1

drawio-desktop

Offline Electron diagram editor from draw.io

draw.io Desktop wraps the draw.io editor in a local Electron application. Diagrams stay on your machine with network isolation outside updates.

  • Local Electron wrapper around draw.io
  • Windows, macOS, and Linux installers
  • Portable and store distribution flavors
JavaScriptLinux, macOS, WindowsDetails →
★ 64.3k⟳ yesterdayGPL-3.0
Open Source Alternative to:Google DrawingsVisio