Unicode text normalization converts text into a standard form so that strings which mean the same thing are stored the same way. Two of its four forms, NFKC and NFKD, also fold “compatibility” characters back to ordinary ones, which is why 𝐇𝐞𝐥𝐥𝐨 in mathematical bold becomes Hello. If you compare styled and ordinary characters across a generator’s styles, though, you will find several that normalization cannot touch.

This guide shows which forms do what, which styles they restore, and where restoring text quietly loses something you wanted to keep.

Why text needs normalizing at all

Unicode often has more than one way to store the same visible text. The letter é can be a single character, U+00E9, or a plain e followed by a combining acute accent, U+0301. Both draw the same thing, but a computer comparing them byte by byte sees two different strings.

Normalization fixes that by agreeing on one spelling. The rules are defined in Unicode Standard Annex #15, currently at the revision for Unicode 18.0.0, and every major programming language implements them. In JavaScript it is a single method, String.prototype.normalize().

Canonical and compatibility equivalence

The annex defines two kinds of sameness, and the difference explains everything that follows.

Canonical equivalence is strict. Two canonically equivalent sequences “should always have the same visual appearance and behavior”, in the annex’s words. Precomposed é and e plus a combining accent are canonically equivalent.

Compatibility equivalence is looser. The annex calls it “a weaker type of equivalence” between characters that “may have distinct visual appearances or behaviors”. A mathematical bold 𝐀 and a plain A are compatibility equivalent: same underlying letter, different presentation.

The four forms

Form What it does é (precomposed) 𝐇𝐞𝐥𝐥𝐨
NFD Canonical decomposition Splits into e + U+0301 Unchanged
NFC Canonical decomposition, then recomposition Stays as U+00E9 Unchanged
NFKD Compatibility decomposition Splits into e + U+0301 Hello
NFKC Compatibility decomposition, then canonical recomposition Stays as U+00E9 Hello

The K stands for compatibility. Only the K forms touch styled letters, and that is by design.

Why NFKC restores mathematical letters

Every letter in the Mathematical Alphanumeric Symbols block carries a compatibility mapping in Unicode’s character database. The entry for mathematical italic small a reads <font> 0061: a font variant of U+0061, the ordinary a. NFKC follows that mapping and replaces the styled letter with the plain one.

Other styled sets have similar tags. Wide text maps through <wide>, bubble letters through <circle>, and superscripts through <super>. The full structure of the mathematical block is covered in our Mathematical Alphanumeric Symbols explainer.

What NFKC does to each style

We ran Hello in sixteen styles through all four forms on 26 November 2026, using this site’s conversion code and JavaScript’s built-in normalize(). NFC and NFD left every styled version unchanged, so the table shows NFKC alongside the result from the “Fancy text to normal” decoder on our Fancy Text Generator.

Style Input After NFKC Our decoder
Serif bold 𝐇𝐞𝐥𝐥𝐨 Hello Hello
Italic 𝐻𝑒𝑙𝑙𝑜 Hello Hello
Bold italic 𝑯𝒆𝒍𝒍𝒐 Hello Hello
Script ℋℯ𝓁𝓁ℴ Hello Hello
Gothic ℌ𝔢𝔩𝔩𝔬 Hello Hello
Double struck ℍ𝕖𝕝𝕝𝕠 Hello Hello
Monospace 𝙷𝚎𝚕𝚕𝚘 Hello Hello
Wide text Hello Hello Hello
Bubbles Ⓗⓔⓛⓛⓞ Hello Hello
Superscript ᴴᵉˡˡᵒ Hello Hello
Squares 🄷🄴🄻🄻🄾 HELLO HELLO
Small caps ʜᴇʟʟᴏ unchanged hello
Dark bubbles 🅗🅔🅛🅛🅞 unchanged HELLO
Upside down ollǝH unchanged unchanged
Underline H̲e̲l̲l̲o̲ unchanged Hello
Strikethrough H̶e̶l̶l̶o̶ unchanged Hello

Script and gothic restore cleanly even though some of their letters, such as ℋ and ℌ, live in the older Letterlike Symbols block. Those characters carry <font> mappings too.

What normalization leaves alone

Four groups of styled text pass through every normalization form untouched.

Small caps. Letters like ᴇ and ʟ were encoded for phonetic transcription. To Unicode they are distinct letters, not styled forms of E and L, so they have no compatibility mapping.

Upside down and lookalike alphabets. ǝ is a real letter from phonetic notation, and lookalike styles built from other scripts (卄乇乚乚口) or currency signs are genuine characters with their own meanings.

Dark bubbles and flag letters. The negative circled letters and the regional indicator letters used for flags have no compatibility decomposition either.

