Text Compare (Diff)
Compare two pieces of text and see added and removed lines highlighted.
Runs entirely in your browser. Nothing you enter is uploaded.
How to use
- Paste the original text on the left.
- Paste the changed text on the right.
- Press Compare.
- Read the highlighted result: red lines were removed, green lines were added.
Example
Compare two versions of a robots.txt or a config file to see exactly which line changed.
About this tool
The comparison works line by line using the longest common subsequence, the same idea used by version control tools. Tick the options to ignore case or extra spaces.
Frequently asked questions
Is my text uploaded?
No. The comparison happens in your browser.
How large can the text be?
Up to 3,000 lines on each side, to keep your browser responsive.
Does it compare words inside a line?
It compares whole lines. A changed line shows as one removed line and one added line.
Related tools
Word & Character CounterCount words, characters, sentences, paragraphs and lines, with reading and speaking time.In browserJSON Formatter & ValidatorPretty-print, minify and validate JSON, with the line and column of the first error.In browserHTML MinifierRemove comments and extra whitespace from HTML to make pages lighter.In browser