Z

Text Diff — Free Online Diff Checker (Line, Word & Character)

Compare two blocks of text — side-by-side, inline, or unified patch. Line, word, or character granularity.

Free No signup Client-side Privacy friendly Updated
+ added - removed unchanged Computing…

How to use

  1. 1 Paste the original text on the left, the modified text on the right.
  2. 2 Pick a view — side-by-side, inline, or unified patch.
  3. 3 Pick a granularity — line, word, or character.
  4. 4 Stats and color-coded output update live.

Why use this tool

  • Powered by Google's <code class="font-mono text-xs">diff-match-patch</code> — the same algorithm used in many production diff tools.
  • Pure client-side — your text never leaves the browser.
  • Multiple views — pick the format that fits your review.
  • Unified patch output is paste-ready for <code class="font-mono text-xs">patch -p0</code>.

Frequently asked questions

What's the difference between line, word, and character granularity?

Line groups changes by full lines (cleanest for code review). Word highlights edited words within a paragraph. Character is finest-grained — useful for small typo fixes.

Can I export the diff as a patch file?

Yes — pick the Patch view. The output uses the diff-match-patch unified format, compatible with most patch utilities.

Need to compare JSON or XML?

Use <a class="text-brand-600 hover:underline" href="/json-diff">JSON Diff</a> for structural JSON comparison.

Related tools?

<a class="text-brand-600 hover:underline" href="/json-formatter">JSON Formatter</a> for cleaning input before comparing; <a class="text-brand-600 hover:underline" href="/deduplicate-lines">Deduplicate Lines</a> for list cleanup.

What is Text Diff?

A Text Diff tool compares two blocks of text and highlights the additions, deletions, and unchanged regions. Line-level diffs match the behaviour of `git diff`; word- and character-level diffs surface small edits inside long lines. Three display modes are common: side-by-side (original vs new), inline (one stream with insertions/deletions marked), and unified patch (the format git produces).

How Text Diff compares to alternatives

Text Diff versus typical browser and desktop alternatives — features compared at a glance.
Feature Zerethon Tools Typical online tools Desktop apps
Side-by-side view Yes Yes Yes
Inline view Yes Sometimes Yes
Unified patch output Yes Rarely Yes
Line / word / character All three Line only All three
Content leaves device No Sometimes No
Free Yes Yes (with ads) Often paid
Summary

Text Diff is a free developer utility by Zerethon Tools. Compare two blocks of text — side-by-side, inline, or unified patch. Line, word, or character granularity. Runs entirely in the browser — no signup, no upload.

Category
Developer
Pricing
Free
Privacy
Browser-based
Signup
Not required

Privacy

Your data never leaves your browser unless explicitly stated. Text Diff runs entirely client-side — no server upload, no logging, no tracking of your input.

Related tools

Build, share, and grow on Zerethon Social

Free signup. Earn points, collect achievements, and connect with creators worldwide.

Sign up free