Text Difference Comparison Tool

Compare differences between two texts with line-by-line comparison and highlighting

Original text

Lines: 0 | Characters: 0

Modified text

Lines: 0 | Characters: 0

Comparison result

Counts use lines, word segments (including whitespace and punctuation), or whole Unicode graphemes. Adjacent deleted/added runs are paired by count as replacements; the rest remain additions or deletions. Original text and line endings are preserved; input HTML is not executed. Results use the current textarea values; the browser may normalize CRLF/CR to LF when pasting or editing.

Line boundaries remain significant. LF, CRLF and CR mark line endings; ∅ means no final newline. JSON quoting preserves source text in a readable report, not an apply-ready patch. Pagination affects display only.

Enter text to compare

Usage guide

Symbol legend

  • + Added line
  • - Deleted line
  • Unchanged

Features

  • • Align inserted and deleted lines
  • • Display original text safely
  • • Count line differences
  • • Export the complete report

Text Difference Comparison Tool

Align old and new text line by line while preserving both original spellings and separate line numbers.

Usage guide