Unicode Code Point Converter
Convert text to U+ code points or decode code points back into characters.
What it does
Unicode assigns a unique number, called a code point, to every character it defines. The usual notation is a U+ prefix followed by hexadecimal digits, so the capital letter A is U+0041 and the euro sign is U+20AC.
The Unicode Consortium's technical introduction explains that the standard defines three encoding forms, UTF-8, UTF-16 and UTF-32, which all cover the same repertoire. MDN notes that JavaScript strings are sequences of UTF-16 code units and that characters outside the basic multilingual plane use surrogate pairs.
Encoding text to code points means walking through the string by code point rather than by code unit. That distinction matters for emoji and historic scripts, where two UTF-16 units together represent one character and should produce a single value such as U+1F600.
This tool performs both directions. Encoding prints each code point with at least four hex digits. Decoding reads U+ values from the input and rejects values that are not valid Unicode scalar values, including lone surrogates.
Code points identify characters. They are different from the bytes used to store them, which depend on the encoding form.
How to use
- Leave the direction on encode and type or paste text into the input box.
- Read the U+ values in the main result, separated by spaces.
- Check the code point count, which treats an emoji as one character.
- Switch to decode and paste a list of U+ values to recover the text.
- Try an emoji to see a five digit code point such as U+1F600.
- Use the table below for a few common values.
Formula
- U+
- The prefix used to introduce a Unicode code point.
- code point
- An integer from 0 to 0x10FFFF assigned to a character.
- BMP
- The basic multilingual plane, code points U+0000 to U+FFFF.
- surrogate pair
- Two UTF-16 code units that together encode one code point above U+FFFF.
The engine uses codePointAt while encoding, so a surrogate pair is consumed as one unit. While decoding it rejects values above U+10FFFF and values in the surrogate range U+D800 to U+DFFF, because neither is a valid scalar value.
Worked example
Example: three characters including an emoji
Input text A, é and the grinning face emoji.
- The first character A has code point 65 decimal, which is 0041 in hexadecimal.
- The letter é has code point 233 decimal, which is 00E9 in hexadecimal.
- The emoji is code point 128512 decimal, which is 1F600 in hexadecimal.
- The tool writes U+0041 U+00E9 U+1F600.
- The code point count is 3, even though the emoji uses two UTF-16 units internally.
- Switching to decode and pasting that string returns the original three characters.
Reference table
| Character | Name | Code point |
|---|---|---|
| A | Latin capital letter A | U+0041 |
| é | Latin small letter e with acute | U+00E9 |
| € | Euro sign | U+20AC |
| Ω | Greek capital omega | U+03A9 |
| grinning face | Emoji | U+1F600 |
Limits
- Input is limited to 1,024 characters to keep the page responsive.
- Decoding requires the U+ prefix. Plain hex numbers are not parsed.
- The tool does not convert between UTF-8, UTF-16 or UTF-32 byte sequences.
- Combining marks are treated as separate code points, not merged into one character.
Common mistakes
- Reading a UTF-16 code unit as a full code point for characters above U+FFFF.
- Entering a lone surrogate value such as U+D800, which the tool rejects.
- Confusing code points with the bytes of an encoded file.
- Expecting two characters to merge when one is a combining accent.
- Omitting the U+ prefix when decoding.
Try it yourself
Quick checks. Answers sit tucked under each question.
What is the code point for the capital letter A?
U+0041, which is 65 in decimal.
How many code points are in the string Aé😀?
3. The emoji is one code point, U+1F600, even though it uses two UTF-16 units.
What does decoding U+20AC produce?
The euro sign €.
Questions
What is a code point?
A number assigned by the Unicode Standard to a character, written with a U+ prefix in hexadecimal.
Why do some code points have five digits?
Because the basic multilingual plane holds only U+0000 to U+FFFF. Characters beyond it need five or six hex digits.
What is a surrogate pair?
Two UTF-16 code units that together encode a single character above U+FFFF, such as an emoji.
Is a code point the same as a byte?
No. Bytes are produced by an encoding form such as UTF-8. A code point is the abstract number.
Does the decoder accept lowercase hex?
Yes. Both U+00e9 and U+00E9 are accepted.
Can I decode several code points at once?
Yes. Separate them with spaces, as in U+0041 U+0042 U+0043.
Sources
- Unicode Consortium: Technical Introduction to the Unicode Standard
- MDN Web Docs: JavaScript String, UTF-16 and code points