Text and writing

Why visually similar text can have different Unicode

Two visually similar texts can contain different sequences of code points, which matters for comparisons and processing.

Before you start

Text is processed in the browser. Consider the content before using it and read the privacy policy.

Privacy

How to use it

  1. Enter é: the letter e followed by U+0301, combining acute accent.

  2. Select NFC and normalize; check the result and counts.

  3. Switch to NFD and compare again; use Unicode Inspector to inspect code points.

Unicode Normalizer

Worked example

The decomposed input contains U+0065 and U+0301; in NFC the result is U+00E9. NFD returns it to two code points.

NFC: é (one code point); NFD: é (two code points).

Unicode UAX #15

Limits and checks

NFC and NFD handle canonical equivalence; NFKC and NFKD also apply compatibility mappings and can alter important distinctions. Normalization does not check meaning or fix every text. Browser support is required; limit: 100,000 UTF-16 code units.

Next step

Inspect both forms in Unicode Inspector to see their code points.

Unicode Inspector
Back to the blog