Skip to content
Yunedia Tools

Text Compare (Diff)

Compare two texts side by side and highlight the differences line by line and character by character.

Enter text on both sides to see the differences.

How to use

  1. Paste the original text on the left and the revised text on the right.
  2. The comparison updates automatically as you type; the Compare button runs it immediately.
  3. Removed lines are shown with a red tint, added lines with a green tint. When a line was edited, the exact characters that changed are highlighted inside the line pair.
  4. Use Swap to exchange the two sides when you want to read the diff in the opposite direction.

Notes

FAQ

Why is a whole edited line not paired with character highlights?

Character highlighting is applied when a removed line is immediately followed by an added line, which is the typical shape of an edited line. Larger rearrangements are shown as separate removals and additions.

Does it ignore whitespace differences?

No. Lines are compared exactly, including spaces. To normalize whitespace first, run the text through the Text Transform tool.

Can I compare code?

Yes. The diff is line-based and language-agnostic, so source code, configuration files and logs all work.