Skip to main content

Text Diff

Compare two texts by line or word with old/new line numbers, preserved blank lines, case and whitespace options, and standard patch export.

Added

0

Removed

0

Unchanged

0

Total changed

0

Unified comparison

Enter text on both sides to see a comparison.

Patch output is a unified diff between before.txt and after.txt. It preserves actual text changes regardless of case or whitespace settings used for the visual comparison.

How to use Text Diff

  1. 1

    Enter text on both sides or load two text files.

  2. 2

    Choose line or word comparison and optional whitespace or case matching.

  3. 3

    Review numbered differences, then copy or download a unified patch if needed.

What You Can Do

  • Old/new line numbers with blank lines preserved
  • Switch between line and word comparisons
  • Independent whitespace and letter-case options
  • Text-file loading, side swap, and standard patch export

FAQ

Q. Can I use this for document review?

A. Yes. It works well for proofreading and config comparison.

Q. Can I ignore whitespace-only changes?

A. Yes. Enable the whitespace-ignore option.

Q. Is there server processing?

A. No. Diff computation is fully local.

Technical Notes

A diff engine computes minimal line edits and classifies chunks as added, removed, or unchanged.

Only changed inputs trigger recalculation, keeping interactions fast.

Security

Input data is processed locally and never uploaded.