Skip to content
Text ↔ Unicode EscapeText tools

Unicode Escape Converter

Convert text to Unicode escapes (\uXXXX, \u{…}, U+, &#x…;) and decode any escape back to readable text. See every character’s code point and UTF-8 bytes.

Did this tool work for you?

Used Unicode Escape Converter? Share how it went to help others.

About this tool

About Unicode Escape Converter

Unicode Escape Converter turns text into the escape codes that programs use, and turns escapes back into text. In Text → Unicode Escape mode, type or paste any text, including Hindi, emoji or currency signs, and choose the format you need: \uXXXX for JavaScript, JSON, Java and C#; \u{X} for modern JavaScript, Swift and Rust; \uXXXX and \UXXXXXXXX for Python and C; U+XXXX code points; or HTML entities in hex (&#xXXXX;) or decimal (&#NNNN;). Tick "Escape only non-ASCII characters" to keep plain English letters as they are and escape only the rest, which is what you want for JSON files and language strings. Emoji and other characters above U+FFFF are handled correctly: \uXXXX output uses the surrogate pair that JavaScript and JSON expect, while the other formats use the single code point. In Unicode Escape → Text mode, paste any mix of these notations and they are all decoded at once; everything else in the text is left exactly as it was, so you can paste a whole JSON line or log message. Below the output, a character breakdown table lists each character with its code point, JavaScript escape, HTML entity and UTF-8 bytes, plus the number of characters and UTF-16 units, which explains why a string’s length in code can differ from what you see. Everything runs in your browser; nothing you type is sent anywhere.

Unicode Escape Converter tool

Where Unicode escapes are used

From JSON files to broken text

JSON and API data

Read escaped text in API responses, or escape strings safely for JSON.

Example"\u0928\u092e\u0938\u094d\u0924\u0947" in an API response decodes to "नमस्ते".

Translation files

Keep language files ASCII-only by escaping Hindi or other scripts.

ExampleA Java .properties file stores Hindi labels as \uXXXX escapes.

HTML entities

Insert symbols such as ₹ or © in HTML when the editor mangles them.

Example₹ is written as ₹ so it shows correctly on any page.

Logs and debugging

Find invisible characters such as non-breaking spaces or zero-width joiners.

ExampleThe breakdown table shows a U+00A0 non-breaking space that broke a string comparison.

Emoji in code

Write emoji in source code or databases as escapes.

Example😀 becomes \ud83d\ude00 in JavaScript or \U0001F600 in Python.

Learning Unicode

See how characters, code points and UTF-8 bytes relate.

Example₹ is one character, one UTF-16 unit and three UTF-8 bytes: E2 82 B9.

Unicode tips

Avoid common encoding mistakes

Match the format to the language

JSON only understands \uXXXX. \u{…} works in modern JavaScript but breaks JSON parsers, so pick the JS / JSON format for JSON files.

Emoji take two \u escapes

Characters above U+FFFF need a surrogate pair in \uXXXX format. That is why "😀".length is 2 in JavaScript.

Hunt invisible characters

If two strings look identical but do not match, paste them here and compare the code points in the table.

Hindi conjuncts are several characters

A Devanagari syllable such as "स्ते" is made of several code points (consonants, virama, vowel sign), so it escapes to several codes.

URLs use a different encoding

Web addresses use percent-encoding (%E2%82%B9), not Unicode escapes.

Open URL Encode/Decode

Binary data? Use Base64

To put files or bytes into text, Base64 is the right tool, not Unicode escapes.

Open Base64 Encode/Decode
Built & tested by

HemantInsights

Senior Software Engineer · Developer of Toolyconvert

Hemant developed Unicode Escape Converter and tests it on desktop and mobile with real files. He is a senior software engineer from Dehradun, India, building websites since 2014, and designed and developed Toolyconvert end to end.

Last updated 3 November 2026

Answers and guidanceFrequently Asked Questions
What is a Unicode escape sequence?
A way of writing a character by its number, for example \u20B9 for ₹. Programs read the escape and show the real character.
How do I convert \u escapes to text?
Choose Unicode Escape → Text and paste the string. All escapes are decoded; other text is kept as it is.
Which formats can it decode?
\uXXXX, \u{X}, \UXXXXXXXX, U+XXXX, &#xXXXX; and &#NNNN;, even mixed together.
Why is an emoji two escape codes?
JavaScript and JSON store text in UTF-16, where characters above U+FFFF need two 16-bit units called a surrogate pair.
What is the difference between \u and U+?
U+20B9 is the standard way to name a code point in writing; \u20B9 is how it is written inside code.
Can I escape only special characters?
Yes. Tick "Escape only non-ASCII characters" to keep English letters, numbers and punctuation unchanged.
Does it support Hindi and other Indian scripts?
Yes. Any Unicode text works, including Devanagari, Tamil, Bengali and emoji.
What are UTF-8 bytes?
How the character is stored in files and web pages. English letters take one byte, ₹ takes three and most emoji take four.
Is my text sent to a server?
No. Encoding and decoding happen in your browser.
Why does my text show as \u0928 on a website?
The text was escaped twice or not decoded. Paste it here to read it, then fix the encoding step in your code.
More tools for your workflowRelated Tools

Featured on

Toolyconvert is listed on these product directories and launch platforms.