Livecounts.nl
Illustration of two documents with highlighted lines linked to each other

Diff Checker

Paste two versions of a text or code file to see exactly which lines and words were added, removed or changed.

Text and code

Compare two versions

No upload
View

Results update as you type for texts up to 2,000 lines. For longer texts, press Compare or Ctrl + Enter.

Paste text into both boxes to see the differences.

Advertisement

How to compare two texts

  1. Paste the earlier version into Original text and the newer version into Changed text.
  2. Read the result below the boxes. It updates as you type for texts up to 2,000 lines; for longer texts, press Compare or Ctrl + Enter.
  3. Switch between Side by side and Unified, and turn on Ignore whitespace or Ignore case when those differences don't matter.
  4. Turn on Only show changes to hide long unchanged stretches, or press Copy unified diff to paste the changes into a code review, chat or patch file.

What the colours mean

Changed lines get both a colour and a symbol, so the result is readable without relying on colour alone.

Your text stays in your browser

The comparison runs entirely on your device with JavaScript. The text you paste is not uploaded to Livecounts.nl or saved by this tool, and it is gone when you close the tab.

Frequently asked questions

Can I compare two code files?

Yes. Copy the contents of each file and paste them into the two boxes. The checker works with any programming language, config file or CSV, shows line numbers in a monospace font, and Copy unified diff gives you the Git-style format with - and + lines.

What does Ignore whitespace do?

It treats two lines as the same when they differ only in indentation, trailing spaces or the number of spaces between words. That helps after an editor has reformatted a file. Lines are still shown exactly as you typed them.

Is my text uploaded anywhere?

No. The differences are calculated by JavaScript in your browser, so your text is not sent to Livecounts.nl or stored by this tool. Once the page has loaded, the checker keeps working even without an internet connection.

How much text can I compare?

There is no fixed limit. Texts up to 2,000 lines per side update as you type; longer texts are compared when you press Compare. Two 5,000-line files usually take less than a second on a recent computer. With very large or very different texts, part of the result may be simplified to keep the page responsive.

More free tools

Character counter Count characters and wordsText to image Turn text into an imageDiscord timestamp Show a time in each reader's time zoneRandom name picker Pick a random name from a listOBS overlay Add a live counter to your stream

Advertisement