Design database schemas visually — even offline.
RelateDB is a browser-based ERD studio for modeling tables, columns, and relationships. Everything is free and unlimited locally.
Everything you need for schema design
A fast canvas for modeling + thoughtful productivity features for real projects.
Tables as nodes, relations as edges. Drag, select, edit, and keep the big picture visible across schemas.
Work persists locally via IndexedDB-backed storage. Refresh, reopen, and continue without servers.
Bring in DBML or SQL CREATE TABLE, then refine visually and keep schemas organized in workspaces.
Export SQL for Postgres/MySQL, export DBML, render the canvas to PNG/JPG/SVG, or create a read-only share link (including snapshots).
ELK-based auto layout per schema with packing across schemas, aligned to sidebar order — with lock-position support.
Save snapshots, rename them, export them, and compare versions against your current schema with visual diffs.
Export workspace backups (.relatedb.json) and generate Postgres/MySQL migration SQL between versions.
From idea → schema → export
A smooth loop for iterating quickly, keeping it consistent, and shipping confidently.
Create tables, columns, and relationships. Add notes and areas for context.
Split work into schemas. Keep an active schema while still visualizing cross-schema structure.
Generate SQL/DBML, migration SQL, backups, export diagram images, or share a read-only link for reviews (including snapshot versions).
Unlimited locally.
RelateDB is free to use with no limits for local-first work.
Common questions
Short answers for first-time users and teams evaluating the workflow.
Yes — state persists locally (IndexedDB-backed). You can refresh/reopen and keep working without a server.
No. Everything runs locally in your browser.
Yes — import DBML or SQL CREATE TABLE and continue editing visually.
Yes — export SQL for Postgres/MySQL and export DBML at the schema or workspace level.
Yes — save schema snapshots, compare versions, and export Postgres/MySQL migration SQL between snapshots and/or the current schema.
Yes — export a .relatedb.json workspace backup and restore it later via the Import modal.
Support me