What a text diff checker is for
A text diff checker, or diff tool, shows exactly what changed between two versions of some content. It helps when you review edits to an article, check changes to a contract, compare code snippets, settings and lists, or verify that two copies of a text match.
How to read the result
Lines in green were added in the modified text, and lines in red existed in the original and were removed. When a line was edited, it appears on both sides and the words that changed get a stronger highlight. The unified view shows everything in one column, with - for removed and + for added, like version control tools.
Lines, words or characters
Use lines for lists, code and text organized in short paragraphs. Use words to review prose, where a sentence can be rewritten without changing the line breaks. Use characters to find small differences, like a swapped letter, a missing accent or a mistyped number.
Comparison options
Ignore case treats “House” and “house” as equal. Ignore extra whitespace disregards repeated spaces, tabs, and spaces at the start and end of lines. With the options on, the differences that remain are the ones that matter.
How the comparison works
The checker uses Myers' algorithm, the same principle behind diff and Git, which finds the smallest set of additions and removals that turns one text into the other. When the two texts are almost entirely different, the result is simplified to keep the page fast. For other everyday conversions, try the unit converter.