Free SQL diff tool — no signup required

SQL Diff Online.
Compare schemas.
Generate migrations.

Paste two CREATE TABLE dumps into your browser. Spot every table, column, index, and constraint change instantly. Get ready-to-run ALTER TABLE scripts for PostgreSQL, MySQL, SQL Server, SQLite, or Oracle — all without installing anything.

No account required. No data leaves your device.

Why developers choose SchemaLens

The most comprehensive free browser-based schema diff tool.

🔍

Semantic Diff

Not a line-by-line text diff. SchemaLens understands CREATE TABLE, ALTER TABLE, indexes, constraints, triggers, views, and functions.

⚡

5 SQL Dialects

PostgreSQL, MySQL, SQLite, SQL Server, and Oracle. Dialect-aware migration generation means you get valid ALTER TABLE syntax every time.

ðŸ›Ąïļ

Breaking Change Detection

Catches dropped columns, NOT NULL without defaults, type narrowing, and missing indexes before they hit production. Includes a 0-100 risk score.

ðŸ“Ī

Export Everything

Download your diff as Markdown, PDF, raw SQL, JSON, Prisma schema, or Drizzle TypeScript. Share diffs via URL with teammates.

🔒

Privacy First

Your schema never leaves the browser. Compare production schemas safely without uploading sensitive table structures to a third-party server.

🔧

10 Free Tools

SQL validator, formatter, schema doc generator, ER diagram generator, index analyzer, health check, CSV/JSON to SQL converters, and more.

How it works

1

Export your schemas

Run pg_dump --schema-only, mysqldump --no-data, or .schema on both databases.

2

Paste into SchemaLens

Copy the SQL into the two editor panes. Select your SQL dialect from the dropdown.

3

Review the diff

See added tables, dropped columns, type changes, and constraint modifications highlighted in color.

4

Copy the migration

Export ALTER TABLE scripts, save as Markdown, PDF, or raw SQL. Run in staging, then production.

Supported databases

Choose your dialect for tailored migration generation.

Related guides

Stop writing migrations by hand.

SchemaLens generates your ALTER TABLE scripts in seconds. Free for up to 10 tables. Pro starts at $12/mo with a 14-day money-back guarantee.

Start Diffing for Free

No credit card required. No data leaves your browser.