FreeDev Tools

Unicode Encoder / Decoder

Encode text to Unicode escape sequences (\uXXXX) and decode back

Unicode escape sequences allow non-ASCII characters to be safely embedded in source code, JSON, and configuration files that require ASCII-safe encoding. The \uXXXX format supports the Basic Multilingual Plane (codepoints U+0000 to U+FFFF), while \UXXXXXXXX handles supplementary characters including emoji. JavaScript and Java use \uXXXX, CSS uses \XXXX, and Python supports both \uXXXX and \UXXXXXXXX for full Unicode coverage.

Frequently Asked Questions

It outputs standard JavaScript/JSON Unicode escape sequences like \u0048\u0065\u006C\u006C\u006F for "Hello". For code points above U+FFFF, \uXXXXXX is used.