šŸ”¢Unicode Code Point Converter

Convert characters to and from unicode code points

How to use the Unicode code point converter

A code point is the unique number Unicode assigns to each character. The letter a is U+0061 and the grinning face emoji is U+1F600. Looking the number up is the fastest way to explain a character that renders as a box, two characters that look identical but behave differently, or a value that arrived from a database already mangled.

Three directions are available. Pasted text can be turned into a list of U+ notations or plain decimal numbers, and a list of numbers can be turned back into text. When converting back, anything prefixed with U+ or 0x is read as hexadecimal while a bare run of digits is read as decimal. Values may be separated by spaces, commas or semicolons, and if one of them cannot be parsed the message tells you exactly which value is at fault.

Characters are counted by code point, so an emoji counts as one. JavaScript measures string length in UTF-16 units instead, where the same emoji occupies two slots, which is why both numbers are shown side by side. Sequences such as the family emoji look like a single glyph but are several code points joined by invisible connectors. The table below lists every character with its number and its size so you can see this directly.

Frequently Asked Questions

Why does one emoji produce several rows?

Sequences such as the family emoji join several characters with invisible connectors, so they are multiple code points. The table lists those connectors too.

Why do the code point count and the UTF-16 length differ?

Any character above U+FFFF takes two UTF-16 units. Most emoji fall into that range, which makes the JavaScript length larger than the number of visible characters.

How is the bare number 41 interpreted?

A bare run of digits is read as decimal, so 41 becomes a closing parenthesis. Write U+0041 or 0x41 if you want it read as hexadecimal.