Unicode NFC Normalizer

Paste text and get it back in NFC, the form that spells every accented letter one way.

FluffyShield Protected workspace
FluffyShield

Isolated workspace: other page scripts can't read your files. How FluffyShield works

Free · No upload · No sign-up · No usage quotas

Why won't two copies of the same name match?

Often because one letter in it is stored differently. A letter with two marks, like the ệ in Việt, can be stored several ways that look exactly alike. This page shows three of them.

What NFC does to each letter
  1. Take the letter apart into its base and its marks
  2. Put the marks in a fixed order
  3. Join them into one character where Unicode has one

What it does

Some letters have no single form

q̃, a q with a tilde, has no ready-made character in Unicode, so it stays a q followed by its mark.

A sign that copies a letter

The angstrom sign is a separate character drawn exactly like the letter Å. NFC swaps it for the letter.

Limits Capitals, spaces and the joined-up fi come through exactly as they went in.

Three rows that say Việt, and a search that finds one

Two customer lists have been merged into one, and the name Việt turns up in three rows. A search for the one-piece spelling finds one of them. Nothing is misspelled. The difference is in how the ệ was stored.

A computer keeps every character as a number, which Unicode calls a code point. Unicode has a code point for ệ as a whole, U+1EC7. It also lets the same letter be built from parts: a plain e, then a dot that sits under it, then a circumflex, the little hat, on top. Those marks are separate code points, and they can come in either order.

Stored as one piece4 code pointsViệtDot below, then hat6 code pointsVie◌̣◌̂tHat, then dot below6 code pointsVie◌̂◌̣tAll three after NFC4 code pointsViệt

Three spellings, one result

On screen all three are Việt. Stored, the first is four code points and the others six each, with the two marks the other way round. How we checked

A search compares code points one by one. It finds the spelling you searched for and misses the other two, however alike they look on screen.

Putting the marks in order, then joining them

A sandwich order has the same trouble. Cheese and tomato is the same sandwich as tomato and cheese, but a till that compares the words would ring them up as two. The cure is to write the fillings in one agreed order every time, and then use the menu's name for the sandwich if it has one.

NFC does just that with a letter. The Unicode standard treats a mark that sits below a letter and one that sits above as independent of each other, so the order they were typed in carries no meaning, and it gives them a fixed order: the dot below first, then the hat. With the marks sorted, NFC looks for a single code point that stands for the whole letter. ệ has one, so all three spellings end up the same.

Making a merged list match

This box is FluffyBench's Unicode inspector, already set to NFC.

  1. Paste the names that won't match into the Input box, one to a line.

  2. Look at the NFC box, beside Input on a computer and under the Result tab on a phone.

    The NFC box, headed 14 characters, holding Việt on three lines, with Copy and Download above it.
    The NFC box, headed 14 characters, holding Việt on three lines, with Copy and Download above it.
  3. Press Copy; the whole list goes to your clipboard.

The two boxes look the same, so the count is the only sign of the change: Input says 18 characters and NFC says 14 characters. The four marks have gone into their letters. Text that's already in NFC comes back untouched, so put both lists through before you compare them.

When rows still won't match after NFC

The odd row has a joined-up fi, wide letters or a raised ²

Unicode NFKC Normalizer

NFKC does what NFC does and also turns those styled forms into ordinary letters and digits, which changes the text more.

The odd row shows a code like é where a letter should be

HTML Entity Decoder

That's an HTML code left over from a web page. It turns é back into é and ệ into ệ.

You want to see the code points a row is made of

Unicode inspector

With To on Code points it lists one row per code point, so a mark stored apart from its letter gets a row of its own.

Search FluffyBench