Free Text Diff Checker Online

Compare two texts side-by-side with Myers diff, the same algorithm Git uses. Split or unified view, line stats, and copyable output. 100% in your browser.

1 lines, 0 characters
1 lines, 0 characters

How to Use

  • Split View: Shows both texts side-by-side with highlighted differences
  • Unified View: Shows differences in a single column with +/- indicators
  • Green: Lines that were added in the modified text
  • Red: Lines that were removed from the original text
  • Swap: Exchange the original and modified texts
  • Copy: Copy the diff output in unified format

How to Use

  1. 1Paste your original text in the left field
  2. 2Paste the modified text in the right field
  3. 3Click 'Compare' to see the differences
  4. 4Switch between split and unified views
  5. 5Copy the diff output for documentation

Tips

  • Use split view for side-by-side comparison of large texts
  • Unified view is better for reviewing changes line-by-line
  • Green highlights show additions, red shows deletions
  • Perfect for code review, document comparison, and change tracking

Common Use Cases

Code Review

Compare before and after code changes to review modifications

Document Changes

Track changes in contracts, policies, or legal documents

Configuration Files

Compare old and new config files to see what changed

Frequently Asked Questions

What is a text diff checker?

A text diff checker compares two versions of text and highlights additions, deletions, and unchanged lines. Use it for code review, contract redlines, config changes, or any side-by-side comparison. Free and instant in your browser.

Does this use the same algorithm as Git?

Yes. This tool uses the Myers diff algorithm, the same line-diff engine behind Git, Mercurial, and many IDEs. Results match what you'd expect from git diff on plain text.

What's the difference between split and unified view?

Split view shows original and modified text in two columns with color highlights. Unified view merges both into one stream with +/- prefixes, like a patch file, ideal for copying into tickets or PRs.

Is my text sent to a server?

No. Comparison runs entirely in your browser with JavaScript. Your documents never leave your device.

Can I compare code or JSON with this tool?

Yes. Paste any plain text: source code, JSON, YAML, logs, or prose. For structured JSON formatting first, pair with our JSON Formatter; for large file diffs, paste the relevant sections.