Skip to content
Test versionSearch

Developer tools

Compare four Unicode normalization forms

Observe NFC, NFD, NFKC and NFKD side by side, with exact scalar/unit/byte counts. Optionally compare a second text after each form.

How it worksFAQRelated tools

Content reviewed:

Inspect your own small Unicode sample and calculate. Native exports and report exports are separate; reloading removes temporary scenarios.

Small inspection samples only; malformed surrogates refused. Normalization source/comparison 200 units each, normalized form 800 units and JSON3500 units/report 18 parts; output exceeding bounds refuses. Scalar inspection32scalars/64UTF16 units. Own UTF-8 file up to 8KiB and the tool input bound preserves CRLF/BOM. No grapheme count, Unicode names/database, visual equivalence, confusable/identifier safety or current Unicode 18 conformance claim. Existing larger tools remain available.

Decimal results are approximate. Inputs stay in this browser tab.

How it works

Use the browser runtime four normalization forms and compare the resulting strings by exact equality; count Unicode scalars, UTF-16 units and UTF-8 bytes separately. Compatibility forms can remove distinctions. Small inspection samples only; malformed surrogates refused. Normalization source/comparison 200 units each, normalized form 800 units and JSON3500 units/report 18 parts; output exceeding bounds refuses. Scalar inspection32scalars/64UTF16 units. Own UTF-8 file up to 8KiB and the tool input bound preserves CRLF/BOM. No grapheme count, Unicode names/database, visual equivalence, confusable/identifier safety or current Unicode 18 conformance claim. Existing larger tools remain available.

Worked example

Own fabricated text with Unicode scalars.

Frequently asked questions

What are the four Unicode normalization forms?

The tool shows NFC, NFD, NFKC and NFKD side by side, with exact counts of Unicode scalars, UTF-16 units and UTF-8 bytes.

What changes between NFC and NFD?

In the built-in sample, NFC and NFKC shorten the text from 8 to 7 scalars and from 12 to 11 UTF-8 bytes, while NFD and NFKD leave it unchanged.

What is the difference between NFC and NFKC?

NFKC and NFKD are compatibility forms, which can remove distinctions that NFC and NFD keep.

Can I compare two texts after normalization?

Yes. A second text can optionally be compared after each form by exact string equality.

Does normalization prove two strings look the same?

No. Normalization does not establish visual equality or safe identifiers, and there is no grapheme count or confusable check.

What are the input limits for Unicode normalization?

The source and comparison text are limited to 200 units each, and an own UTF-8 file can be up to 8 KiB.