Text to Unicode
Escape any text to \uXXXX, \u{...}, U+XXXX or decimal code points — and decode them all back. Emoji-safe, instant, fully local.
Next steps
This tool runs entirely in your browser. Your data never leaves your device — it is not uploaded to any server.
How to use
- 1Paste the text to escape — output updates live.
- 2Pick a notation with the checkboxes: \uXXXX, \u{...}, U+XXXX or decimal.
- 3Or turn on decode mode and paste escapes to get text back.
Text to Unicode
Unicode escapes are how source code, JSON payloads and config files represent characters that are hard to type or unsafe to embed. Paste any string and pick a notation: \uXXXX for classic JavaScript/Java form, \u{...} for full astral-plane support, U+XXXX for the code charts, or plain decimal code points.
Decode mode understands all four notations mixed together, so you can paste anything from \u00e9 to U+1F600 or 😀 and get readable text back. Characters outside the BMP (emoji, rare CJK) fall back to \u{...} automatically in \uXXXX mode instead of producing broken surrogates.
The \uXXXX notation is the JavaScript/Java escape form, \u{...} is the ES6 code-point form that handles the full Unicode range beyond U+FFFF, U+XXXX is the Unicode standard's code-chart notation, and decimal is the raw code-point number used by HTML entities and some databases. All four are mathematically equivalent — the same character, four spellings.
Compared with looking up each character in a Unicode table or guessing the escape in a REPL, the tool encodes a whole string at once and decodes mixed notations back — \u00e9, U+1F600 and 😀 in one paste all resolve correctly. Characters outside the BMP automatically fall back to \u{...} in \uXXXX mode instead of producing a broken surrogate pair.
Frequently asked questions
q
a
q
a
q
a
Is there a length limit?
No artificial limit. Text is processed entirely in memory, so even very large documents work — the only practical bound is your device's RAM.
Can I process multiple files at once?
Text tools work on the text you paste or drop in; batch operations that support it show an explicit multi-file picker.
Is this tool free to use?
Yes, completely free — no signup, no subscription, no daily limits, and no watermarks on the output.
Related tools
Text to Binary
Convert any text to 8-bit binary bytes and back — UTF-8 safe, instant and fully in your browser. Perfect for teaching, puzzles and CS homework.
Fancy Text Generator
Turn plain text into 12 Unicode styles — bold, italic, script, double-struck, circled, fullwidth and more — and copy any one with a single click.
Case Converter
Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case and 6 more styles — live.
HTML Escape / Unescape
Escape or unescape HTML entities live as you type: & < > and quotes become safe references, with an optional numeric mode for non-ASCII characters.
Text Diff
Compare two versions of a text word by word, with additions and deletions highlighted — no account, no upload, no size fuss.
Text Sorter
Sort any list of lines alphabetically, backwards, by length or by number — locale-aware and instant, right in your browser.
Remove Extra Spaces
Collapse double spaces into one, convert tabs, trim line edges and remove empty lines — clean up pasted text in a single pass.
Remove Duplicate Lines
Delete repeated lines from lists and logs while keeping the original order — with case and trim options.
Word Counter
Count words, characters, sentences and reading time live as you type — CJK text handled correctly.
Lorem Ipsum Generator
Generate 1–50 paragraphs of classic lorem ipsum filler for mockups, wireframes and CMS testing — one click to regenerate and copy.
Embed this tool
Put this tool on your own site with one line — it runs entirely in the visitor's browser.
<iframe src="https://zoyku.com/en/tools/text-to-unicode?embed=1" width="100%" height="640" style="border:0;border-radius:16px" title="Zoyku — text-to-unicode" loading="lazy"></iframe>