SchemaSpy
SchemaSpy is a free command-line application that reads database metadata and produces HTML documentation to help teams examine data models.
What SchemaSpy is
SchemaSpy is a free command-line application that reads database metadata and produces HTML documentation to help teams examine data models. It can generate entity-relationship diagrams from an existing database, gather structural statistics, and flag design issues such as missing indexes, implied relationships, and orphan tables. The project says it supports over a dozen databases out of the box, with other databases accessible through a JDBC driver. Reports can display statistics or export them to Excel or CSV. Teams can include documentation generation in a CI/CD workflow to keep it current; SchemaSpy reads structural information and can run against an empty database replica. It has no graphical interface and is distributed as a JAR file or Docker image. Installation requires Java, a database-specific JDBC driver, and viz.js or Graphviz for relationship diagrams. The JAR does not include JDBC drivers, while the Docker image includes drivers for MySQL, MariaDB, PostgreSQL, and jTDS for MSSQL. The generated HTML can be shared with a team or community. SchemaSpy is free, with a listed plan price of no cost.
Good
- Generates diagrams from existing databases.
- Reports missing indexes and orphan tables.
- Exports statistics to Excel or CSV.
- Can run in a CI/CD workflow.
- Free plan listed as free.
Watch out
- It has no graphical interface.
- JAR distribution does not include JDBC drivers.
- Diagram rendering requires viz.js or Graphviz.
Who it suits
SchemaSpy suits database teams that want generated documentation, diagrams, statistics, and anomaly checks. It is aimed at users comfortable with a command-line tool and its installation prerequisites.
Verdict
SchemaSpy offers database documentation and structural analysis at no cost, with automation and shareable HTML output. Setup requires command-line use and several dependencies.
Plans and prices
From SchemaSpy's own pricing page, checked 7 Oct 2026.
| Plan | Price | What it gives you |
|---|---|---|
| SchemaSpy | Free | Open-source database documentation tool |
The facts
Each one read from SchemaSpy's own pages, with the date it was checked.
What it does
- Anomaly checks
- It can report database design anomalies such as missing indexes, implied relationships, and orphan tables.checked 7 Oct 2026
- Continuous use
- The project describes generating documentation as part of a CI/CD workflow to keep it up to date.checked 7 Oct 2026
- Data access
- SchemaSpy reads structural information and the project says it can run against an empty database replica.checked 7 Oct 2026
- Database coverage
- The project says SchemaSpy supports over a dozen databases out of the box and can work with other databases that have a JDBC driver.checked 7 Oct 2026
- Deployment
- SchemaSpy is a standalone command-line application without a GUI and is distributed as a JAR file or Docker image.checked 7 Oct 2026
- Diagrams
- It generates entity-relationship diagrams from an existing database.checked 7 Oct 2026
- Driver limits
- The JAR distribution does not include JDBC drivers; the Docker image includes drivers for MySQL, MariaDB, PostgreSQL, and jTDS for MSSQL.checked 7 Oct 2026
- Generated output
- SchemaSpy generates HTML documentation that can be shared with a team or community.checked 7 Oct 2026
- License
- The GitHub repository lists LGPL-3.0 and GPL-3.0 licenses.checked 7 Oct 2026
- Project history
- The official site says the project continues work begun by John Currier in 2004.checked 7 Oct 2026
- Purpose
- SchemaSpy analyzes database metadata and creates HTML reports to help people visualize, navigate, and understand data models.checked 7 Oct 2026
- Requirements
- The documented installation prerequisites include Java, a JDBC driver for the database engine, and viz.js or Graphviz for rendering relationship diagrams.checked 7 Oct 2026
- Statistics
- It can collect database structure statistics and display them in reports or export them to Excel or CSV.checked 7 Oct 2026
- Support
- The project directs users who need help or find a bug to open an issue on GitHub.checked 7 Oct 2026
The company
- Founded
- 2004checked 28 Sep 2026
Alternatives to SchemaSpy
- 1

MySQL
Free planAPILinuxmacOSSelf-hosted7.9Free plan - 2

Hackolade Studio
Free planWebAPILinuxmacOS7.8Free plan - 3

DbSchema
Free planLinuxmacOSWindows7.0From $29.40 a month - 4
pgModeler
Free planLinuxmacOSWindows6.9From $59.90 a month - 5

ChartDB
Free planWebSelf-hosted6.8From $25 a month - 6
DrawSQL
Free planWebAPI6.8From $19 a month
