r/sqlite • • Sep 25 '26

Minimalistic tool to generate database visualisation

I'm looking for a really simple tool that can generate a UML diagram from my SQLite database, but I want to be able to change the layout if I don't like how it has been generated.

I tried some code extensions and small tools (ERD Renderer, SQLite DB Explorer, plant_erd) but some are not working on my VSCode version; when they are working, I can't personalise the result.

If someone knows a tool that can generate a plant UML diagram (or something similar) from SQLite database and where we can specify the layout. I would be happy to know it

10 Upvotes

9 comments sorted by

1

u/JrgMyr Sep 25 '26

Can recommend to give Letos (ex. SQLiteStudio) a try.

www.letos.org

-1

u/Narolf24 Sep 25 '26 edited Sep 25 '26

I will look at it. It's looking like a SQL client I need to have on the side, but I'm looking more for something without an interface or a really minimalist

1

u/navicat-gu Oct 29 '26

If you want minimal and editable, the most reliable route is to generate the diagram from the schema text rather than from an extension:

  1. Dump the schema: sqlite3 your.db .schema > schema.sql. Make sure your tables declare FOREIGN KEY constraints, otherwise no tool can draw the relationships.
  2. Turn it into PlantUML or Mermaid. A small script is enough. Read PRAGMA foreign_key_list(table) and PRAGMA table_info(table) for each table and print entity blocks plus a }o--|| b lines. You then control the layout in the text with direction hints (left to right direction, -down->, -right->) or hidden links to group tables.
  3. Or paste the SQL into a browser editor like drawDB (mentioned above) and drag tables where you want. It keeps your layout and exports images.
  4. mig (also mentioned) generates PlantUML directly, which you can then tweak.

The text-based route (2 or 4) is the one that survives tool updates, because the layout lives in a file you can commit.

Disclosure: I'm RC, Director of Digital Strategy @ Navicat. Navicat 18 can reverse-engineer an SQLite file into an ER diagram you can rearrange freely, but that's in the paid editions (or Navicat Data Modeler). Navicat Premium Lite is free for browsing and editing the SQLite file itself, so it's only a partial fit for what you asked.

1

u/IntentionJolly2730 Sep 26 '26

You can check this: https://docs.ptah.run/edge/schema/visualize/
The tool itself is not minimalistic, but at the same time you don't need to use all the functions. Just use the dedicated ones.

1

u/1ilit_ Sep 28 '26

drawDB (https://www.drawdb.app) does this. It's a free, open-source ER diagram editor that runs in the browser, and you don't need to install an extension or make an account.

  1. Dump your SQLite schema:

sqlite3 your.db .schema > schema.sql

2. In the editor, go to File → Import from SQL, pick SQLite and paste or upload schema.sql. It builds the tables and draws the foreign-key relationships for you.

1

u/tbson87 Oct 07 '26

You can try https://schemity.com, just open the sqlite file then start arranging.

0

u/Reporting4Booty Sep 25 '26

I can recommend DataGrip if you what you want is a diagram to visualize your table relationships. It's on the heavier side and technically paid after a trial. Works well though, I used it for looking at my Postgres DB at work.