SQL to ER Diagram
Home › SQL to PlantUML

SQL to PlantUML

Paste your SQL CREATE TABLE statements and get a PlantUML entity diagram you can drop into your docs or wiki — plus a live, interactive diagram to check it first.

Open the diagram tool →
No signup · nothing uploaded · export PNG / SVG / Mermaid / DBML · shareable link

How it works

  1. Paste your SQL schema into the editor (PostgreSQL, MySQL, SQLite, SQL Server, Oracle…).
  2. The diagram renders instantly so you can verify it.
  3. Click Export → PlantUML and copy the @startuml block.
  4. Paste it into any PlantUML renderer, Confluence, or your docs.

Example

This SQL:

CREATE TABLE users (
  id SERIAL PRIMARY KEY,
  email TEXT UNIQUE
);
CREATE TABLE posts (
  id SERIAL PRIMARY KEY,
  user_id INT REFERENCES users(id)
);

…exports as this PlantUML:

@startuml
entity users {
  * id : serial
  --
  email : text
}
entity posts {
  * id : serial
  --
  user_id : int
}
users ||--o{ posts
@enduml

Copy it from Export → PlantUML. Try it with your own →

Why use it

SQL → PlantUMLSQL → MermaidSQL → DBMLPNG / SVG

FAQ

How do I convert SQL to PlantUML?

Paste your CREATE TABLE statements, then click Export → PlantUML and copy the @startuml block. Foreign keys become relationship connectors.

Is my schema uploaded anywhere?

No. Everything runs locally in your browser — your schema is never uploaded to or stored on any server.

Is it free?

Yes. It is completely free and open source, with no account or sign-up required.

Related