Unicode escape converter
Convert text to and from \uXXXX escapes
Runs in your browser. Nothing is uploaded.
How it works
A Unicode escape writes a character as its code, such as \u20b9 for the rupee sign. It’s used in source code and JSON files that must stay plain ASCII. Characters beyond the first 65,536, such as most emoji, need two codes, called a surrogate pair. Paste text here to convert it both ways.
Each character becomes \u and its four-digit hex code.
JavaScript and JSON store text in 16-bit units. A character outside that range takes two units, so an emoji becomes two escapes.
We also read the longer \u{1F600} form.
Worked example. é is \u00e9. An emoji needs two codes, called a surrogate pair: 😀 is \ud83d\ude00.
Examples
| Text | Escaped |
|---|---|
| é | \u00e9 |
| ₹ | \u20b9 |
| न | \u0928 |
| 😀 | \ud83d\ude00 |
What this tool doesn’t cover
- This handles \u escapes, not other forms such as HTML entities.
Questions
Why does an emoji become two codes?
It’s outside the range of one 16-bit unit, so it’s stored as a surrogate pair.
What does Leave plain letters alone do?
It keeps basic English letters as they are, and only escapes the rest.
Is my text uploaded?
No. Everything runs in your browser, and nothing is saved or sent.
What is a Unicode escape?
A way to write a character by its code, such as é for é. Code uses it to keep text safe in plain ASCII files.
Why do I see \u codes in my data?
Some systems save non-English text as escapes. This tool turns them back into readable characters.
Was this useful?
Built by QuickToolz.
Sponsored
Advertise here10 spots leftSponsored
Advertise here10 spots left