How to use the Text Compare
- Paste the original text on the left and the changed text on the right.
- Choose to compare by words, lines or characters.
- Added text is highlighted in green, removed text in red.
- Use "Swap" to reverse the comparison.
About this tool
Compare two texts and highlight the differences by word, line or character. It is part of the free Developer Tools collection on Online Tools Harbor. Everything happens locally in your browser, so it is fast and private.
Frequently asked questions
Can I compare code?
Yes. Choose "Lines" for code and lists, "Words" for prose, and "Characters" for small edits.
Is the Text Compare free?
Yes. The Text Compare is completely free to use, with no sign-up and no limits on normal use.
Is my data safe?
Yes. This tool runs entirely in your web browser using JavaScript. Your text is never uploaded to our servers.
Does it work on mobile?
Yes, it works in any modern browser on phones, tablets and computers. No app to install.