Text Compare: Find Differences Online
Use this text compare tool to spot what changed between two versions. Paste the old and new text, and see added, removed and changed words highlighted side by side or inline. Ignore case or spaces if you want.
Text Compare
Highlight the differences between two texts.
How to use the text compare tool
- Paste the original text on the left and the changed text on the right.
- Choose to compare by lines, words or characters, and tick the ignore options if needed.
- Press Compare.
- Red, struck-through parts are only in the original; green parts are only in the changed text.
How it works
The texts are split into lines, words or characters and compared with the Myers diff algorithm, the same method used by Git and most code review tools. It finds the smallest set of insertions and deletions that turns the original into the changed text, so unchanged parts line up and only real edits are highlighted.
Example
Comparing "The quick brown fox jumps" with "The quick red fox jumped" in word mode marks brown and jumps in red and red and jumped in green: 2 words removed and 2 added.
Frequently asked questions
Is my text uploaded?
No. The comparison runs in your browser.
Can I compare code?
Yes. Use line mode for code; it works like a simple diff tool.
Can I compare PDF or Word files?
Copy the text out of them and paste it here. For PDFs, Compare PDF Files compares two PDFs directly.
What do the colors mean?
Red with a line through it means removed (only in the original). Green means added (only in the changed text).
See also: Compare PDF Files, Word Counter.
Compare two texts
How to use it
- Paste the original.
- Paste the new version.
- Read the highlights.
- Copy the diff.
More questions
Can I ignore spaces?
Yes. Turn on ignore spaces to skip spacing differences.
Does it work for code?
Yes. It compares code line by line and highlights changes.
Is my text uploaded?
No. Everything stays in your browser on your device.
Related tools: Find and Replace Text Online, Remove Duplicate Lines and Sort Lines, Word Counter.