No Login Data Private Local Save

Unicode Escape Sequence Decoder - Online Convert \u0041 to A

7
0
0
0

Unicode Escape Sequence Decoder

Convert \u0041, \u{1F600}, A and more back to readable text

Format: Auto Detect \uXXXX \u{XXXXX} \UXXXXXXXX &#xXX; &#DDD; %uXXXX \xXX
0 chars
Quick examples:
Hello \u0041\u0042\u0043 😀😎🧐 escapes HTML &#xXX; Python \U Surrogate pairs
Frequently Asked Questions
What is a Unicode escape sequence?
A Unicode escape sequence is a way to represent Unicode characters using only ASCII characters. It's commonly used in programming languages, JSON data, HTML, and other text formats where direct Unicode input might be difficult or unsupported. For example, \u0041 represents the letter "A" (U+0041), and \u{1F600} represents the grinning face emoji 😀 (U+1F600). These escape sequences allow developers to embed any Unicode character in source code or data files using a predictable ASCII-based notation.
What formats does this decoder support?
This tool supports 7 common Unicode escape formats:
  • \uXXXX — JavaScript/JSON/C/C++/Java (4-digit hex, BMP only)
  • \u{XXXXX} — JavaScript ES6+ (1-6 digit hex, full Unicode range)
  • \UXXXXXXXX — Python/C (8-digit hex, full Unicode range)
  • &#xXXXX; — HTML/XML hexadecimal entity
  • &#DDDD; — HTML/XML decimal entity
  • %uXXXX — Legacy JavaScript escape() format
  • \xXX — Single-byte hex escape (0-255, common in many languages)
The default Auto Detect mode handles all formats simultaneously, so you can paste mixed-format text and get correct results instantly.
How do I decode JavaScript \uXXXX sequences?
Simply paste your text containing \uXXXX sequences into the input box. The tool automatically detects and decodes them. For example, pasting Hello \u0041\u0042\u0043 World will instantly produce Hello ABC World. The \uXXXX format uses exactly 4 hexadecimal digits and can represent characters in the Basic Multilingual Plane (U+0000 to U+FFFF). For characters beyond the BMP (like emoji), JavaScript often uses surrogate pairs — two consecutive \uXXXX sequences (e.g., \uD83D\uDE00 for 😀). This tool automatically detects and merges valid surrogate pairs into the correct character.
Can this tool decode emoji escape sequences?
Yes! This decoder fully supports emoji and all characters beyond the Basic Multilingual Plane (BMP). Use the \u{1F600} format (JavaScript ES6+) or \U0001F600 format (Python) for direct emoji representation. The tool also handles surrogate pairs like \uD83D\uDE00, automatically merging them into the correct emoji character 😀. HTML entities like 😀 and 😀 are also supported. Whether it's smileys, flags, symbols, or any other emoji, this decoder will convert them correctly to their visual representation.
What's the difference between \uXXXX and \u{XXXXX}?
  • \uXXXX — The classic format with exactly 4 hexadecimal digits. It can only represent characters from U+0000 to U+FFFF (the Basic Multilingual Plane). For characters above U+FFFF, you need two \uXXXX sequences forming a surrogate pair.
  • \u{XXXXX} — The ES6+ format with 1 to 6 hexadecimal digits inside curly braces. It can directly represent any Unicode character, from U+0000 to U+10FFFF, without needing surrogate pairs. For example, \u{1F600} directly represents 😀, while in the older format you'd need \uD83D\uDE00.
The \u{} format is generally preferred in modern JavaScript/TypeScript code because it's more readable and supports the full Unicode range directly.
How are surrogate pairs handled?
Surrogate pairs are two consecutive 16-bit code units (\uD800-\uDBFF followed by \uDC00-\uDFFF) that together represent a single character above U+FFFF. This decoder automatically detects and merges valid surrogate pairs into their corresponding character. For example, \uD83D\uDE00 is recognized as a valid pair and decoded as the single character 😀 (U+1F600). If only one half of a surrogate pair is present (an unpaired surrogate), it will be shown individually in the detail table with a warning. This ensures accurate decoding even with complex mixed-format input.
Is this Unicode decoder free to use?
Yes, completely free! This Unicode Escape Sequence Decoder is 100% free with no registration required. There are no usage limits, no hidden fees, and no ads that interfere with your workflow. All processing happens directly in your browser — your text is never uploaded to any server, ensuring complete privacy. You can use it as often as you need for debugging, development, data processing, or any other purpose. Bookmark this page for quick access whenever you need to decode Unicode escape sequences.
Did You Know?

Unicode escape sequences appear in many everyday contexts: JSON data often uses \uXXXX for non-ASCII characters; browser developer tools may show escaped strings in the console; CSS uses \XXXXXX (6-digit hex with a space) for Unicode characters in content properties; regular expressions use \uXXXX to match specific Unicode characters; and many log files and API responses contain escaped Unicode that needs decoding for human readability. This tool helps you quickly make sense of all these encoded strings.