Text Diff

Compare two blocks of text

Examples

A changed word

Input
The quick brown fox
jumps over the lazy dog
Output
- jumps over the lazy dog
+ leaps over the lazy dog

An added line

Input
line one
line two
Output
+ line three

Frequently asked questions

How does the comparison work?

Both sides are split into lines and matched with a longest-common-subsequence algorithm — the same approach diff tools and version control use. Lines only in the original are shown as removed, lines only in the changed version as added, and matching lines are kept in place.

Is my text uploaded anywhere?

No. The entire diff is computed locally in your browser as soon as you press Compare — neither block of text ever leaves your machine.

What do the ignore options do?

Ignore case treats "Hello" and "hello" as equal. Ignore whitespace collapses runs of spaces and trims each line, so indentation and trailing spaces don't count. Ignore blank lines drops empty lines before comparing.

Can I compare files?

Yes. Use Browse file on either side to load a .txt, .md, .csv or .log file, then Compare. You can also paste one side and load the other from a file.

Related tools