Pikkola Unicode, tool No. 72

Every character, spelled out.

Paste text and see what it is made of: every grapheme cluster and code point, its name and category, its UTF-8 bytes, UTF-16 units, HTML entity, and the escape you would write in JavaScript or Python. The characters a reader cannot see are listed with the text around them, and one press takes them out.

6
encodings
4
normal forms
0
uploads

The studio

One text, three readings

The specimen reads every character. The hidden bench lists what a reader cannot see and takes it out. The normalizer compares the four forms. All three read the same text, in this tab only.

Your text

Read in the browser, with the network off if you like.
Graphemes0
Code points0
UTF-8 bytes0
UTF-16 units0
Invisible0
Non-ASCII0
The specimen sheet
# Character Code point Name Category UTF-8 UTF-16 HTML JS Python

Type or paste text above. Each character appears here with its code point, name, category and every way to write it.

A character in a cluster shares its row group with the characters joined to it.

A character is not a byte

The same text has a different length depending on how you count it. This page keeps the two counts that matter apart: what a reader sees, and what the machine stores.

01

Code points and clusters

A flag is two code points. A family emoji is seven, held together by zero-width joiners. A Korean syllable in NFD is three jamo that a reader sees as one block. The spec table shows the cluster and, under it, every code point that builds it, because a bug lives in the gap between the two.

02

Invisible is still text

Zero-width spaces, bidi overrides and tag characters are legal Unicode. They pass a review, a diff and a copy and paste. A right-to-left override can make code read one way on screen and another way to the parser, which is the Trojan Source attack. The hidden bench shows each one with the text on both sides.

03

Four normal forms

NFC composes, NFD decomposes, NFKC and NFKD do the same with compatibility characters folded in. A file name from a Mac can be NFD while the same name in a database is NFC, and the two are not equal to a string comparison even though they look identical. The normalizer prints the code points of each form so the difference is visible.

What it looks for

Ten families of characters that are easy to miss and hard to debug. Each finding names the code point, the line and the characters on either side.

    Questions

    Is the text uploaded?

    No. Every reading on this page is a function in a JavaScript file on this domain. The Content-Security-Policy sets connect-src to none, so the page could not send the text anywhere even if it tried, and it keeps working with the network off after the first load.

    What is the difference between a code point and a grapheme cluster?

    A code point is one number in Unicode. A grapheme cluster is what a reader sees as one character. An emoji family can be seven code points joined by zero-width joiners, and a letter with two accents is three code points, while each counts as one grapheme. The table lists both, so a length check that uses the wrong one becomes obvious.

    Why does Korean text from a Mac look broken here?

    macOS stores some file names in NFD, where each syllable is written as its jamo in order. Letters look separate to software that expects NFC, and a search for the composed word finds nothing. The normalizer counts the jamo, shows the difference and composes the text back to NFC in one press.

    What are bidi controls and Trojan Source?

    Bidirectional control characters change the order text is displayed in without changing the order a parser reads. An attacker can open a right-to-left override in a comment so the code shown in review is not the code that runs. The hidden bench lists every control with the characters around it, and the cleanup removes them.

    Does it find every lookalike character?

    It flags lookalike letters from Cyrillic, Greek and Armenian when they sit in a word with Latin letters, and it flags fullwidth and mathematical letters that a normalization would turn into Latin. A whole word written only in lookalike Cyrillic, with no Latin letter beside it, is not flagged, because nothing in the text says which alphabet was meant.

    Are the character names official?

    The general category and the numbers come from the Unicode data in the browser. Names come from a table in this page: all of ASCII, the Latin, Greek and Cyrillic letters, Hiragana and Katakana, Hangul, the combining marks and the format characters, plus the names Unicode defines by algorithm for Hangul syllables and CJK ideographs. A character outside that table shows its block and code point instead of a name.