Code points in plain terms

Unicode gives every character a number called a code point, written U+ followed by hexadecimal digits. The letter A is U+0041, the euro sign is U+20AC and the grinning face emoji is U+1F600. The default text A😀 therefore gives U+0041 U+1F600. The code space runs from U+0000 to U+10FFFF, which is 1,114,112 positions arranged in 17 planes of 65,536. This page shows the numbers behind the symbols, which helps when you debug an unexpected character, compare two strings that look identical, or look up a character in the Unicode charts.

Scalar values and surrogates

The page works with Unicode scalar values, which are all code points except the 2,048 surrogate values from U+D800 to U+DFFF. That leaves 1,112,064 valid scalars. Surrogates exist only for UTF-16, where a character above U+FFFF is stored as a pair of 16-bit code units. The emoji U+1F600 becomes D83D followed by DE00. JavaScript strings use UTF-16, so the string A😀 has a length of 3 even though it contains two characters. This page reports scalars, so it lists two code points. A lone surrogate is not a character, and the page rejects it as input.

A letter and an emoji in three encodings

Text with an ordinary letter and an emoji shows the difference between systems. The letter A needs one byte in UTF-8, one 16-bit unit in UTF-16 and one scalar. The emoji needs four bytes in UTF-8, two 16-bit units in UTF-16 and still one scalar. The page prints the scalars: U+0041 U+1F600. Other examples: é is U+00E9, and the flag of the United States is two regional indicator scalars, U+1F1FA U+1F1F8, which a font draws as a single flag. When a length check fails for emoji text, comparing counts of scalars, UTF-16 units and bytes explains it. A tweet-style limit, a form field maximum and a database column may each count a different thing, so the same emoji message can pass one check and fail another. The code point list tells you which count applies to your case, and the byte view on the sister page covers the rest.

Decoding code points

In decode mode, enter tokens such as U+0048 U+0069, separated by spaces or commas. Each token needs the U+ prefix and four to six hexadecimal digits, with leading zeros as needed, so U+48 is rejected and U+0048 is accepted. The page checks that every value is no larger than U+10FFFF and not a surrogate, then joins the characters into text. The example above gives Hi. This direction is useful when documentation lists characters only by code point, for instance for a symbol you cannot type. Pasting the result into a document uses whatever font is available, which may show a placeholder if the font lacks that glyph. Commas work as separators too, so U+0048,U+0069 gives the same Hi. If one token is invalid the whole input is rejected, which prevents a half-decoded string from slipping through unnoticed.

Characters are not always one code point

What a reader sees as one character may be several scalars. The letter é can be one scalar, U+00E9, or two: e (U+0065) followed by a combining acute accent (U+0301). The two look the same on screen, but they compare as different strings until normalized. Emoji can combine with skin tone modifiers and joiners (U+200D) into one visible symbol made of many scalars. Counting scalars is therefore not the same as counting what a user perceives as characters, which Unicode calls grapheme clusters. This page reveals the underlying sequence, which is the first step to diagnosing search, sort and comparison problems. Unicode normalization forms NFC and NFD, defined in Unicode Standard Annex 15, convert between the composed and decomposed spellings. Two strings that differ only in composition should be normalized to one form before comparing them, and this page shows which form you currently hold.

Invisible and look-alike characters

Code points expose characters you cannot see. A zero-width space is U+200B, a non-breaking space is U+00A0, and a byte order mark is U+FEFF. They can break string comparisons, identifiers and CSV imports without any visible clue. Look-alikes cause trouble too: the Cyrillic letter а is U+0430, while the Latin letter a is U+0061. Domain names and usernames can be spoofed this way. Running suspicious text through this page and checking for unexpected values is a quick audit. Any code point outside the Basic Latin range in text that should be plain English deserves a second look. Typographic characters are a frequent culprit: a curly apostrophe is U+2019 and an en dash is U+2013, and both can slip into code or data copied from a word processor.

Related encodings

A code point is an abstract number, and an encoding decides how it is stored. UTF-8, defined in RFC 3629, uses one to four bytes. The UTF-8 byte converter on this site shows those bytes in hexadecimal. UTF-16 uses one or two 16-bit units, and UTF-32 uses four bytes for every scalar. HTML and CSS can refer to a code point directly, as 😀 or \1F600, and many programming languages accept \u escapes. Knowing the code point lets you write any of these forms correctly, instead of searching for a symbol in a character map each time. For example, the escape for the euro sign in a JSON string is \u20ac, and the one for the emoji above is the pair \ud83d\ude00, which shows the surrogate pair directly.

Practical workflow

To check an unknown character, paste it, read the U+ value and look it up in the Unicode Character Database or a charts page for its official name and category. To write a character you cannot type, find its code point, enter it in decode mode and copy the result. To compare two strings that look the same, encode both and compare the code point lists. If the lists differ, a hidden character or a different composition is responsible. Keep the full U+ tokens when you copy results, including the plus sign and the leading zeros, so that others can decode them exactly.

Unpaired surrogates and values above U+10FFFF

Input is processed in your browser and limited to 1 MiB of UTF-8 text. Unpaired surrogates, values above U+10FFFF and malformed tokens are rejected. The page does not normalize text, name characters, identify scripts or count grapheme clusters, and the scalar count it implies is not a user-perceived character count. It does not check that a code point is assigned. Unassigned and private-use values are accepted if they are valid scalars, though the characters may display as boxes in your font.