Text Utilities

Text Diff

Compare two texts and highlight added, removed and unchanged parts.

Text 11 lines
Text 21 lines

Enter text on both sides to compare differences

What is Text Diff?

Text diff compares two texts and highlights the differences between them, showing additions, deletions, and modifications.

Features

  • Line-by-line: Compare each line
  • Word-by-word: Detailed word comparison
  • Unified/Split View: Different display modes

Use Cases

  • Code review
  • Document versioning
  • Content comparison

Frequently Asked Questions

Line diff or word diff — when is each better?
Line diff suits code and configuration, where changes are line-shaped; word diff suits prose and copy, pinpointing a single changed word in a sentence. This tool supports both: review configs in line mode, proofread contracts in word mode.
Why does it show differences in text that looks identical?
Invisible characters: trailing spaces, CRLF versus LF line endings, full-width spaces, zero-width Unicode (U+200B). The diff renders them faithfully — enable end-of-line markers to locate them. This is exactly how diff debugs "the config looks the same but does not work".
Is it safe to diff sensitive content?
Comparison is entirely local; neither text is uploaded. Still, build the habit of replacing secrets, tokens, and personal data with placeholders before pasting — diffs care about structure, and placeholders change nothing.