Free online tools

Unicode Escape Converter

Represent non-ASCII text using copyable escape notation for a source string or test fixture.

Enter your values

This tool processes your input in your browser.

Result

Choose the syntax for the string literal

JSON represents a supplementary character with two Unicode escapes for the surrogate pair. JavaScript can also use one braced Unicode code point escape.

Handle the surrounding string quotes yourself

The result is string content without an opening or closing quotation mark. Standard quote, backslash and control escapes are decoded by the tool.

Frequently asked questions

Does this evaluate JavaScript?

No. It converts literal escape sequences with a small parser. Other JavaScript syntax stays outside this converter.