Skip to content
CleanGlyph home

Unicode Normalizer — NFC, NFD, NFKC & NFKD

Normalize Unicode text into NFC, NFD, NFKC, or NFKD. Compare the original and normalized text, inspect code points, and copy the exact result. Everything runs in your browser.

Your text never leaves your browser.

0 code points · 0 / 262,144 UTF-8 bytesNormalized as you type

Normalization form

Normalization form

Combines a base letter and its combining marks into a single precomposed character where Unicode defines one, for example e + ◌́ becomes é. The usual choice for storing and exchanging text.

Normalized text

Paste text or load the sample to see it in the selected normalization form.

How to normalize Unicode text online

Paste your text into Original text, pick a normalization form and the normalized text updates instantly. The result summary shows whether anything changed, the code point and UTF-8 byte counts before and after, and a preview of the first code points. Copy the exact result, or press Use as input to keep working with it.

What NFC, NFD, NFKC and NFKD mean

The Unicode Standard defines four normalization forms. The C forms compose characters, the D forms decompose them, and the K forms additionally apply compatibility mappings.

FormEquivalenceWhat it doesExample
NFCCanonicalDecompose, then recomposee + ◌́ (U+0065 U+0301) → é (U+00E9)
NFDCanonicalDecompose onlyé (U+00E9) → e + ◌́ (U+0065 U+0301)
NFKCCompatibilityFold, decompose, then recomposefi (U+FB01) → fi, A (U+FF21) → A
NFKDCompatibilityFold and decompose only① (U+2460) → 1, é → e + ◌́

Worked before and after example

The sample contains a decomposed é (e followed by a combining acute accent), the ligature fi, the circled digit ① and a full-width A. The canonical forms only change how é is stored. The compatibility forms also replace the three compatibility characters with plain fi, 1 and A.

FormTextCode points
InputCafé | fi | ① | AU+0065 U+0301 · U+FB01 · U+2460 · U+FF21
NFCCafé | fi | ① | AU+00E9 · U+FB01 · U+2460 · U+FF21
NFDCafé | fi | ① | AU+0065 U+0301 · U+FB01 · U+2460 · U+FF21
NFKCCafé | fi | 1 | AU+00E9 · U+0066 U+0069 · U+0031 · U+0041
NFKDCafé | fi | 1 | AU+0065 U+0301 · U+0066 U+0069 · U+0031 · U+0041

Canonical vs compatibility normalization

Canonical equivalence covers sequences that represent exactly the same character, such as é as one code point or as e plus a combining accent, or the Angstrom sign U+212B and Å. NFC and NFD switch between these representations without changing meaning or appearance.

Compatibility equivalence is broader. It treats characters that exist mainly for formatting or legacy encodings, such as ligatures, circled or superscript digits and full-width letters, as variants of plain characters. NFKC and NFKD replace them, which can lose visible formatting, so they are not lossless. Review the output before using it in place of the original.

When Unicode normalization is useful

  • Comparing, sorting or deduplicating strings that came from different keyboards, operating systems or apps.
  • Fixing search and lookups that fail because one copy of a name uses combining marks and another does not.
  • Preparing file names for a workflow that requires a specific normalization form; check the target system's rules.
  • Matching identifiers or search terms with NFKC so full-width or ligature variants find the plain form.

What normalization does not do

Normalization is not transliteration or cleanup. It does not remove accents, change letter case, convert text to ASCII, collapse whitespace, replace smart quotes or dashes, or delete invisible characters. Emoji sequences, zero width joiners and non-joiners, variation selectors and directional marks are preserved. It also does not detect look-alike characters from different scripts, so it is not protection against spoofing. Compatibility forms can map some spacing characters, for example a no-break space becomes a regular space.

The tool normalizes the exact string your browser provides. Browsers can convert pasted line endings in text fields, so copying through this page is not a byte-for-byte file round trip. Input is limited to 256 KiB and output to 1 MiB of UTF-8, and text with unpaired surrogates is rejected instead of guessed at. Large inputs can take longer. Processing stops after one minute without a result; shorten the input and try again. You can edit or clear the text while it runs.

Private, browser-based processing

Normalization runs on your device with the browser's built-in String.prototype.normalize(). Your text is never uploaded, stored, put in the page address or included in analytics.

  • Unicode Inspector: look up the name, category, script and UTF-8/UTF-16 encoding of every code point.
  • Text Difference Checker: compare two strings and see exactly which characters differ, including normalization differences.
  • Text Cleaner: fix spacing, line endings, hidden characters and punctuation in copied text in one pass.
  • Invisible Character Detector & Remover: find and remove zero-width spaces, BOMs and other hidden characters that normalization leaves in place.

Frequently asked questions

What is Unicode normalization?

Unicode often allows the same text to be stored as different sequences of code points. For example, é can be one precomposed character (U+00E9) or the letter e followed by a combining acute accent (U+0065 U+0301). Normalization converts text into one agreed form, defined by the Unicode Standard (UAX #15), so equivalent strings use the same code points.

What is the difference between NFC and NFD?

Both are canonical forms, so they never change what the text means. NFC composes sequences into precomposed characters where Unicode defines one, which is what most systems and the web expect. NFD fully decomposes characters into base letters plus combining marks in a standard order, which is useful for processing individual accents.

When should I use NFKC instead of NFC?

Use NFKC when you want to fold compatibility variants into their plain equivalents, for example when comparing identifiers or search terms: the ligature fi becomes fi, ① becomes 1 and full-width A becomes A. It can lose formatting distinctions such as superscripts, so use NFC when text must keep its original appearance.

Does normalization remove accents?

No. Every form keeps accents. NFC and NFKC keep them as precomposed letters where possible, while NFD and NFKD keep them as separate combining marks. Letter case is never changed and nothing is transliterated to ASCII.

Does normalization change emoji or invisible characters?

Emoji, zero width joiners, the Persian zero width non-joiner, variation selectors, skin tone modifiers, directional marks, tabs and line breaks are left as they are, because the normalization forms do not map them. Compatibility forms can change some other characters, for example NFKC turns a no-break space (U+00A0) into a regular space. To remove hidden characters, use the Invisible Character Detector instead.

Why do two visually identical strings compare differently?

They may use different code points for the same visible result, for example a precomposed é in one and e plus a combining accent in the other, or the Angstrom sign versus Å. Normalizing both to the same form, usually NFC, makes canonically equivalent strings equal. Look-alike characters from different scripts, such as Latin a and Cyrillic а, remain different: normalization does not detect confusables.

Is my text uploaded anywhere?

No. Normalization runs in your browser with the built-in String.prototype.normalize() function. Your original and normalized text are never sent to a server, written to browser storage, added to the page address or included in analytics.