Text Diff Checker
Overview
About the Text Diff Checker
Compare two blocks of text and see every difference highlighted by line and by character. All processing happens in your browser — your text stays private.
Getting started
How to compare two texts
- 1 Paste your original text
Type or paste the first version of your text into the Original box on the left. You can also drag and drop a text file directly onto the box.
- 2 Paste your modified text
Add the second version to the Modified box on the right. The diff computes automatically as you type — no button needed.
- 3 Read the colour-coded result
Green lines were added, red lines were removed, and yellow lines were changed. Within yellow lines, the specific changed characters are highlighted in a stronger tint.
- 4 Reduce noise with options
Use Ignore case or Ignore whitespace to filter out formatting-only differences. Toggle Hide unchanged to collapse identical lines and focus on what changed.
- 5 Navigate and copy
Use the arrow buttons or press n and p to jump between changes. Click Copy diff to copy the full result as plain text.
Reference
What the markers mean
| Marker | Meaning |
|---|---|
| + (green) | Line was added in the Modified version. |
| − (red) | Line was deleted from the Original version. |
| ~ (yellow) | Line was modified — both versions are shown with character-level highlights. |
| (plain) | Line is identical in both versions. |
Watch out for
Common diff pitfalls
-
Line-ending differences
Windows line endings (CRLF) and Unix line endings (LF) can make files look different when they are logically the same. The tool normalises CRLF to LF automatically.
-
Trailing whitespace
An invisible trailing space can mark a line as modified. Use “Leading & trailing” whitespace mode to ignore these non-semantic differences.
-
Case differences in identifiers
Code that differs only in case (e.g. “Hello” vs “hello”) will show as a modification. Toggle Ignore case to check whether this is intentional.