Text & data TOOL
Text comparison
Compare two texts line by line.
Enter your text
On-device processingText comparison · How to use
Compare two texts line by line.
Example
Compare first line with first line followed by second line to see the added line.
Things to know
Compares by line, with a combined 200,000-character and three-second limit. Split larger documents.
Output options
Your files and results are never sent to a server. Everything is processed in this browser.
How to compare two texts and find the changed lines
See what changed between two drafts of a contract or report, or where two configuration files differ. Changed lines are marked with - and +, so you do not have to scan long documents side by side.
When to use this tool
- Find changed clauses between two contract drafts
- Check the differences between two versions of a config file
- Compare a translation before and after editing
- Check a saved code snippet against the current version
Step-by-step instructions
- Paste the original text into the first input box.
- Paste the revised text into the Text to compare box.
- Choose Convert.
- Read lines starting with - (removed from the original) and + (added), and download text-diff.diff if you need a file.
Frequently asked questions
Does it highlight the exact characters that changed within a line?
No. The comparison is line by line, so even a one-character edit shows the old line with - and the new line with +. Put each sentence of a long paragraph on its own line to narrow down changes.
Do whitespace differences count as changes?
Yes. There is no option to ignore whitespace, so a single trailing space marks a line as changed. Clean up spacing with the find and replace tool before comparing if those differences do not matter.
Why does comparing a long document fail?
Both texts together are limited to 200,000 characters, and the comparison stops if it takes longer than three seconds. Split large documents into chapters or sections.