Inspect Unicode · browser-local

Unicode Normalizer

Normalize canonically equivalent sequences or examine how compatibility normalization changes presentation characters. GlyphSift never presents NFKC/NFKD as harmless formatting because they can change what the text means or looks like.

Works on up to 5,000 characters and 20,000 code points per field (at most 64 code points per character), processed in your browser.

10 graphemes11 code points14 bytes
Normalization form

Live result

Output

Café and ①

Changed
Yes
Code points
10
Bytes
13

Good fit

Use this tool when

  • Visually identical strings fail equality checks.
  • Accents arrive in mixed composed and decomposed forms.
  • You need to test compatibility folding before validation.

Keep the original

Avoid it when

  • You have not reviewed the effect of NFKC or NFKD.
  • The original code-point sequence must be preserved.
  • Normalization is being treated as a complete security sanitizer.
01

Reviewed truth vectors

Examples that expose the edge cases

Inpute + ◌́
Outputé (NFC)

Canonical composition combines the sequence.

Inputé
Outpute + ◌́ (NFD)

Canonical decomposition separates base and mark.

Input①
Output1 (NFKC)

Compatibility normalization changes the circled digit.

02

Transparent implementation

How it works

  1. 01

    Call the standards-based JavaScript normalize method with the selected form.

  2. 02

    Compare output code points and counts with the original.

  3. 03

    Warn whenever a compatibility form changes the source.

03

Known limitations

What the result cannot promise

Normalization does not remove all invisible or dangerous controls.

It does not make mixed-script identifiers safe.

Runtime Unicode support depends on the deployed JavaScript engine.

04

Questions before copying

Frequently asked questions

Which form should I use by default?

NFC is a common storage and interchange default, but the correct choice depends on your system and matching rules.

Can normalization change appearance?

Compatibility forms can. Canonical forms should be canonically equivalent, though fonts and tooling may still expose differences.

Is NFKC a security sanitizer?

No. It can reduce some compatibility differences, but mixed scripts, bidi controls, and confusables need separate checks.

05

Testing and sources

How this tool is tested

GlyphSift Editorial — Text-engine notes written and reviewed by Hommer Zhao, Founder & General Manager

GlyphSift Editorial is the site's writing and review process, led by Hommer Zhao, who is accountable for every tool page and correction. Each tool's examples are written against real Unicode edge cases and checked against the engine before the page is published.

Each tool page is reviewed against the same six input classes the engine is tested with — ASCII, emoji, combining marks, non-Latin scripts, empty input, and 5,000-grapheme input — and cannot become eligible if it is only a parameter variation of another page.

Automated evidence

  • Tool-contract & coverage suiteShared suite · 37 cases across all tools it covers

    tests/tools-30.test.mjs mirrors the ToolRunner dispatch and asserts every registered engineId returns the contracted output shape, plus a coverage guard: every style keeps one output character per input character with unmapped characters passed through in place, and strikethrough, zalgo and upside-down never drop or split a grapheme cluster.

    Run in: node --test after a production build (vinext build)
  • Rendered-HTML suiteShared suite · 26 cases across all tools it covers

    tests/rendered-html.test.mjs renders the deployed server bundle and asserts the Unicode-version manifest and each wave's tool markup are present in the server-rendered HTML.

    Run in: node --test against the built dist/server bundle
  • Unicode inspection suiteShared suite · 21 cases across all tools it covers

    tests/unicode-inspection.test.mjs verifies grapheme/code-point/byte counting and hidden-control detection using explicit \u escapes for combining and bidirectional characters.

    Run in: node --test against the runtime's Unicode data
  • Compatibility risk suiteShared suite · 13 cases across all tools it covers

    tests/compatibility.test.mjs checks that bidirectional controls, invisible characters, mixed scripts, and NFKC-changing input raise the documented risk status, and that safe-text stripping preserves ordinary content.

    Run in: node --test, deterministic analyzer

Standards this tool follows