Diff Checker
Compare two blocks of text and see the differences line by line (additions in green, removals in red) using the same algorithm as Git. Compared privately in your browser.
How it works
The two texts are compared line by line using a longest-common-subsequence algorithm,
the same approach Git and code editors use. Unchanged lines are shown plainly, removed lines are marked
in red with a −, and added lines in green with a +.
Both texts are compared in your browser, nothing is uploaded.
What this does
A diff checker compares two blocks of text and shows the differences line by line, additions in green, removals in red.
How to use it
- Paste the original text.
- Paste the changed text.
- Read the line-by-line diff.
- Spot additions and removals at a glance.
How it works
It uses a longest-common-subsequence algorithm (the same approach behind Git and code editors) to find the smallest set of additions and removals between the two texts.
Understanding your result
Green lines were added in the second text and red lines were removed from the first; an edited line shows as a removal plus an addition, not an in-place change. This is a line-level comparison, so changing a single word flags the whole line, and lines that differ only by whitespace still count as different. No marks at all means the two texts are byte-for-byte identical.
Example
Changing one word on a line marks that line as removed and its new version as added.
Sources & methodology
Last updated .
Frequently asked questions
How does the comparison work?
It uses a longest-common-subsequence algorithm (the approach behind Git and code editors) to find the smallest set of additions and removals between the two texts.
Does it compare word by word or line by line?
Line by line, which is ideal for comparing lists, code and documents.
Is my text private?
Yes. Both texts are compared in your browser; nothing is uploaded.
Related tools
Word Counter
Count words, characters, sentences, paragraphs and lines as you type, with an estimated reading time. Fast and private, your text is analysed in your browser.
Case Converter
Convert text between UPPER, lower, Title, Sentence case and programmer styles like camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE. Instant and in-browser.
Slug Generator
Turn any title into a clean, URL-friendly slug: accents are stripped, spaces and symbols become hyphens, and the result is lowercased. Slugify many lines at once, all in your browser.
Sort Lines
Sort a list of lines alphabetically, by length or numerically, in either direction, with optional case-sensitivity, trimming and duplicate removal. Runs entirely in your browser.