DevToolBox

Unicode Escape Converter

Convert text to Unicode escape sequences and vice versa

About Unicode Escape Sequences

Unicode escape sequences are used to represent characters in source code using only ASCII characters. Different programming languages use different formats.

Escape Formats:

  • \uXXXX - JavaScript, JSON (BMP only)
  • \UXXXXXXXX - Python, Ruby (full Unicode)
  • \xXX - C, C++ (single byte)
  • &#XXXXX; - HTML entities
  • \XXXXXX - CSS escapes

Use Cases:

  • Embedding Unicode in ASCII-only environments
  • Avoiding encoding issues in source files
  • Representing special characters in strings
  • Cross-platform text processing
  • Security and obfuscation