Ads disabled until consent granted.

Browser tool

Text Diff Viewer

Visualize differences between two text snippets in side-by-side panels.

Compare two pieces of text side-by-side with instant highlighting. Tune the diff granularity, ignore cosmetic changes, and export a unified patch without leaving your browser.

Key points

Line, word, or character diffs

Switch between line, word, and character analysis to fit the type of change you are reviewing. Each mode recalculates instantly.

Whitespace and case controls

Ignore inconsequential whitespace or case shifts to focus on the edits that matter. Tweak both toggles before exporting a patch.

Unified patch export

Generate a unified diff patch that can be shared with teammates, applied via git apply, or stored in your review system.
+0 additions-0 deletions0 unchanged

Diff options

Mode
Options
Unified patch exports help you apply changes with git apply or review tooling.

Original

Waiting for original input…

Modified

Waiting for modified input…

No differences detected with the current options.

Ads disabled until consent granted.

How to use this tool

  1. Step 1

    Add the original and modified text

    Paste or type your baseline text into the left editor and the new revision into the right editor. The tool diff updates automatically.
  2. Step 2

    Choose the comparison mode

    Select line, word, or character mode and adjust the ignore case/whitespace toggles to tune the output for readability.
  3. Step 3

    Export the diff

    Copy the unified patch or download it as a .patch file. Share links capture your current text and settings for collaborators.

Frequently asked questions

Does the diff run locally?
Yes. All comparisons run in your browser so sensitive drafts stay on-device. Share links encode the input text into the URL using base64url.
How do whitespace and case toggles work?
When enabled the tool collapses casing and whitespace-only edits so you can focus on substantive changes. Try turning them off when reviewing formatting.
Can I diff large files?
Modern browsers comfortably handle files with around ten thousand lines in this tool. For very large binaries or repository diffs use a dedicated CLI workflow.

Avoid sharing links that contain confidential information. Unified patches expose the raw content of both inputs, so scrub secrets before distributing exports outside your team.

Text Diff Viewer — WebUtility.org | WebUtility.org