Text to Unicode Converter
Convert text to Unicode escapes and back: JavaScript \uXXXX, U+ code points or HTML &#x entities. Emoji-safe, bidirectional, runs in your browser.
What is the Text to Unicode Converter?
The Text to Unicode Converter translates between readable text and Unicode escape notation in both directions.
- Three formats: JavaScript \uXXXX, U+ code points, HTML entities
- Decodes \u{...}, U+, &#x…; and decimal &#…; automatically
- Emoji-safe: full astral-plane code point support
- Option to escape all characters or only non-ASCII
- Bidirectional and fully offline
How to use the Text to Unicode Converter
- 1
Pick the direction: text to Unicode, or Unicode to text.
- 2
Choose the escape format — \uXXXX, U+XXXX or HTML &#x entities.
- 3
Paste your input; the converted result appears instantly.
- 4
Optionally escape every character, not just non-ASCII ones.
- 5
Copy or download the result.
About the Text to Unicode Converter
The Text to Unicode Converter translates between readable text and Unicode escape notation in both directions. Choose JavaScript-style \uXXXX escapes, formal U+XXXX code points, or HTML hexadecimal entities like 😀, and convert either way instantly.
It is aimed at developers debugging encoding issues, localisation engineers inspecting strings, and anyone who needs to embed non-ASCII characters safely in source code or markup. The converter reads full code points, so emoji and other characters outside the Basic Multilingual Plane are handled correctly — including proper surrogate pairs in \uXXXX mode.
All conversion happens 100% locally in your browser. Nothing is uploaded, so you can safely inspect sensitive strings and tokens.
Frequently asked questions
How do I convert text to Unicode escape sequences?
Paste your text, choose a format, and each character is shown as its Unicode escape — for example é becomes \u00E9, U+00E9 or é depending on the format you pick. By default only non-ASCII characters are escaped.
How are emoji handled?
Emoji live outside the 16-bit range, so in \uXXXX mode they are written as surrogate pairs (😀 becomes \uD83D\uDE00), while U+ and HTML entity modes use the single real code point (U+1F600 or 😀). Decoding accepts all of these.
Can it decode mixed escape styles?
Yes. In decode mode the tool recognises \uXXXX, \u{XXXXX}, U+XXXX, hexadecimal &#x…; and decimal &#…; entities in the same input and turns them all back into readable text.
What is the difference between \uXXXX and U+XXXX?
U+XXXX is the formal Unicode notation used in documentation, while \uXXXX is the escape syntax used inside JavaScript, JSON and Java string literals. They refer to the same code points, just written for different audiences.
Is my text uploaded?
No. Encoding and decoding use your browser's built-in JavaScript string functions, so everything stays on your device.
Related tools
Text to Binary Converter
Convert text to 8-bit binary and decode binary back to text, with decimal and hex views. UTF-8 aware, free, private, in-browser binary translator.
Base64 Encoder
Encode text or files to Base64 instantly in your browser. UTF-8 safe, with a URL-safe Base64 option, copy and download. Free online Base64 encoder.
URL Encoder
Percent-encode text for URLs instantly. Switch between encodeURIComponent and encodeURI modes, see live output and copy the result. Free URL encoder.
Unicode Text Normalizer
Normalize Unicode text to NFC, NFD, NFKC or NFKD, compare code points before and after, and fix strings that look identical but don't match.
Emoji Remover
Remove all emoji from text in one click — smileys, flags, skin tones, ZWJ sequences and hidden variation selectors — with optional whitespace cleanup.