Skip to content
Util.Ninja

Text Compare (Diff Checker)

Paste an original and a changed text to see exactly what is different. This text compare tool (diff checker) marks added and removed lines, can ignore case and extra spaces, and works fully in your browser.

How to use

  1. Paste the original text on the left and the changed text on the right.
  2. The differences appear below straight away: green lines were added, red lines were removed.
  3. Tick Ignore case or Ignore extra spaces to hide small differences.
  4. Use Swap to reverse the direction of the comparison.

How the comparison works

The tool compares the two texts line by line and finds the longest common sequence of lines. Lines that exist only in the original are shown as removed, and lines that exist only in the changed text are shown as added. This is the same idea that tools like diff and Git use.

What it is good for

Compare versions of a document, a contract, a config file, an email draft or a piece of code. For the best result, keep the same line breaks in both texts. To clean up text before comparing, remove repeated lines with remove duplicate lines.

Frequently asked questions

Is my text uploaded?

No. The comparison runs in your browser and nothing is sent anywhere.

Does it compare words or lines?

Lines. A line that changed by one word is shown as one removed line and one added line.

How long can the texts be?

About 3,000 lines each. Longer texts may be too heavy for a browser to compare.

Can it ignore capital letters?

Yes. Tick "Ignore case". You can also ignore extra spaces at the start, end and between words.

More free tools

Regex testerTest and debug regular expressionsRemove duplicate linesDedupe and sort any listWord & character counterWords, characters, reading timeJWT decoderRead JSON Web TokensHash generatorMD5, SHA-1, SHA-256 hashesCron expression generatorBuild and explain cron schedulesColor converterHEX, RGB, HSL, CMYKQR code generatorLinks, Wi-Fi, contacts, PNG & SVGImage compressor & resizerShrink and resize JPG, PNG, WebP