Text Diff

Compare two texts and see differences highlighted instantly. Character, word, or line-by-line comparison modes.

0 characters

0 characters

100% client-side – your data never leaves your device

How to Use Text Diff

  1. 1 Paste or type the original text in the left panel
  2. 2 Paste or type the modified text in the right panel
  3. 3 See differences highlighted automatically
  4. 4 Switch between character, word, or line mode
  5. 5 Red shows removed content, green shows added content

What You Get

Side-by-side text comparison with real-time diff highlighting. Supports character-level, word-level, and line-by-line comparison. Perfect for comparing code, documents, or any text content.

Input: Original: "Hello World"

Output: Compare with "Hello There" - shows "World" removed, "There" added

Input: Two versions of code

Output: See exactly which lines and characters changed

Input: Document revisions

Output: Track changes between drafts

Input: Configuration files

Output: Spot differences in settings

How do I compare two texts online?

Paste original text on the left, modified text on the right. Differences highlight automatically. Red shows removed content, green shows added content.

What is the difference between character, word, and line modes?

Characters: compares every character (most detailed). Words: treats words as units (good for prose). Lines: compares whole lines (best for code).

How do I compare two versions of code?

Paste both versions and use Line mode. Changed lines are highlighted with additions in green and deletions in red. Same as Git diff output.

How does the diff algorithm work?

Uses the Myers diff algorithm, same as Git. Finds the minimum number of changes to transform one text into another - the most efficient edit path.

Can I compare two Word documents?

Copy text from Word documents and paste here. This tool compares plain text only. Formatting is not compared, only text content.

What do the colors mean in diff output?

Red/pink background: content removed (existed only in original). Green background: content added (exists only in modified). No highlight: unchanged.

Is there a size limit for text comparison?

No hard limit, but texts over 100,000 characters may slow your browser. All processing happens locally - no server upload.

How do I find small changes in long text?

Use Character mode for the most detailed comparison. Word mode is faster for long texts. The tool scrolls to and highlights all differences.

100% client-side processing - your data never leaves your device