Text Diff Checker
Compare two texts and visualize the differences line by line.
Overview
This tool compares two versions of a text line by line and renders a unified
diff: removed lines are prefixed with - and tinted red, added lines with +
and tinted green, unchanged lines stay plain. A counter above the result shows
the total number of added and removed lines. It is useful for reviewing config
changes, comparing SQL dumps, or checking what an editor or formatter changed.
How to use
- Paste the first version into Original.
- Paste the second version into Changed.
- The diff appears below automatically, with a
+N / -Nsummary of added and removed lines.
Examples
- Original
color: redvs. Changedcolor: blue→- color: redand+ color: blue - Adding a line to a
.envfile shows only+ NEW_FLAG=true; untouched lines are listed without a sign.
Notes
Matching is exact per line: differences in trailing spaces, tabs vs. spaces, or line endings register as changes. Normalize whitespace first if you only care about content.
The LCS comparison builds a table with one cell per pair of lines, so the work and the memory grow with the product of the two lengths — not with their sum. Above four million cells (roughly 2,000 lines against 2,000) the tool refuses the comparison and says so, rather than freezing the tab while it tries to allocate hundreds of megabytes. Diff a smaller section instead.