How to use
- In Text β codes, type or paste characters. Each one becomes a Unicode code point. A sample is already filled in, so a result shows immediately.
- Pick an output format that fits where you will paste it:
\uD55Cfor JavaScript or JSON strings,한for HTML,U+D55Cfor documentation. - Choose a separator and letter case, then copy. Turn on Keep plain ASCII as is to convert only non-ASCII characters, giving results like
Hi \uD55C!that you can drop straight into source code. - To go the other way, switch to Codes β text and paste codes.
U+D55C,\uD55C,\u{1F600},한,한and\D55Ccan be mixed and are all read in one pass. - The table below lists each characterβs code point, decimal value, UTF-8 bytes, UTF-16 bytes and Unicode block.
Output formats
The same two characters, ν (U+D55C) and π (U+1F600), in each notation:
| Format | ν | π | Used in |
|---|---|---|---|
| U+ notation | U+D55C |
U+1F600 |
Unicode charts, documentation |
| \u | \uD55C |
\uD83D\uDE00 |
JavaScript, JSON, Java |
| \u{} | \u{D55C} |
\u{1F600} |
JavaScript ES6 and later |
| CSS | \D55C |
\1F600 |
CSS content property |
| HTML hex | 한 |
😀 |
HTML documents |
| HTML decimal | 한 |
😀 |
HTML documents |
Surrogate pairs, UTF-8 and UTF-16
- Characters above U+FFFF (most emoji and some rare CJK) are split into two 16-bit values in the
\uXXXXform. That is why π becomes\uD83D\uDE00. The\u{1F600}form writes it in one piece and is easier to read. - The same
νis three bytes in UTF-8 (ED 95 9C) and two in UTF-16 (D5 5C). π is four bytes in both:F0 9F 98 80in UTF-8 andD8 3D DE 00in UTF-16. - JavaScriptβs
'π'.lengthis 2 because it counts UTF-16 code units. The character count here is by code point.
Reading codes back
- A lone surrogate (just
\uD83D) and any value above U+10FFFF are not valid characters. They becomeοΏ½and the tool tells you how many. - To leave paths like
C:\Users\bobalone, the bare\form is read only when it has four to six hex digits. - For a plain list of numbers, choose Hex list or Decimal list yourself. Separate values with spaces or commas, for example
54620 44544.
Related tools
- Text to Hex Converter: turn text into UTF-8 bytes as hex.
- HTML Entity Converter: also handles named entities such as
<. - JSON Escape / Unescape: safely escape quotes and line breaks for JSON strings.
- Mojibake Fixer: repair text garbled by an encoding mix-up.
FAQ
How do I find the Unicode code point of a character?
Type the character and the table shows it, for example ν is U+D55C and Γ© is U+00E9. Hangul syllables occupy U+AC00 to U+D7A3, which is 11,172 characters.
What does \uD83D\uDE00 mean?
It is the single character π written as a UTF-16 surrogate pair. Paste it into Codes β text and it reads back as π.
What is the difference between U+ and \u notation?
U+D55C is how documents name a code point, while \uD55C is an escape used inside string literals in programming languages. The numbers match, but characters above U+FFFF need two \u groups.
Why does one emoji give several codes?
Family emoji and skin-tone variants are several code points joined by ZWJ (U+200D) or modifiers and drawn as one picture. The table lists each piece separately.
Is my text uploaded?
No. Conversion happens in your browser and nothing is sent to a server.