Text Diff / Compare Tool

Paste an original and a changed version to highlight the differences. Useful for comparing drafts, configuration files, code snippets and copied text.

Loading the tool…

How it works

  • The two texts are split into lines and the longest common subsequence of lines is found; everything else is marked as removed (from the original) or added (in the new text). Similarity = unchanged lines ÷ the larger line count.
  • Runs entirely in your browser: nothing you enter or choose is uploaded.

Assumptions and limits

  • Line-based comparison, so a small edit within a long line shows as one line removed and one added. Each side is limited to 3,000 lines.

Frequently asked questions

Can it compare files?

Paste the contents of the files into the boxes. Files are never uploaded.

Related tools

Last reviewed 2026-10-28. More file, media & creator utilities tools. See the disclaimer.

Report a problem with this tool