Skip to content
Text Runs offline

Text Diff

Compare two blocks of text and see exactly what changed.

Left

0 chars

Right

0 chars

Output

0 chars
Ctrl

Questions

Why does a one-word change not mark the whole line as different?

Changed lines get a second pass that diffs the two lines character by character, so only the part that actually changed is highlighted. A line-only diff would mark the entire line red and green for a single-character edit, which makes real changes hard to spot in a wall of colour.

Why does whitespace matter by default?

Because trailing spaces and tab-versus-space differences are frequently exactly the bug you are trying to find - in YAML, Makefiles and diffs against a linter's output, whitespace is content. Turn on "Ignore whitespace" when you specifically want to compare only the visible words.

Is there a size limit?

Yes: 20,000 lines per side. The diff algorithm is fast in practice but has a worst case proportional to how different the two sides are, so a hard limit keeps a pathological paste from freezing the tab.

Open JSON Diff

JSON Diff

Compare two JSON documents and see every key that changed.

JSON
Open Sort Lines

Sort Lines

Sort lines alphabetically, numerically, by length or at random.

Text
Open Word Counter

Word Counter

Count words, characters, sentences and reading time.

Text