Unicode Normalizer
Convert text between NFC, NFD, NFKC and NFKD and inspect every changed code point.
Input text
NFC result
No normalized text yet
Type text above or load an example.
Examples
Decomposed café
cafécafé (NFC)The base letter and combining acute compose into one code point.
Compatibility ligature
fi — ①fi — 1 (NFKC)Compatibility forms fold the ligature and the circled digit.
Already normalized
Hello “world” — 👋unchangedCurly quotes, dashes and emoji are preserved.
About this tool
Two strings can look identical and still fail a JavaScript equality check: café written as one precomposed character uses U+00E9, while the decomposed version uses e plus U+0301. Unicode normalization defines a canonical way to make those strings comparable. This tool applies NFC, NFD, NFKC or NFKD and shows precisely what changed.
The diff aligns before and after code points and reports each insertion, deletion or replacement with its Unicode code point and position. A strip of all four forms tells you at a glance which transformations would alter the input, and the UTF-8 byte counter shows that decomposed text usually costs more bytes than composed text.
Normalization is performed by the platform's String.prototype.normalize and runs entirely in the browser. The tool does not transliterate languages, strip accents, or rewrite punctuation: typography and emoji stay intact unless the chosen form explicitly changes them.
What this tool does not do
- Normalization is not transliteration: letters keep their script and accents.
- The diff alignment is LCS-based for short inputs and positional above roughly one million code-point pairs.
- Input is capped at 1 MB of UTF-8 data to keep the diff responsive.
How to use this tool
Paste text
Enter any text into the input panel; combining marks, ligatures and emoji are all accepted.
Pick a form
Choose NFC to compose, NFD to decompose, NFKC to fold compatibility characters and compose, or NFKD to fold and decompose.
Read the diff
The output panel lists each changed code point with its index and the before/after labels.
Export
Copy the normalized text or download the plain-text change report. Mod+Shift+Enter copies the output.
Use cases
Fix string comparison bugs
Make user input comparable with stored names after normalizing both sides to NFC.
Database deduplication
Detect records that differ only by canonical composition before merging them.
Search indexing
Normalize indexed text so queries match regardless of how accents were entered.
Localization QA
See which code points a form changes before applying it to a translation pipeline.
Normalization forms
| Form | Effect |
|---|---|
| NFC | Canonical decomposition followed by composition; recommended for most stored text |
| NFD | Canonical decomposition into base characters plus combining marks |
| NFKC | Compatibility decomposition followed by composition; folds ligatures to plain letters |
| NFKD | Compatibility decomposition; folds ligatures and leaves marks decomposed |
String lengths in JavaScript count UTF-16 code units, which differ from code-point counts for emoji.
Common mistakes
Mistake:Using NFKC on data where ligature distinctions matter.
Fix:Compatibility forms lose information. Use NFC unless you deliberately want ligatures and circled numbers folded.
Mistake:Expecting normalization to remove accents.
Fix:NFD keeps combining marks; NFC composes them. A diacritics remover is a different operation.
Mistake:Comparing string.length after normalization.
Fix:length counts UTF-16 units, not code points or bytes; use the byte counter provided with the result.
Frequently asked questions
Why do two identical-looking strings compare unequal?
Unicode can represent the same visible character in more than one way. é may be one precomposed code point (U+00E9) or e followed by a combining acute accent (U+0301). JavaScript compares code units, so the strings differ until you normalize both to the same form, usually NFC.
Which normalization form should I use?
Use NFC for most storage, display and comparison workflows: it composes canonical sequences without losing compatibility distinctions. NFD is useful when you need to inspect or remove combining marks. NFKC and NFKD fold compatibility characters such as ligatures and circled numbers, which changes meaning, so use them only when that folding is intended.
What does the diff table show?
It aligns the code points before and after normalization and lists each insertion, deletion or replacement with its index and Unicode label, for example U+0301 COMBINING ACUTE ACCENT. The byte counter next to the output shows how the UTF-8 size changed, which is often larger in decomposed forms.
Does normalization remove accents?
No. NFD separates an accent into a combining mark, and NFC composes it again; neither deletes it. If you want ASCII-only text, use a diacritics remover after deciding whether that loss is acceptable for your data.
Will emoji or typography be changed?
Not by NFC or NFD: curly quotes, em dashes, emoji and non-Latin scripts are preserved. Compatibility forms may fold certain symbols (for example a circled digit or a ligature), and the diff shows exactly what changed so there are no surprises.
Is my text uploaded?
No. Normalization uses the browser's own String.prototype.normalize. The diff, form comparison, copy and report download are all local; no text is sent anywhere or stored by the tool.
References & standards
Related tools
Anagram Solver & Palindrome
Normalize text for palindrome checks and privacy-preserving anagram analysis.
Binary Text Translator
Convert text to binary or hex bytes and decode it back
Braille Translator
Translate text to Unicode Braille and back with UEB Grade 1 letters, numbers, punctuation and a per-cell dot breakdown.
Caesar Cipher Tool
Encrypt, decrypt and brute-force Caesar shifts with English-frequency ranking and a one-click ROT13 shortcut.
Case Converter & Text Formatter
Convert text between 14 different case formats including camelCase, snake_case, kebab-case with batch processing and advanced options
Character Frequency Analyzer
Count character, letter and word frequencies for text analysis