Text Diff Tool
Paste two text blocks and compare them line by line. Differences are highlighted instantly.
Ready.
Original with highlights
Updated with highlights
How it works
We split both text blocks into arrays of lines and run a Longest Common Subsequence (LCS) diff algorithm on them. Lines unique to the original are marked as removed (red); lines unique to the updated version are marked as added (green); shared lines stay neutral. This is the same approach used by git diff, just rendered in the browser.
Frequently Asked Questions
Does this compare word-by-word or line-by-line?
Line-by-line. A line is treated as a single unit — even if only one character changed, the whole line shows as modified. This is intentional and matches how most code review tools behave.
Can I use this to compare config files or code snippets?
Yes — that is the main use case. Paste two versions of a .env file, a YAML config, or any text snippet. The diff runs entirely in your browser and nothing is sent anywhere.
Privacy Guaranteed
All data processing, encoding, and formatting are executed locally inside your browser using client-side JavaScript. We never upload your text, inputs, or private data to any server. Your information remains 100% secure.