Text Diff

Paste two versions of any text and instantly see what changed — line by line.

Paste text in both panels to compare
Original
Modified

Frequently asked questions

What is a text diff tool?
A text diff tool compares two versions of a text and highlights exactly what changed — which lines were added, removed, or stayed the same. It's the same comparison that tools like Git, GitHub, and code review systems use to show changes between versions.
What kind of text can I compare?
Any plain text: source code, configuration files, log output, Markdown, SQL queries, JSON, CSV, or regular prose. Paste the content of any two text files and the diff runs instantly in your browser.
How does ignore whitespace work?
When enabled, leading and trailing spaces on each line are stripped before comparison. Lines that differ only in indentation or trailing spaces are treated as identical. This is useful when comparing code that has been re-indented or auto-formatted.
Is my text sent to a server?
No. All comparison happens locally in your browser using JavaScript. Your text never leaves your machine.
What do the colours mean?
Red lines (marked with −) appear only in the original text and were removed. Green lines (marked with +) appear only in the modified text and were added. Lines with no colour are unchanged and appear in both versions.