Text to Unicode Escapes
Text to Unicode Escapes is a free online encoder that helps you convert text into Unicode escape sequences; U+XXXX, \uXXXX, &#XXXX; or %uXXXX. Hex digits are uppercase. Text to Unicode Escapes uses 3 input fields, returns 1 output value, and runs in your browser on the device.
Key facts
- Inputs
- 3 fields: Text, Format, and Encode which characters
- Outputs
- 1 value: Escaped text
- Runtime
- your browser on the device
- Mode
- Encoder
- Privacy
- Files and text stay in the browser session.
- Cost
- $0, no account required
How to use Text to Unicode Escapes
- 1
Paste or fill in the input
Enter your text or values into the input fields on the page.
- 2
Run the utility
Click Compute to run the utility in your browser and review the result.
- 3
Copy the output
Copy the output value you need from the result panel.
Text to Unicode Escapes details
First, enter Text in Text to Unicode Escapes. Next, review Escaped text. Additionally, Text to Unicode Escapes uses 3 input fields and 1 output block so the result is easy to scan and copy.
Encode every character of a string into a chosen Unicode-escape notation. Four formats are supported: U+XXXX (Unicode standard UCS notation), \uXXXX (JavaScript / Java / JSON escape), &#XXXX; (HTML numeric entity, decimal-style but you get hex here too; see html-encode for the decimal form), and %uXXXX (older JavaScript escape() style). Each code is rendered as four uppercase hex digits. Supplementary characters (above U+FFFF) are emitted as a surrogate pair so the \uXXXX form is round-trippable. Runs entirely in your browser.
Common searches
- text to unicode
- string to unicode escape
- unicode escape encoder
- text to \u
- text to u+
- javascript unicode escape
Related tools
Tools that work with the same formats — most users open one of these next.
Unicode Escapes to Text
Decode mixed Unicode escapes (U+XXXX, \uXXXX, \u{XXXXX}, \xHH, &#XXXX;, %uXXXX) back to plain text.
Text to Hex
Encode UTF-8 text as a hex string — lowercase, uppercase, space-separated or 0x-prefixed.
HTML Encode
Encode text to HTML entities — escape <, >, &, " and ' (and optionally everything non-ASCII).
Text to Morse Code
Encode text into international Morse code (ITU-R M.1677-1) — letters, digits and common punctuation supported.
Hex to Binary File
Parse a hex dump or hex string back into a binary file — strips offsets, ASCII columns, prefixes and separators automatically.
Base64 Encode
Encode any text to Base64 (and URL-safe Base64) — runs locally in your browser, free and online.
Frequently asked
What is Text to Unicode Escapes?
Text to Unicode Escapes is a free online encoder that helps you convert text into Unicode escape sequences; U+XXXX, \uXXXX, &#XXXX; or %uXXXX. Hex digits are uppercase. Text to Unicode Escapes uses 3 input fields, returns 1 output value, and runs in your browser on the device.
What inputs and outputs does Text to Unicode Escapes use?
Text to Unicode Escapes uses 3 input fields: Text, Format, and Encode which characters. Text to Unicode Escapes returns 1 output value: Escaped text.
Do my files and data stay private?
Yes. Text to Unicode Escapes runs entirely in your browser using your device's CPU. Files and text are never uploaded to our servers, so your data stays private.
How do I use Text to Unicode Escapes?
Open Text to Unicode Escapes, paste or fill in the input fields, and the result updates instantly. Text to Unicode Escapes runs in your browser with no upload and no waiting.
Which browsers does Text to Unicode Escapes support?
Any modern browser works in Chrome, Firefox, Safari, and Edge on desktop and mobile. Text to Unicode Escapes uses standard web APIs and does not require any plugin, extension, or sign-up.