— Unicode Escape/Unescape

Free Unicode Escape/Unescape Tool

Quick Tips

  • This tool runs entirely in your browser - your data stays private.
  • Press Ctrl+V (Cmd+V on Mac) to quickly paste text.
  • Use the Copy button to save your result to clipboard.
  • Bookmark this page for quick access!

Convert characters to Unicode escape sequences (\uXXXX) and back.

Your Recent Tools

Examples

Input
Hello δΈ–η•Œ
Output
Hello \u4E16\u754C
Input
\u0048\u0065\u006C\u006C\u006F
Output
Hello
Input
πŸ˜€
Output
\uD83D\uDE00
Input
CafΓ©
Output
Caf\u00E9

Why Use This Tool?

What problems does this solve?

Non-ASCII characters can cause issues in source code, configuration files, and data transmission. Unicode escapes ensure characters are represented safely in ASCII-compatible formats.

Common use cases:

  • Preparing strings with international characters for JSON
  • Including Unicode characters in JavaScript source code
  • Debugging character encoding issues by viewing code points
  • Creating portable text that survives encoding conversions
  • Working with legacy systems that require ASCII-only input

Who benefits from this tool?

JavaScript and web developers handling international text. Backend developers working with JSON APIs. Anyone debugging character encoding problems.

Privacy first: All conversion happens locally in your browser. Your text never leaves your device.

Frequently Asked Questions

A Unicode escape sequence represents a character by its hexadecimal code point. The format \uXXXX is common in JavaScript and JSON, where XXXX is the 4-digit hex code (e.g., \u0041 for "A").

Emoji and characters above U+FFFF require surrogate pairs in UTF-16 encoding. JavaScript strings use UTF-16 internally, so emoji like πŸ˜€ become two escapes: \uD83D\uDE00.

Use escapes when your source file encoding might not support certain characters, when clarity is important for code review, or when working with systems that may not handle non-ASCII bytes correctly.

The \uXXXX format is used by JavaScript, JSON, Java, and C#. Python uses \uXXXX for BMP and \UXXXXXXXX for supplementary characters. Other languages may have different syntax.

Yes, ASCII characters (codes 0-127) rarely need escaping. This tool can optionally escape all characters or only non-ASCII ones depending on your needs.

Paste the character into the escape tool to see its \uXXXX code. Remove the \u prefix and you have the hexadecimal code point. Add U+ prefix for standard notation.