UtilityNest

Text Compare

Paste the old and new version of any text, a contract clause, an essay, a config file or a product list, and see exactly what changed. Added parts turn green, removed parts turn red with a line through them, and nothing leaves your browser.

How to use Text Compare

  1. 1Paste the original text into Original and the new version into Changed. The Paste button reads straight from the clipboard.
  2. 2Choose By word for prose, By line for code, CSV exports and lists, or By character for small edits such as numbers and dates.
  3. 3Turn on Ignore case or Ignore spacing to hide changes you do not care about. Ignore spacing is on by default and is not offered in character mode.
  4. 4Read the Added, Removed and Result counters, then press Copy report to get a plain-text version that marks added parts with + and removed parts with -.

When a diff saves you

Someone sends back a contract with "a few small edits" and no tracked changes. A colleague updates a price list and you need to know which rows moved. You rewrote a paragraph and want to confirm you did not drop a sentence. A configuration file works on one server and not another. Reading both versions side by side by eye misses things; a diff does not. The comparison updates as you type, so you can also paste a section, fix it and watch the highlighted changes disappear.

Which mode to use

By word is best for sentences: a changed word is highlighted on its own instead of the whole paragraph. By line works like a programmer's diff and is right for code, CSV exports and bullet lists, where a line is the natural unit and you want to know which rows changed. By character highlights single letters and digits, useful for checking an account number, a serial or a date where one digit matters.

The counters change meaning with the mode. In line mode they count lines. In word mode they count the characters inside the changed words, and in character mode they count single characters. The Result tile simply says Identical or Different, which is the quickest answer when you only need to know whether two versions match.

What happened when we tested it

We compared two exports of a 400-line product CSV. In the second one, four stock numbers had changed, one product row had been deleted and one new row added. By line, the result appeared in about 0.15 seconds and showed 5 added and 5 removed lines, which matches: four edited rows count once as removed and once as added, plus the deleted row and the new one. Every unchanged row stayed unhighlighted.

Then we compared two versions of a payment clause in which the delivery period went from 30 to 45 days and the payment term from "14 days of delivery" to "30 days of receiving the invoice". By word, exactly three red parts appeared, 30, 14 and delivery, with 45, 30 and receiving the invoice in green, and nothing else in the clause was marked. Finally, we pasted 120,000 characters on one side and 90,000 on the other: the page showed a message asking for a shorter section instead of freezing.

Reading and sharing the result

The highlighted view is for reading on screen. Red text with a line through it existed only in the original; green text exists only in the new version; plain text is shared by both. For a long document, scroll the result box rather than the page, since it has its own scroll bar.

When you need to send the changes to someone, Copy report produces plain text that pastes anywhere, including email and chat. Each changed part is on its own line with a + or - in front, and unchanged parts are indented with two spaces, so the reader can follow the context. In line mode the report reads like a classic patch file. If you only need to prove two versions are the same, a screenshot of the Identical tile is enough.

For contracts, compare by word with Ignore case off, because a capitalized defined term such as Services can mean something different from services. For code, compare by line with Ignore spacing on unless indentation matters, as it does in Python or YAML.

Limits and common problems

The combined size of both texts is capped at 200,000 characters, roughly 30,000 words, so the page stays responsive. Very different texts can also time out at a fine setting; switching to By line or comparing one section at a time solves both. Formatting is not compared: bold, fonts and colours vanish when you paste plain text, so a change that is only formatting will not show. If every line looks changed in line mode, one version probably has different line endings or trailing spaces; leave Ignore spacing on. If you pasted the versions the wrong way round, press Swap rather than pasting again.

Frequently asked questions

Is my text sent to a server?

No. The comparison runs in your browser and the texts stay on your device. Only your mode and switch choices are remembered in this browser.

Can I compare two files?

Open each file in a text editor and paste the contents. For Word documents, select all in Word and paste; formatting is dropped and only the text is compared.

Why are moved paragraphs shown as removed and added?

A diff looks for the smallest set of insertions and deletions. A block that moved to another place is shown as deleted where it was and inserted where it is now.

Does Ignore case also ignore accents?

No. It treats capital and small letters as equal, but e and é are still different characters.