← Try the tool
Free Tool

Free Database Schema Generator

Paste SQL or connect to your PostgreSQL database. Generate a visual schema diagram in seconds. Free forever, no signup.

Free Forever

Paste SQL or Connect

Export SVG/PNG

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

Frequently asked questions

What is a database schema generator?

A database schema generator connects to your PostgreSQL database, reads the tables, columns, and relationships, and creates a visual diagram. It saves you from drawing diagrams by hand.

Is it really free?

Yes. The free plan includes 5 diagrams per month with no credit card required. Pro costs $8/month for unlimited diagrams if you need more.

Does it support MySQL or SQLite?

Currently dbdiagramr supports PostgreSQL only. We focus on doing one database really well. If you need MySQL or SQLite support, let us know on GitHub.

How is this different from drawing a diagram by hand?

Hand-drawn diagrams go stale the moment your schema changes. dbdiagramr reads your live database, so the diagram always reflects your actual schema. Add a column and the diagram updates.

Is my data safe?

Yes. dbdiagramr connects to your database to read the schema and immediately discards the connection string. Your data is never stored, logged, or shared. Nothing is published publicly.

Generate your schema diagram now

Paste your PostgreSQL connection string and get a visual schema diagram in under 10 seconds. Free forever.

Try it free →