Unicode Escape / Unescape — \uXXXX ↔ Text
Escape and unescape Unicode sequences online. Convert any text to \uXXXX / \u{XXXX} form, or reverse escape sequences back to readable text. Handles surrogate pairs and emoji. 100% local.
Last updated:
CommentsFrequently Asked Questions
What is a Unicode escape sequence?
A Unicode escape sequence writes a character using its code point in hex. In JavaScript, JSON, and most modern languages that looks like \u00e9 (é) or \u{1F600} (😀). Escaping lets you embed any character in a source-code string literal without depending on the file's encoding.
When does the ES6 \u{XXXX} form matter?
Characters above U+FFFF (like most emoji) don't fit in a single 4-hex-digit \uXXXX. Without the ES6 braces you have to write two UTF-16 surrogate escapes (😀 for 😀). \u{1F600} is one code-point form that many modern parsers accept — but not JSON, which still requires the surrogate pair form.
Does this tool understand \xNN and \n / \t?
Unescape mode does. It handles \uXXXX, \u{XXXX}, \xNN, and the common control escapes (\n, \r, \t, \\, \", \') so pasted string literals from source code just work.
Related Tools
Base64
Encode and decode Base64 strings online. Supports UTF-8 text and URL-safe Base64. All processing runs locally in your browser.
Base32
Encode and decode Base32 strings online (RFC 4648). Handles TOTP / Google Authenticator secrets, DNSSEC records, and other case-insensitive binary-to-text formats. 100% local.
Base58
Encode and decode Base58 strings online — the alphabet used by Bitcoin addresses, Solana public keys, IPFS CID v0, and Flickr short links. 100% local, no padding, human-safe.
Punycode
Convert internationalized (IDN) domain names to and from their ASCII xn-- form. Follows RFC 3492 exactly — the same encoding your browser and DNS resolver use. 100% local.
URL Encode/Decode
Percent-encode and decode URLs online. Handles query strings, path segments, and special characters correctly.
HTML Encode/Decode
Encode and decode HTML entities (&, <, >, ", numeric references). Useful for sanitizing user content or debugging escaped markup.