Combining marks. Underline and strikethrough are separate characters sitting after each letter. Normalization reorders and composes marks but never deletes them, so H̲e̲l̲l̲o̲ stays underlined in all four forms. See our explainer on combining marks for how they work.

Removing marks is a separate step

To strip underlines, software usually decomposes the text and deletes every nonspacing mark. That works, but it cannot tell an underline from an accent: Café loses its accent and becomes Cafe.

Our own decoder works this way. When we tested it on 26 November 2026, it turned the decomposed italic 𝐶𝑎𝑓𝑒́ into Cafe, while NFKC turned the same input into Café, composing the accent onto a plain e. If accents matter, normalize with NFKC first and remove only the specific marks you know are decorative, such as U+0332 (low line) and U+0336 (long stroke overlay). Accented letters have their own guide: why accented letters do not convert to fancy fonts.

What normalization can lose

NFKC removes distinctions that sometimes carry meaning. The annex says outright that in the K forms “many formatting distinctions are removed”.

Input After NFKC What was lost
x² x2 The exponent
½ 1⁄2 The single fraction character
Brand™ BrandTM The trademark sign
fine fine The ligature (usually harmless)
𝐯 and 𝑣 in an equation v and v Two different variables become one

That is why Unicode’s normalization FAQ describes NFKC and NFKD as forms that “do lose information” and calls NFC “the best form for general text”, while NFKC is preferred for identifiers. MDN’s guidance gives the same warning about compatibility normalization.

Normalization does not change case

𝐇𝐞𝐥𝐥𝐨 becomes Hello, not hello. NFKC keeps capital and small letters exactly as they were, so a styled 𝐍𝐎𝐕𝐀 and a plain nova are still different strings after normalization.

Systems that need case-insensitive matching, such as username checks, add a separate step called case folding. Unicode defines a combined operation for identifiers, toNFKC_Casefold, in Unicode Standard Annex #31. Case folding is not the same as lowercasing either: in our test, Straße lowercased stays straße, while case folding produces strasse, because folding is designed for matching rather than display.

Decoders can lose case in the other direction. Small caps have no capital forms of their own, so our decoder returns ʜᴇʟʟᴏ as hello, and the original capital H cannot be recovered from the styled text.

Normalizing outside the browser

You do not need special software. Most programming languages include normalization in their standard library, and the result is the same everywhere because the rules come from the Unicode Character Database.

Where Command
Browser console or Node.js s.normalize('NFKC')
Python 3 unicodedata.normalize('NFKC', s) after import unicodedata
Python 3, with case folding unicodedata.normalize('NFKC', s).casefold()

On 27 November 2026 we ran sixteen styled versions of Hello through NFKC in Node.js 24 and in Python 3.12, and the outputs were identical byte for byte. For styles that NFKC cannot restore, such as small caps or dark bubbles, a lookup decoder like the “Fancy text to normal” box is still needed.

When to normalize fancy text

NFKC is the right tool when you need to compare, match or look something up, and the wrong one when you need to preserve exactly what someone wrote.

Good uses:

  • Checking whether a styled name collides with an existing plain one. This is why many username systems normalize, as covered in why fancy text does not work in usernames.
  • Searching or filtering text that might contain styled letters.
  • Cleaning up a styled phrase before reusing it somewhere plain.

Poor uses:

  • Rewriting a whole document, which would also flatten superscripts, fractions and symbols.
  • Mathematical or scientific text, where bold and italic letters carry meaning.
  • Anything that must be stored exactly as typed.

Restore before you translate

Translation tools, spell checkers and other text software are built around ordinary letters. They may not treat a mathematical letter as the word it resembles, and we cannot see inside any particular service to say how it handles them. Restoring the text first is the dependable order: normalize or decode it, check that the plain words are complete, then translate.

Two limits apply. Styles that NFKC does not restore, such as small caps and upside down text, need a lookup decoder instead. And if the restored text lost accents, the translation will be working from misspelled words. The ways characters change in transit are covered in why fancy text changes after copy and paste.

Normalize five styles yourself

Questions people ask

Which form turns fancy text back into normal text? NFKC or NFKD. NFC and NFD leave styled letters alone.

Why does NFKC not fix small caps or upside down text? They are real letters from other alphabets, with no compatibility mapping.

Does normalization remove underlines? No. Every form keeps combining marks. Removing them is a separate step.

Is it safe to run NFKC on all my text? No. It also flattens superscripts, fractions and symbols. Use NFC for general text.

Should I normalize before translating? Yes, then check the restored words are complete before you translate.

Normalization restores letters, not intent

NFKC is very good at one job: recognising that a styled letter is a presentation of an ordinary one and handing back the ordinary one. It cannot recover styles built from other alphabets, it will not remove decorative marks, and it will flatten meaningful symbols along the way. Use it to compare and clean up, keep NFC for storing text, and check the output whenever the exact spelling matters.