Skip to main content

Database diagrams editor

Instantly visualize your database schema with a single query. No installations, no database passwords required. Experience seamless database design in your browser.

ChartDB interface showing database diagram editor

Get started in seconds

Follow these steps to visualize your database schema with ChartDB

1

Choose your database

Select your database type from PostgreSQL, MySQL, SQL Server, MariaDB, SQLite, ClickHouse, CockroachDB, or Oracle. ChartDB supports all major database engines.
2

Run the Smart Query

Copy the provided Smart Query and execute it in your database. This single query extracts your entire schema as JSON metadata—no database passwords or credentials needed.
PostgreSQL Example
SELECT json_agg(json_build_object(
  'table', tablename,
  'schema', schemaname
)) FROM pg_tables WHERE schemaname = 'public';
3

Paste the results

Copy the JSON output from your query and paste it into ChartDB. Your database schema will instantly appear as an interactive diagram.
4

Visualize and edit

Use the interactive canvas to explore relationships, edit tables, add areas for organization, and export to various formats including SQL DDL scripts and DBML.

Key features

Everything you need to visualize, design, and migrate database schemas

Instant Schema Import

Run a single query to retrieve your database schema as JSON. Fast, secure, and no database passwords required.

Visual Editor

Interactive canvas with drag-and-drop tables, relationships, areas, and sticky notes for documentation.

9 Database Types

Support for PostgreSQL, MySQL, SQL Server, MariaDB, SQLite, ClickHouse, CockroachDB, Oracle, and more.

AI-Powered Migration

Export DDL scripts in any dialect. Migrate from MySQL to PostgreSQL, SQLite to MariaDB, and more with AI assistance.

Multiple Import Methods

Import via Smart Query (JSON), DDL scripts, or DBML files. Choose the method that fits your workflow.

Template Library

Start from pre-built templates for common use cases like e-commerce, SaaS, and content management systems.

Community & support

Get help and connect with other ChartDB users

Discord Community

Join our Discord server to discuss features, report issues, and connect with the community.

GitHub Issues

Report bugs, request features, and track development progress on GitHub.

Contributing

Learn how to contribute to ChartDB. All contributions are welcome.

Twitter Updates

Follow for product updates, tips, and announcements.

Ready to visualize your database?

Get started with ChartDB today. No account required, no installations needed.