Text Diff

Compare two SQL scripts

Original
Changed
Help

What this does

Line-by-line comparison of two SQL files, with the changed words highlighted inside each edited line — so a switched column type or a dropped index is obvious rather than buried.

Use 'Ignore case' for keywords

SQL keywords are often written inconsistently: SELECT in one file and select in the other. Tick Ignore case and those stop counting as differences, leaving only the changes that actually matter. Ignore whitespace does the same for reformatted indentation.

Common uses

Reviewing a schema migration before running it, comparing a database dump taken before and after a deployment, checking that a stored procedure on staging matches production, and reading a colleague's changes before approving them.

Is it private?

Yes. The comparison happens in your browser. Nothing is sent to a server, so connection strings, table names and any data embedded in the script stay on your machine.

Feedback

Found a bug, or want something the tool cannot do yet? Tell me here. This form is the only part of the site that sends anything anywhere — whatever is in the two boxes above stays on your machine.