Text Diff Tool

Paste two versions of a text to see the line and character differences.

How to use

  1. Enter your values in the fields above.
  2. Press Calculate to see your result instantly.
  3. Use the Share button to copy a link to your result.

About this calculator

This tool compares two blocks of text on two levels: a line-level diff, which reports how many lines were added, removed, or left unchanged between the two versions, and a character-level edit distance (Levenshtein distance), which counts the minimum number of single-character insertions, deletions, and substitutions needed to turn one text into the other.

Software developers use line diffs constantly when reviewing code changes in version control, while writers, editors and translators use the same comparison to spot exactly what changed between two drafts of a document — the character-level distance adds a finer-grained view for catching small wording or formatting edits that a line-by-line comparison alone would report as a single “changed line.”

Was this helpful?

Comments (0)

  • Be the first to comment.

Popular calculators

All Calculators