Text Diff

Paste two versions side by side to compare line-by-line — useful for configs, logs, code snippets, or doc edits. Green = added on the right, red = removed from the left, amber = same line changed.

AddedRemovedChangedEqual
Left (original / before)
Right (updated / after)

Enter text on both sides to see line-by-line diff

What is Text Diff?

Text Diff is an online tool that compares two text blocks line by line and highlights additions, removals, and changes. It helps developers quickly spot differences between code versions, config files, and documentation drafts.

Unlike heavyweight desktop diff tools, a browser-based line diff is instant and requires no installation. Paste two versions side by side and review the colored output immediately.

WaiHub's Text Diff runs entirely in your browser — sensitive source code and configuration never leave your device.

  • Line-by-line diff highlighting
  • Added, removed, changed stats
  • Side-by-side input panels
  • Color-coded legend
  • No installation required
  • Privacy-first browser processing

Features

  • Compare two text blocks
  • Line-by-line diff algorithm
  • Green/red/yellow highlighting
  • Diff statistics summary
  • Dual input textareas
  • Clear both sides at once
  • Monospace diff output
  • Works with code and configs
  • Runs locally in browser
  • No server upload

How To Use

  1. Paste original text

    Enter the baseline text in the left panel.

  2. Paste comparison text

    Enter the updated text in the right panel.

  3. Review highlighted diff

    Scroll the diff output to see added, removed, and changed lines.

  4. Check statistics

    Use the stats bar to see counts for each diff type.

Examples

Config change

Before

port=3000
host=localhost

After

port=8080
host=localhost

Code edit

Before

const x = 1

After

const x = 2

FAQ

Is this text diff free?
Yes. Completely free with no signup.
Is my data uploaded?
No. Diffing runs entirely in your browser.
Word-level diff?
This tool compares line by line — ideal for code and config files.
Can I use it commercially?
Yes. Free for personal and commercial use.
How are blank lines handled?
Blank lines are treated as individual lines in the comparison.

Related Tools