How to Compare Two Texts and See What Changed
Updated November 2026
Written by the Toolpuffin team. Tools in this guide are tested in the browser.
You have two versions of a text and you want to know what changed: a contract, a list, a block of code. This guide shows how to compare them line by line without sending anything anywhere.
How a comparison works
The tool compares the two texts line by line. A line that is only in the new text is marked with a plus. A line that is only in the old text is marked with a minus. A line that was edited shows up as one removed line and one added line.
Compare two texts
- Paste the original text on the left.
- Paste the changed text on the right.
- Read the marked differences below. You can ignore case and extra spaces with the options.
Get a finer result
Because the tool works with lines, a long paragraph that changed in one word shows as fully changed. Put each sentence on its own line first, and the differences become much smaller and easier to read.
Privacy
The comparison runs in your browser, so nothing is uploaded. That makes it suitable for private documents and source code. Very long texts with many differences can be too heavy for a browser. In that case you get a message and can compare smaller parts.
Tips
- Remove empty lines and trailing spaces first if you only care about the words.
- For sorted lists, sort both lists first so the order does not hide what is really different.
- For JSON, format both versions first so each value sits on its own line.