
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
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
- Paste the earlier version into Original text and the newer version into Changed text.
- 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.
- Switch between Side by side and Unified, and turn on Ignore whitespace or Ignore case when those differences don't matter.
- 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.
- Red background: a line that was removed from the original text.
- Green background: a line that was added in the changed text.
- Darker highlight: the words or symbols that changed inside an edited line.
- Striped cell: in the side-by-side view, the other text has no line at this spot.
- No colour: the line is the same in both texts.
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
Advertisement