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.
Try Next
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.
Related Tools
URL Encode/Decode
Percent-encode and decode URLs online. Handles query strings, path segments, and special characters correctly.
Image → Base64
Convert images to Base64 data URLs online. Drop or select any image and copy the ready-to-paste data URI for CSS, HTML, or JSON.
Base64
Encode and decode Base64 strings online. Supports UTF-8 text and URL-safe Base64. All processing runs locally in your browser.
ROT13
Apply ROT13 to any text online — a symmetric letter-rotation cipher (rot13(rot13(x)) == x). Also supports ROT-N with custom shift, and ROT47 for full ASCII coverage. Runs 100% locally.
Base64 Image Decoder
Decode Base64 strings back to images. Paste a data:image/... string or raw Base64, and see the decoded image instantly. Useful for debugging data URIs and embedded images. 100% local.
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.