Text Compare
Paste two versions of a text and see what was added and removed, line by line, word by word or letter by letter. Free, and it runs in your browser.
- Changes
- 2
- Added lines
- 3
- Removed lines
- 2
+ marks text that was added and − marks text that was removed.
What is a text compare tool?
A text compare tool puts two versions of the same text next to each other and shows you exactly what changed. You might have a contract that came back from the other side, two drafts of an essay, a config file before and after an update, or a list someone edited without saying what they touched. Reading both copies line by line to spot a changed digit or a missing word is slow, and it is easy to miss the one change that matters.
Paste the older copy into Original and the newer one into Changed. The result updates as you type. Text that only exists in the new copy is shown with a + in front of it, and text that only exists in the old copy is shown with a −. The markers are there so you can read the changes even when colours are hard to tell apart, or when you print the page in black and white.
Above the differences you get three numbers. Changes counts the places where the two texts differ, so a removed line that was replaced by a new line counts as one change. Added and Removed count the pieces of text on each side, not the letters.
You choose how fine the comparison is with Compare by. Lines is the right choice for code, lists and config files, where each line stands on its own. Words suits prose, because a small edit inside a long paragraph shows up as one or two words instead of a whole changed line. Characters finds a single changed letter, a swapped digit in an account number or a missing accent in a Vietnamese name.
Two boxes help when you only care about real changes. Ignore upper and lower case treats “Hanoi” and “HANOI” as the same. Ignore differences in spaces skips extra spaces, tabs and changed indentation, which is handy after someone reformatted a file. That second box is hidden when you compare by characters, because at that level every space is a character of its own.
Both texts stay in your browser. Nothing is uploaded, so you can compare private letters or internal documents without handing them to a server.
How to use Text Compare
- Paste the first version into Original. The box starts with a short sample so you can see how the result looks.
- Paste the second version into Changed.
- Pick Lines, Words or Characters under Compare by.
- Tick Ignore upper and lower case or Ignore differences in spaces if those changes do not matter to you.
- Read the result. Lines with + were added, lines with − were removed, and lines without a marker are the same in both texts.
FAQ
What do the + and − signs mean?
A + marks text that appears only in Changed, so it was added. A − marks text that appears only in Original, so it was removed. When a line was edited, you usually see the old line with − and the new line with + right below it.
Which option should I pick under Compare by?
Use Lines for code, lists, CSV rows and settings files. Use Words for articles, emails and contracts. Use Characters when you are hunting for one wrong letter or digit, for example in a serial number or a password reset code.
Why does the whole text show as replaced?
When two long texts differ in a very large number of places, working out every small edit would take too long and freeze the page. In that case the tool shows the old text as removed and the new one as added, so you still get an answer at once. Comparing smaller parts, or comparing by lines instead of characters, usually gives a detailed result again.
How long can the texts be?
Each box takes up to 200,000 characters, which is roughly a short book. If the result is very long, the view shows the first 5,000 lines or parts and tells you so.
Can it compare Word or PDF files?
Not directly. Copy the text out of the document and paste it into the two boxes. Formatting such as bold or font size is not compared, only the words themselves.
Are my texts saved anywhere?
No. The comparison runs inside the page on your own device. Nothing is sent to a server, and the texts are gone when you close the tab.