Schema visualization

Generate an ER diagram from SQLite

Turn an unfamiliar database into a readable map of tables, columns, types, primary keys and foreign-key connections.

Open ER Diagram Tool

Create the diagram

  1. Open the SQLite database in the viewer.
  2. Select ER diagram in the table sidebar.
  3. Use Fit to bring all entities into the dialog viewport.
  4. Inspect each entity’s column names, SQLite data types and key markers.

The relationship lines are derived from declared SQLite foreign keys. If a logical relationship is not defined with a foreign-key constraint, a schema reader cannot identify it reliably from column names alone.

How to read the result

A diagram is most useful when the database declares primary and foreign keys consistently. Missing lines often indicate missing constraints rather than a rendering problem.

Export the schema

After reviewing the diagram, export its schema as SQL DDL, DBML, Mermaid or GraphQL SDL. SQL DDL is closest to the original database definition. DBML and Mermaid are useful for documentation. GraphQL SDL is a starting point for an API model and may need application-specific adjustments.

Useful review questions

Look for tables without primary keys, foreign keys pointing to unexpected entities, inconsistent naming, nullable columns that should be required, and junction tables that represent many-to-many relationships. These checks help when inheriting an application database or planning a migration.