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.
How it works
- Paste your SQL schema into the editor (PostgreSQL, MySQL, SQLite, SQL Server, Oracle…).
- The diagram renders instantly so you can verify it.
- Click Export → PlantUML and copy the
@startumlblock. - 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 →
Guide
The export produces a classic PlantUML entity diagram: each table becomes an entity block with a *-marked primary key and typed fields, and each foreign key becomes a crow's-foot connector (users ||--o{ posts). It's the notation your Confluence, XWiki, AsciiDoc or Doxygen setup already renders — no new toolchain to adopt.
Where people take the output:
- Confluence pages with the PlantUML macro — paste, save, done.
- READMEs rendered through
plantumlGitHub Actions or pre-commit renderers. - VS Code with any PlantUML preview extension for a local render loop.
The difference from generating PlantUML by hand or with a script: the live diagram here verifies the relationships before you commit the artifact. A wrong join shows up as a wrong crow's-foot immediately. And if PlantUML turns out to be the wrong target — your docs move to Markdown, say — the same parse exports Mermaid and DBML too. One paste, three notations, all client-side.
Why use it
- Private: everything runs in your browser — nothing is uploaded or stored on a server.
- Docs-ready PlantUML for Confluence, wikis and READMEs.
- Preview first — see the diagram before exporting.
- Free & open source — no account, no sign-up.
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.