U+Unicode Converter
Convert between Unicode escapes and text
Unicode Complete Guide
Unicode is the global standard character set covering every script on earth — Latin, Korean, Arabic, emoji, and more — with over 1.4 million code points defined. Correctly handling Unicode is the foundation of internationalization (i18n) in web development and data processing.
Code Points, UTF-8, and UTF-16 Explained
What is a Code Point?
A code point is the unique number assigned to each character, written as U+XXXX. For example, the Korean character 한 is U+D55C, and 😀 is U+1F600.
Encoding Comparison
| Encoding | ASCII | Korean | Emoji | Primary Use |
|---|---|---|---|---|
| UTF-8 | 1 byte | 3 bytes | 4 bytes | Web, filesystems |
| UTF-16 | 2 bytes | 2 bytes | 4 bytes | JavaScript internals |
| UTF-32 | 4 bytes | 4 bytes | 4 bytes | Internal processing |
Common Escape Formats
- \uXXXX: JavaScript / JSON (BMP range, 4 digits)
- \UXXXXXXXX: Python (full range, 8 digits)
- &#XXXXX; / &#xXXXX;: HTML entities
- \XXXX: CSS content property
- %XX: URL encoding (percent encoding)
Emoji and Surrogate Pairs
Emoji above U+FFFF (like 😀 = U+1F600) are encoded in UTF-16 as two surrogate code units: 😀. In JavaScript, use codePointAt() and String.fromCodePoint() to handle them correctly without manual surrogate arithmetic.
Practical Example: Safe Non-ASCII in JavaScript
// Korean string to Unicode escape "안녕" → "\uC548\uB155" // Emoji code point in JavaScript "😀".codePointAt(0).toString(16) // → "1f600" String.fromCodePoint(0x1F600) // → "😀"