What Is Unicode Normalization?
Unicode normalization is the process of converting Unicode text into a standardized representation. Some characters can be represented by more than one sequence of Unicode code points, even though they look identical when displayed.
For example, the letter é can be represented as
a single Unicode code point
(U+00E9) or as the letter e followed
by a combining acute accent
(U+0065 U+0301).
Both representations are canonically equivalent,
but their underlying Unicode values are different.
Composed Character
U+00E9
1 Unicode code point
Decomposed Character
U+0065 U+0301
2 Unicode code points
These differences can affect string comparisons, database searches, text processing and character counts. Unicode normalization helps make equivalent text more consistent.
Our free online Unicode normalizer supports all four standard Unicode normalization forms: NFC, NFD, NFKC and NFKD. It also displays the original and normalized code points, making it easier to understand how your text has changed.
How to Normalize Unicode Text Online
You can normalize Unicode text in a few simple steps:
- Type or paste your text into the Your Text box.
- Select your preferred normalization form: NFC, NFD, NFKC or NFKD.
- Review the converted text in the Normalized Text box.
- Compare the Unicode code points, UTF-16 code units and UTF-8 byte counts.
- Click Copy Text or Download TXT to save your normalized text.
The results update automatically whenever you enter new text or change the normalization form. You can also click Load Example to experiment with accented letters, ligatures, full-width characters and other Unicode sequences.
The Four Unicode Normalization Forms
The Unicode Standard defines four normalization forms. Each form determines how characters are decomposed, reordered and, where applicable, recomposed.
These forms are described in the official Unicode Standard Annex #15: Unicode Normalization Forms .
| Form | Description | Example |
|---|---|---|
| NFC | Canonical Composition | e + ◌́ → é |
| NFD | Canonical Decomposition | é → e + ◌́ |
| NFKC | Compatibility Composition | ① → 1 |
| NFKD | Compatibility Decomposition | fi → fi |
The dotted circle represents the position of a combining accent and is not part of the actual normalized output.
NFC – Canonical Composition
NFC stands for Normalization Form C. It performs canonical decomposition followed by canonical composition, combining eligible character sequences into their composed representations.
For example, an e followed by a combining acute accent becomes the single precomposed character é.
U+0065 U+0301
U+00E9
NFC is commonly used for web content, text interchange and general-purpose text processing. It is the default normalization form in this tool.
NFD – Canonical Decomposition
NFD stands for Normalization Form D. It separates canonically decomposable characters into their components and places combining marks in their canonical order.
For example, the character é becomes the letter e followed by a combining acute accent.
U+00E9
U+0065 U+0301
NFD is useful when analyzing combining marks, examining character components or preparing text for applications that require a decomposed representation.
NFKC – Compatibility Composition
NFKC stands for Normalization Form KC. It performs compatibility decomposition followed by canonical composition.
In addition to handling canonically equivalent sequences, NFKC converts certain compatibility characters into standardized alternatives. These include full-width letters, circled numbers, superscripts and presentation ligatures.
Hello ① fi ²
Hello 1 fi 2
NFKC can be useful for text matching, search indexing and data preparation. However, it can remove meaningful distinctions between characters, so it should not be applied indiscriminately.
NFKD – Compatibility Decomposition
NFKD stands for Normalization Form KD. It performs compatibility decomposition without the final canonical composition step.
Like NFKC, it converts compatibility characters into standardized sequences. Unlike NFKC, canonically decomposable characters remain decomposed.
é ① fi
é 1 fi
NFKD is useful for specialized text processing and character analysis. It does not automatically remove accents or convert all Unicode characters to ASCII.
Unicode Normalization Examples
The following examples demonstrate how the same input can produce different results depending on the selected normalization form.
| Original | NFC | NFD | NFKC | NFKD |
|---|---|---|---|---|
| é | é | é | é | é |
| ① | ① | ① | 1 | 1 |
| fi | fi | fi | fi | fi |
| A | A | A | A | A |
| ² | ² | ² | 2 | 2 |
| Ⅳ | Ⅳ | Ⅳ | IV | IV |
| ½ | ½ | ½ | 1⁄2 | 1⁄2 |
| 한 | 한 | 한 | 한 | 한 |
| 😀 | 😀 | 😀 | 😀 | 😀 |
Some normalized results may appear identical to the original characters. For example, composed é and decomposed é normally look the same, despite containing different code point sequences.
Use the code point comparison above or our Character Identifier to examine the underlying Unicode representation of individual characters.
When Should You Normalize Unicode Text?
Unicode normalization can be helpful whenever text from different sources needs to be compared, searched, stored or processed consistently.
String Comparisons
Two strings can appear identical but contain different code point sequences. Applying the same normalization form to both strings can make comparisons more consistent.
Database Searches
Normalizing text before storing or searching it can help applications handle canonically equivalent representations consistently, particularly when processing multilingual content.
Data Cleaning
Compatibility normalization can standardize certain full-width characters, ligatures and other Unicode variants found in imported data, provided those distinctions are not important to the application.
Multilingual Text Processing
Accented letters, combining marks and decomposable characters are common across many languages. Normalization helps establish a consistent representation before further processing.
Character Counting
Unicode normalization can change the underlying length of a string without changing its visible appearance. Our Character Counter can help you measure text length, while the normalization statistics above show differences in Unicode code points, code units and bytes.
Understanding Unicode Text Statistics
A text string can have several different lengths, depending on how its characters are measured. The Unicode normalizer displays three measurements for both the original and normalized text.
Unicode Code Points
A Unicode code point is a numerical value used
to identify a position in the Unicode standard.
Code points are commonly written in hexadecimal
notation, such as U+0041 for
the letter A.
A single displayed character may contain multiple code points. For example, a letter with a combining accent or a complex emoji may be represented by several code points.
Our Unicode Detector can help you examine Unicode characters in your text.
UTF-16 Code Units
UTF-16 represents Unicode text using 16-bit code units. Many commonly used characters require one code unit, while supplementary Unicode characters, including many emojis, require two.
JavaScript's standard string length property measures UTF-16 code units rather than Unicode code points or visible characters.
UTF-8 Bytes
UTF-8 represents Unicode characters using a variable number of bytes. ASCII characters require one byte, while other Unicode scalar values require two, three or four bytes.
Normalization can increase, decrease or preserve the UTF-8 size of a string. Use our Byte Counter if you need to measure the byte length of additional text.
| Character | Code Points | UTF-16 Units | UTF-8 Bytes |
|---|---|---|---|
| A | 1 | 1 | 1 |
| é (NFC) | 1 | 1 | 2 |
| é (NFD) | 2 | 2 | 3 |
| 中 | 1 | 1 | 3 |
| 😀 | 1 | 2 | 4 |
Grapheme Clusters
Grapheme clusters are used to approximate user-perceived characters. A grapheme cluster can contain multiple Unicode code points, which is why a visible character count may differ from a code point count.
If you need to count grapheme clusters rather than code points, use our Grapheme Counter.
Canonical vs. Compatibility Normalization
NFC and NFD use canonical equivalence. They standardize different representations that Unicode defines as canonically equivalent.
NFKC and NFKD also use compatibility equivalence. This allows additional character distinctions to be folded, such as the difference between full-width and standard Latin letters or between superscript and ordinary digits.
Compatibility normalization can be helpful for searching and matching text, but it may remove distinctions that matter in mathematical expressions, specialized notation and formatted content.
NFC is a useful default for general text. Choose NFD when you need a canonical decomposed representation. Use NFKC or NFKD when compatibility distinctions should intentionally be removed.
What Unicode Normalization Does Not Do
Unicode normalization is not the same as general-purpose text cleaning. It follows the equivalence and decomposition rules defined by the Unicode standard.
Normalization does not generally remove accents, change uppercase letters to lowercase, remove punctuation or delete invisible characters. It also does not make every visually similar character equivalent.
If you want to identify hidden or nonprinting characters, use our Invisible Character Detector . If you want to remove symbols or unwanted characters, try our Remove Special Characters tool instead.
Frequently Asked Questions
What does a Unicode normalizer do?
A Unicode normalizer converts text into a standardized Unicode representation using one of four normalization forms: NFC, NFD, NFKC or NFKD. This helps make equivalent text sequences more consistent.
What is the difference between NFC and NFD?
NFC combines eligible canonically equivalent sequences into composed characters. NFD separates canonically decomposable characters into their components. Both preserve canonical equivalence.
What is the difference between NFC and NFKC?
NFC uses canonical equivalence, while NFKC additionally applies compatibility mappings. NFKC can convert characters such as circled digits, full-width letters and presentation ligatures into standardized alternatives.
Which Unicode normalization form is best?
NFC is a common choice for general-purpose text and web content. The best normalization form depends on how the text will be used. If a database, application or protocol specifies a particular form, use that form.
Does Unicode normalization remove accents?
No. NFD and NFKD may separate accented letters into base characters and combining marks, but normalization does not remove those combining marks.
Does Unicode normalization convert text to ASCII?
No. Compatibility normalization may convert some Unicode characters into ASCII equivalents, but many non-ASCII characters remain unchanged. Unicode normalization is not the same as ASCII conversion or transliteration.
Can Unicode normalization change character counts?
Yes. Normalization can increase or decrease the number of Unicode code points, UTF-16 code units and UTF-8 bytes. The normalized text may still look identical to the original.
How can I check if Unicode text is already normalized?
Enter your text and select a normalization form. The tool compares the original text with the normalized result and indicates whether the original text already conforms to the selected form.
Can I reverse Unicode normalization?
Not always. Different original character sequences can produce the same normalized representation. Compatibility normalization can also remove distinctions that cannot be reliably recovered. Keep the original text if you need its exact representation.
Does Unicode normalization affect emojis?
Common emoji sequences usually remain unchanged under the four Unicode normalization forms. Normalization does not generally remove emoji variation selectors, skin tone modifiers or zero-width joiners.
Is there a limit to how much text I can normalize?
The tool supports input containing up to 250,000 UTF-16 code units. To keep the comparison responsive, only the first 500 code points of each text are displayed in the comparison section. The complete accepted input is normalized.
Does Unicode normalization preserve line breaks?
Unicode normalization generally preserves ordinary line breaks and does not trim text. However, browser textareas standardize carriage-return line endings to line feeds. Compatibility normalization can also change certain Unicode whitespace characters.
Is the Unicode normalizer free?
Yes. The Unicode normalizer is free to use and does not require an account, registration or subscription.
Is my text uploaded to a server?
Unicode normalization is performed locally using your browser's built-in JavaScript functionality. Your input is not uploaded to a normalization server to generate the result.