Text Word & Character Diff

Text Word & Character Diff: splits both texts while retaining whitespace tokens and lists tokens absent from the other side; it is not a Myers or aligned diff.

Loading tool module...

About this text word & character diff

Text Word & Character Diff — browser-based utility.

How this tool works

Splits two text fields while retaining whitespace tokens and returns tokens absent from the other side as removed or added in a JSON object. It is a set-membership comparison, not an aligned diff.

  1. Read the two text fields in the browser.
  2. Split both values while retaining whitespace tokens.
  3. Filter each token list for values absent from the other list.
  4. Return removed, added, left, and right fields as JSON.

Worked example

Scenario: Compare tokens that occur on only one side of two short texts.

Sample input:

Left: alpha beta | Right: beta gamma

Processing: Split each text while retaining whitespace tokens, then filter each token list by membership in the other list.

Illustrative output:

{ "removed": [ "alpha" ], "added": [ "gamma" ], "left": "alpha beta", "right": "beta gamma" }

Limits and verification

Duplicate counts, order, moved tokens, replacement pairing, colored highlighting, character edits, line hunks, and patch output are not represented. The tool compares only the two browser text fields.

Examples demonstrate an expected workflow; they do not prove every input or every branch of an external specification. Check important results with an independent source before using them for money, security, compliance, safety, or irreversible file changes.

Browser processing boundary

Tool input is processed by code running in the browser and is not intentionally sent to a CZOA processing API. The page can still request ordinary site assets, analytics, or advertising when those services are enabled. Browser extensions and managed-device software remain outside this tool's control.

Relevant references

These references govern or help explain the format, protocol, or calculation used here. Listing a reference does not claim certification or complete implementation of every optional feature.

Content owner: CZOA Tools · Last reviewed: 2026-09-15 · Review methodology

How to use it

  1. Enter, paste, or select your input data into the Text Word & Character Diff workspace controls.
  2. Review available parameter fields, units, formats, or options configured for your task.
  3. Click the action button or observe immediate live calculations rendered in your browser runtime.
  4. Inspect the resulting output and any diagnostic messages, then copy or download the result if needed.

Frequently asked questions

How does Text Diff Highlighter compare text?+

It splits both inputs while retaining whitespace tokens, then lists tokens absent from the other input as removed or added.

What does the result contain?+

It returns a JSON object with removed, added, left, and right fields. It does not produce colored highlighting markup or a patch.

How are repeated or moved words handled?+

Each token is tested only for membership in the other token array. Duplicate counts, order, moved words, and replacement pairing are not represented.

Which controls affect comparison?+

Run locally compares the primary text field with the Second input/expression field in the browser; it does not read files, repositories, or remote text.