Unicode Escape
Convert non-ASCII characters to Unicode escape sequences (\uXXXX). Keep ASCII text readable while escaping everything else.
How to Use
- 1
Paste your text
Enter text containing non-ASCII characters (accented letters, CJK, Cyrillic, emoji, etc.).
- 2
Click Escape
Non-ASCII characters are replaced with \uXXXX sequences. ASCII characters remain unchanged.
- 3
Copy the result
Click Copy to copy the escaped text for use in code or config files.
What is Unicode Escape?
Unicode escape converts non-ASCII characters into \uXXXX escape sequences (or \u{XXXXX} for characters above U+FFFF like emoji). ASCII characters (code points 0β127) are left as-is for readability.
This is useful when you need to embed international text in source code, JSON strings, or configuration files that only support ASCII. Characters above U+FFFF (like emoji) are encoded as surrogate pairs (\uD83C\uDF0D) for full JSON compatibility. It's also helpful for debugging encoding issues β you can see the exact code points of every character.
FAQ
What format does it use for emoji and characters above U+FFFF?
Why are ASCII characters not escaped?
What is the difference between \u and \U escape sequences?
Related Articles
Related Tools
Unicode Unescape
Convert Unicode escape sequences (\uXXXX) back to readable characters. Supports both \uXXXX and \u{XXXXX} formats.
URL Encoder
Encode special characters for safe use in URLs. Convert spaces, ampersands, and other characters to percent-encoded format.
HTML Entity Encoder
Encode special characters to HTML entities. Prevents XSS attacks and ensures HTML code displays correctly on web pages.
Base64 Encoder
Encode any text to Base64 online. Supports UTF-8 characters including accents, CJK text, and emoji. Free, fast, client-side.
Base64 Decoder
Decode Base64 strings back to plain text online. Handles standard Base64 and UTF-8 encoded content. Free, fast, client-side.
HTML Entity Decoder
Decode HTML entities back to their original characters. Convert <, &, " and numeric entities to readable text.