Unicode Escape Converter

Convert text into Unicode escape sequences, or decode escapes back into readable text. Choose the style your code needs: \u20B9 for JavaScript, JSON and Java, \u{1F600} for modern JavaScript, \U0001f600 for Python, ₹ for HTML or \20B9 for CSS. Decoding understands all of these at once, so you can paste a mixed log line and read it. For Kruti Dev to Unicode font conversion, use the [Kruti Dev converter](/tools/kruti-dev-to-unicode) instead.

Encoding
Direction
Text
Escaped text

Processing runs in your browser. What you type never leaves this device.

Features

  • Escape only non-ASCII, or every character

  • JavaScript, ES6, Python, HTML entity and CSS styles

  • Correct surrogate pairs for emoji in \uXXXX style

  • Decodes \u, \u{}, \U, \x, &#x; and &#; together

  • Also decodes \n, \t and escaped quotes

  • Runs in your browser

When escapes help

Source files that must stay ASCII

Keep ₹ and Hindi labels in Java .properties files or old build tools by writing them as \u escapes.

Reading API responses and logs

Some JSON encoders write every non-English letter as \u0928. Paste it here to read the text.

CSS content and icons

Use the CSS style for content: "\20B9" in a stylesheet.

Unicode escapes explained

One character, several spellings

  • JavaScript / JSON / Java: \u20B9. Characters beyond U+FFFF, like most emoji, need two escapes (a surrogate pair): \uD83D\uDE00.
  • Modern JavaScript: \u{1F600}, one escape for any character.
  • Python: \u20b9, and \U0001f600 (eight digits) beyond U+FFFF.
  • HTML: ₹ or ₹. CSS: \20B9 followed by a space.

Not the same as Unicode fonts

Searches for "Unicode converter" in India often mean converting Kruti Dev or Chanakya typing into Unicode Hindi. That is a font mapping, not an escape; the Kruti Dev to Unicode converter does it.

Related tools

Need the U+ number of each character? Use the code point converter or the Unicode character inspector. To escape text for a JSON string, use JSON escape.

Unicode Escape Converter - FAQ