Toolstia / Unicode normalizer
Unicode normalizer
The same text can be stored in different ways. An e with an accent can be one character or an e followed by a combining accent. Normalising picks one form so comparisons, searches and file names behave. Paste text, choose a form, and see exactly how the length changes.
The same visible text can be stored in more than one way, such as an e with an accent as one character or as two. Normalising makes comparisons and searches reliable.
How it works
- Paste your text.
- Choose NFC, NFD, NFKC or NFKD.
- Compare the counts and copy the normalised text.
The four forms
NFC composes characters where it can. NFD splits them into base letters and combining marks. NFKC and NFKD also replace compatibility characters, such as the fi ligature or a full-width letter, with plain ones.
Which to use
NFC is the usual choice for storing and exchanging text. NFKC is useful for search and for matching user names, because it folds look-alike forms together.
The counts
The tool shows code points and UTF-8 bytes before and after, so you can see when two strings that look the same are really different.
Not lossless
The K forms can change meaning, for example turning a superscript 2 into a plain 2.
Questions
Why do two identical strings not match?
They may use different forms of the same character. Normalising both usually fixes it. Everything happens in your browser, and nothing you enter is sent anywhere.
Does it change emoji?
Emoji mostly stay the same, though some compatibility characters change.
Does it remove accents?
No. NFD only separates them. To drop accents you would then remove the combining marks.