REKLAMA 728Γ—90
⟺

Text Diff

Compare two texts and highlight the differences line by line.

About this tool

Processing happens directly in your browser. No files are uploaded to the server.

Text Diff compares two blocks of text line by line and highlights what was added (green), removed (red) and unchanged (gray). Useful for comparing drafts, code snippets or any text.

How to use

  1. 1 Paste the original text in the left box and the modified text in the right box.
  2. 2 Click Compare.
  3. 3 Added lines are highlighted green, removed lines red.
  4. 4 Check the stats bar for a summary of changes.

Frequently asked questions

Is it a word-level or line-level diff?

Line-level. Each line is compared as a whole.

Can I compare code?

Yes. It works on any plain text including source code.

Is my text uploaded?

No. The diff algorithm runs locally in your browser.

What algorithm is used?

A simplified LCS (Longest Common Subsequence) diff, same approach as Unix diff.