Back to Tools

Unicode Escape

Processed Locally

Convert characters to Unicode escape sequences (\uXXXX) for use in code

Options

Frequently Asked Questions

Unicode escape notation (\uXXXX) is a way to represent Unicode characters using their hexadecimal code point. For example, the heart symbol ♥ is represented as \u2665. This is useful when you need to include special characters in source code that only supports ASCII.
For most cases, escaping only non-ASCII characters (default) is sufficient and keeps your output readable. Escape all characters only when you need maximum compatibility or when working with systems that have strict ASCII-only requirements.
JavaScript, JSON, Python, and Java all use the \uXXXX format for 4-digit hex codes. The main difference is in how they handle special characters and whether they support extended formats. Choose the format that matches your target programming language.
Yes! All escaping happens locally in your browser. Your text never leaves your device or gets sent to any server.