Text tool

Text Diff Checker

Compare two versions of a text and see which lines were removed and added, updated live as you edit. Spaces and capitals count. Free, in your browser.

Your file never leaves your device.

Runs locally in your browser

Your text is not uploaded.

What is a text diff checker?

A text diff checker compares two versions of a text and marks which lines were removed and which were added. File ICU’s Text Diff Checker is a secure, client-side checker: both texts stay in your browser.

Simple steps

How it works

  1. 01

    Paste the original in the first pane and the revised version in the second.

  2. 02

    Review the removed and added lines in the output.

  3. 03

    Copy the comparison or edit either version to update it live.

How the comparison works

The checker compares whole lines. It finds the longest series of lines that both versions share in the same order, then lists every other line: lines only in the original with a minus sign, and lines only in the changed version with a plus sign. Lines that are the same are not repeated.

Comparing a shopping list of Milk, Eggs, Bread and Butter with Milk, Bread, Butter and Jam gives - Eggs and + Jam.

Whitespace, moved lines and long texts

By default, a line with two spaces between words differs from the same line with one space. Turn on Ignore whitespace-only differences and such lines count as equal.

A line that moved shows as removed where it was and added where it is now, and a line with one changed word shows as a whole removed line and a whole added line. Each side can have up to about 2,000 lines; split longer texts into parts. For word-by-word changes in PDF documents, use Compare PDF.

Good to know

Frequently asked questions

How can I compare two texts securely without uploading them?

Paste the original text in the first box and the changed version in the second. The checker lists only the lines that differ: lines missing from the changed version with a minus sign, and new lines with a plus sign. The comparison runs in your browser and neither version is sent to a server, so it suits contracts, code and private notes.

Does the checker compare line by line?

Yes. It finds the longest series of lines both versions share in the same order and lists every other line as removed or added.

Are spaces considered differences?

By default, yes: text is compared exactly, including spaces and capitalization. Turn on Ignore whitespace-only differences to treat lines that differ only in spaces as equal.

Can I compare long documents?

Yes, up to about 2,000 lines on each side. It compares whole lines, so one changed word marks the whole line as changed.

Can I use this on a phone?

Yes. The two input panes stack on narrow screens and remain editable by touch.

Are either versions uploaded?

No. Both texts are compared locally in your browser.