Unicode Converter - Convert Text to Unicode Escape Sequences
Convert text to Unicode escape sequences (\uXXXX format) and back. Supports emoji, surrogate pairs, and multiple output formats.
Key Features
⚡ Fast Processing
All operations run locally in your browser for instant results.
🔒 Privacy Protected
Your data never leaves your browser. No server storage.
How to Use Unicode Converter
Paste Your Input
Enter or paste your text or Unicode escape sequences into the input area.
Choose an Action
Select "Encode" or "Decode" as needed.
Get Result
View the result in the output area and copy or download as needed.
Frequently Asked Questions
Basics
What are Unicode escape sequences?
Unicode escape sequences are a standardized way to represent Unicode characters using only ASCII text. The most common format is `\uXXXX`, where XXXX is a 4-digit hexadecimal number representing the character's Unicode code point. For example, `\u0048` represents the letter 'H', `\u4E16` represents a Chinese character, and `\u20AC` represents the Euro symbol. This format is widely used in JSON, JavaScript, Java, Python, and many other programming languages. For characters beyond the Basic Multilingual Plane (U+10000 and above, such as emojis), this converter supports both surrogate pairs (`\uD83D\uDE00` for a smiling face emoji) and the ES6-style `\u{1F600}` format, ensuring complete Unicode coverage.
Why use Unicode escapes?
Unicode escapes allow you to represent any character in source code, JSON, or other text formats that may not support direct Unicode input.
Features
Does it support emoji and supplementary characters?
Yes, this Unicode converter fully supports emojis and all supplementary characters (code points U+10000 to U+10FFFF). When encoding an emoji like the grinning face (U+1F600), the converter intelligently handles the character by outputting either: (1) a UTF-16 surrogate pair as two `\uXXXX` sequences (`\uD83D\uDE00`), which is compatible with older systems, or (2) the modern ES6-style format `\u{1F600}` if selected in output options. During decoding, the converter automatically detects and combines surrogate pairs back into their original emoji characters. This ensures round-trip accuracy for all Unicode characters, including the latest emojis, ancient scripts, and rare symbols.