Skip to content
Zesona
Unicode NormalizerLocal

Unicode Normalizer

Normalise text to NFC, NFD, NFKC or NFKD so visually identical strings compare as equal.

  • Free
  • No sign-up
  • Runs in your browser

Input

Runs in your browser

0 characters

Processed entirely in your browser. Nothing is uploaded.

The web default. Lossless.

Try an example

Fill in Your text to continue.

Enter your input to see the result

Everything happens on this device. No upload, no account, no network request.

How to use this tool

  1. 1

    Paste text that looks right but compares wrong, or that came from a macOS filesystem or a copy-paste.

  2. 2

    Choose NFC unless you have a specific reason not to: it is what HTML, JSON and most databases expect.

  3. 3

    Use NFKC only for search keys and identifiers, never for text you need to reproduce exactly.

Questions about Unicode Normalizer

Why do two identical-looking strings not match?

Because an accented letter can be stored two ways: as one precomposed code point (é, U+00E9) or as a base letter plus a combining mark (e + U+0301). They render identically but are different strings, so an equality check or a database lookup fails. Normalising both to NFC makes them match.

What is the difference between NFC and NFKC?

NFC only applies canonical equivalence - transformations that preserve meaning exactly, and which are reversible. NFKC additionally applies compatibility mappings, which are lossy: a fullwidth A becomes a plain A, the ligature fi becomes fi, and superscript ² becomes 2. That is useful for building a search key, and wrong for storing user text.

Which form should I store?

NFC, for almost everything. The W3C recommends it for the web, and most languages and databases assume it. The notable exception is macOS’s HFS+ filesystem, which stores filenames in a variant of NFD, which is why filenames copied from a Mac sometimes compare oddly elsewhere.

Is my text uploaded anywhere?

No. This tool runs as JavaScript inside your browser tab. There is no network request carrying your text, nothing is written to a server log, and the tool keeps working with your connection switched off. You can confirm it yourself in the browser’s network panel.

Does the Unicode Normalizer work offline?

Yes. Once the page has loaded it runs entirely as JavaScript on your own device, so the Unicode Normalizer keeps working with the network switched off and nothing is ever sent to a server.

Other tools you might reach for next.

Break text into code points with their hex value, Unicode block, category, UTF-8 bytes and UTF-16 units.

BrowserText tools

Turn characters that would break a web page - angle brackets, ampersands, quotes - into HTML entities so they display as written.

BrowserText tools

Turn HTML entities such as & and é back into the characters they stand for, so copied markup reads as plain text again.

BrowserText tools

Count words, characters, sentences, paragraphs and UTF-8 size, with all three definitions of "character" reported separately.

BrowserText tools

Count characters three ways - UTF-16 code units, Unicode code points and visible grapheme clusters - plus the UTF-8 byte size.

BrowserText tools

Count sentences using Unicode sentence segmentation, which handles abbreviations better than splitting on full stops.

BrowserText tools