← Try the tool
Browser-Based

Database Diagram Online

Paste SQL or connect to your PostgreSQL database right in your browser. See your schema as an interactive diagram in seconds.

Browser-Based

Paste SQL or Connect

Live Preview

dbdiagramr.space/visualize
Mini Map

Two ways to visualize your schema

Paste SQL for a quick preview, or connect to your live database for the full picture.

dbdiagramr.space/visualize
CREATE TABLE users {
  id uuid PRIMARY KEY,
  name varchar(255) NOT NULL,
  email varchar(255) UNIQUE
};

CREATE TABLE posts {
  id uuid PRIMARY KEY,
  user_id uuid REFERENCES users(id),
  title text,
  created_at timestamptz
};
Generate diagram2 tables, 1 relationship detected

What the diagram shows

  • All tables with their columns and data types
  • Primary keys highlighted on each table
  • Foreign keys drawn as lines connecting related tables
  • Nullable columns marked so you can see optional relationships

Frequently asked questions

Do I need to install anything?

No. dbdiagramr runs entirely in your browser. There is nothing to download, install, or configure. Just open the tool, paste your connection string, and see your diagram.

Can I use this with MySQL?

Not yet. dbdiagramr currently supports PostgreSQL only. We focus on doing one database really well. If you need MySQL support, let us know on GitHub.

How is this different from pgAdmin?

pgAdmin shows your tables in a list and has a basic ERD tool. dbdiagramr generates a fully interactive diagram you can pan, zoom, and hover to trace foreign key relationships -- all from a connection string with no setup.

Can I share the diagram with my team?

Yes. Export as PNG or SVG to share in docs, Slack, or GitHub. You can also share the interactive diagram link so your team can explore the schema themselves.

Is there a limit on how many diagrams I can create?

The free plan includes 5 diagrams per month. Pro costs $8/month for unlimited diagrams. No credit card is required to try the free plan.

Create your database diagram now

Paste your PostgreSQL connection string and get an interactive database diagram in under 10 seconds. No install required.

Try it free →