Unicode escape

Turns characters into escapes for JavaScript, ES2015, CSS, HTML, Python or U+ code points, and reads any mix of them back.

In
text
Out
escaped
Options
Input · text
Output · escaped

Waiting for input

Runs in this tab. The text is not sent anywhere.

Related

Questions

Why does an emoji become two \u escapes in JavaScript?

JavaScript strings are UTF-16: a character past U+FFFF is a surrogate pair. Choose ES2015 for the single \u{1F44B} form.

↑ ↓ move · Enter open · Esc close