Compare strings character by character

Find the exact position where two visually similar strings diverge, including hidden Unicode differences.

Compare strings character by character

Demonstration: visually similar, raw-unequal

First: A B

Second: A B

Raw strings are different.

They remain different after NFC normalization.

  • Position 2: SPACE (U+0020) → NO-BREAK SPACE (U+00A0)

Read the Unicode normalization guide.

Three strings that look similar but compare differently

Unicode UAX #15 distinguishes canonical normalization from compatibility mappings. Equality after normalization is a defined comparison, not evidence that every downstream identifier may be rewritten. Open the normalization fixture or Inspect before choosing Clean.

Why use Compare?

Use Compare for identifiers, copied labels, test fixtures, and any review where visual similarity is not enough.

Coverage

Coverage includes raw equality, NFC-normalized equality, character positions, and the differing code-point values.

Read the related RevealText guide.

Reproduce a synthetic incident

Original fixtures checked on 22 October 2026. No user text is included. Download all cases and independent encoding counts.

A copied SKU does not match

Replace U+00A0 only if the receiving identifier requires an ordinary space. The identical control SKU 001 / SKU 001 rules out a string difference; investigate the receiving system.

Original text · Expected text

\u{53}\u{4B}\u{55}\u{A0}\u{30}\u{30}\u{31}

8 UTF-8 bytes · 7 UTF-16 units · 7 code points in the downloaded original. Compare the original and expected text in Compare; use Inspect to check offsets and Clean to choose a minimal transformation. The original remains in the editor.

Composed and decomposed café

Raw strings differ; NFC makes these two equivalent. NFKC may also change compatibility symbols, so it is not a cosmetic universal fix.

Original text · Expected text

\u{63}\u{61}\u{66}\u{65}\u{301}

6 UTF-8 bytes · 5 UTF-16 units · 5 code points in the downloaded original. Compare the original and expected text in Compare; use Inspect to check offsets and Clean to choose a minimal transformation. The original remains in the editor.