Unicode Code Point Converter
Convert text to Unicode
What Is This Tool?
The Unicode Code Point Converter converts text into its Unicode code points (in U+XXXX hex notation) and back again. Unlike a naive character-by-character split, it is codepoint-aware, so multi-byte characters like emoji and characters outside the Basic Multilingual Plane are handled correctly as single units instead of being split into surrogate pairs. Everything runs locally in your browser.
How to Use
Type or paste text into the Text field, including emoji or accented characters if you like.
Click "Text to Code Points" to see each character's Unicode code point in U+XXXX format.
Or paste code points into the Code Points field and click "Code Points to Text" to convert back.
Use Swap to flip the two fields, or Copy to grab either result.
Features
- Codepoint-aware conversion — correctly handles emoji and surrogate pairs
- Convert text to code points and back in either direction
- Swap button to flip input/output
- Copy buttons for both text and code points
- 100% client-side — nothing leaves your browser
Examples
Text: Café 👍
Code Points: U+0043 U+0061 U+0066 U+00E9 U+0020 U+1F44D
Common Use Cases
- Looking up the exact code point of an emoji or special character
- Debugging text encoding, escaping, or normalization issues
- Building or verifying Unicode escape sequences for code
- Understanding how emoji and non-BMP characters are represented internally
Frequently Asked Questions
How is this different from the ASCII Text Converter?
The ASCII Text Converter processes each UTF-16 code unit, which splits emoji and other characters outside the Basic Multilingual Plane into two codes. This tool uses codepoint-aware iteration, so each character — including emoji — is treated as a single code point.
What format should code points be in?
Hexadecimal, prefixed with U+ and padded to at least 4 digits, separated by spaces, for example "U+0041 U+1F600".
Does this support emoji?
Yes. Emoji, including those made of surrogate pairs in UTF-16, are correctly converted to a single code point using JavaScript's codepoint-aware string iteration.
What happens if I enter an invalid code point?
The tool shows a clear error message identifying the invalid token instead of silently producing garbled output.
Is my text sent anywhere?
No. All conversion happens locally in your browser using JavaScript. Nothing is uploaded or logged.
Does this handle combined emoji like flags or skin-tone modifiers?
Each visual "emoji" that is actually composed of multiple Unicode code points (such as a flag or a modified emoji) will show as multiple code points, since a grapheme cluster is not the same thing as a single code point.