</>DevTools

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

EncodingASCIIKoreanEmojiPrimary Use
UTF-81 byte3 bytes4 bytesWeb, filesystems
UTF-162 bytes2 bytes4 bytesJavaScript internals
UTF-324 bytes4 bytes4 bytesInternal 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)     // → "😀"

🔗Related Tools🔄 Text / Data