SQL Diff Tool

Paste two SQL scripts and see exactly what changed — added, removed and modified lines, side by side. Free, no signup, and your SQL never leaves your browser.

Runs entirely in your browser — nothing is uploaded
Original
+ Modified
Paste SQL into both panes to see the difference instantly.

Private by design

Script comparison runs entirely in your browser. Nothing is uploaded, nothing is stored, and it works offline once the page has loaded.

Instant results

A Myers diff — the same algorithm git uses — compares thousands of lines in milliseconds as you type. No upload, no queue, no waiting.

Scripts or databases

Diff SQL text for migrations and schema reviews, or compare two SQLite .db files table by table to find changed rows.

Need to compare two SQLite databases?

Upload two .db files and get a table-by-table breakdown of added, removed and modified rows, plus schema differences. Database comparison requires an account because files are processed on our servers.

Compare SQLite databases

Frequently asked questions

Is this SQL diff tool free?+

Yes. Comparing SQL scripts is free and unlimited, with no account required. The comparison runs in your browser, so there is no server cost to pass on to you.

Is my SQL uploaded to a server?+

No. The text comparison happens entirely in your browser using JavaScript. Your SQL never leaves your device, which makes the tool safe to use with production schemas and queries.

What is the difference between this and sqldiff?+

sqldiff is the official SQLite command-line utility that compares two .db database files and emits the SQL needed to transform one into the other. This tool compares SQL text — scripts, schemas, migrations and queries — in the browser, with no install. If you want to compare actual .db files here, use the database comparison feature.

Can I compare two database files instead of scripts?+

Yes. The SQLite database comparison feature compares two .db files table by table and reports added, removed and modified rows along with schema changes.

Does it work with MySQL, PostgreSQL and SQL Server?+

Yes for script comparison. The diff is dialect-agnostic, so it works with MySQL, PostgreSQL, SQL Server, Oracle, SQLite or any other SQL text — including migration files and stored procedures.

Is there a size limit?+

There is no hard limit for script comparison. Files of several thousand lines diff in a few milliseconds. Very large inputs fall back to a coarser comparison so your browser stays responsive.

Stay updated

Occasional SQL tips and new tools. No spam, unsubscribe anytime.