Browser-Based Text Diff Checker & Document Comparison
Inspect code changes, revisions, and contracts side-by-side with high contrast green and red highlights.
Comparing two versions of a text by eye is slow and unreliable, especially when the changes are a single word or a changed number. People use a diff view to check what an editor altered in a draft, to confirm that two configuration files really match, to compare an earlier and a later version of terms and conditions, or to spot what changed between two copies of a script. It also helps when you receive a document back from a colleague without tracked changes and need to find the edits.
Paste your starting version into the box labelled Original Text (Left / Base) and the changed version into Modified Text (Right / Target). The Comparison Status badge immediately reads either Exact Match (Identical) or the number of differences detected. Below, the Side-by-Side Diff Inspector lists each line number with the left text, a symbol and the right text: an equals sign for unchanged lines, a not-equal sign for modified ones, a plus for added lines and a minus for removed ones. Green means added, red removed and amber modified. Swap Left & Right reverses the direction.
The comparison works line by line and matches line 1 against line 1, line 2 against line 2, and so on. It does not realign text after an insertion, so adding one new line near the top makes every following line look modified. It also marks whole lines rather than highlighting the exact words that changed within them. For that reason it works best for short files, lists and edits that change a line in place. Even a trailing space or a different line ending will make two lines count as different.
A small case shows the behaviour. Suppose the left text is three lines: a, b, c. The right text has four: a, x, b, c. A true diff would report one insertion, but here line 2 compares b with x, line 3 compares c with b, and line 4 shows c as added, so the badge says 3 differences. If you change only line 2 to x instead, you get exactly 1 difference. When you see a surprising number of changes, look for a shifted line near the top.
Key Highlights:
- Inline & Side-by-Side views
- Character and word-level diffing
- Statistics on lines changed

