Unicode Escape / Unescape
Turn Arabic and any Unicode text into \u escapes and back. Essential for JSON and source files.
Loading…
Runs entirely in your browser. Nothing you enter is uploaded or stored on a server.
About this tool
Many JSON files, JavaScript bundles and API responses store non-English text as escape sequences, so a simple Arabic word becomes an unreadable string of backslashes and hex codes. This tool turns those sequences back into readable text, and converts text into escapes when a system requires pure ASCII.
How to use
- 1Choose Unescape to turn escape sequences into readable text, or Escape for the reverse.
- 2Paste the text or escaped string into the input box.
- 3When escaping, keep "Only non-ASCII characters" on to leave English letters and numbers untouched.
- 4Copy the result.
When you need it
- Reading Arabic content inside a JSON response that arrives fully escaped.
- Preparing translation strings for systems that only accept ASCII files.
- Debugging why text appears as codes instead of letters in a log or database export.
Frequently asked questions
Why is Arabic text shown as \u escape codes?
Some serializers escape every non-ASCII character by default to stay safe with old systems. The data is correct — it is just encoded. Unescaping restores the original letters without any loss.
What about emoji and characters beyond \uFFFF?
They are stored as two escape sequences, called a surrogate pair. The tool produces and reads both halves correctly, and also understands the \u{...} form used in modern JavaScript.
Is this the same as URL encoding?
No. URL encoding uses percent signs (%D9%85) and is meant for web addresses. Unicode escapes use backslash-u and are meant for code and JSON. Use the URL tool for web addresses.
Related tools
- Base64 Encoder / DecoderConvert text to Base64 and back. Handles Arabic and any Unicode text correctly.
- JSON Formatter & ValidatorFormat, minify and validate JSON. Errors point to the exact position.
- URL Encoder / DecoderPercent-encode and decode URLs, and split a query string into readable lines.
- HTML Entities Encoder / DecoderConvert & to & and back. Optionally escape every non-ASCII character.
- JWT DecoderDecode a JSON Web Token and read its header, payload and expiry.
- UUID GeneratorGenerate UUID v4 and v7 identifiers, one at a time or in bulk.