Escapes characters into the notation your language expects, and turns escape sequences back into readable text. Formats:

  • \uXXXX for JavaScript, JSON and Java. Characters outside the Basic Multilingual Plane become a surrogate pair, e.g. ๐Ÿ˜€ โ†’ ๐Ÿ˜€.
  • \u{1F600} for modern JavaScript, Rust and similar.
  • \uXXXX / \U0001F600 for Python and C.
  • 😀 and 😀 HTML numeric references.
  • \1F600 for CSS.
  • \xF0\x9F\x98\x80 as raw UTF-8 bytes.

Only escape non-ASCII keeps ordinary printable ASCII readable and escapes everything else, which is usually what you want for source files. Unescape understands all of the formats above at once, plus \n, \t, \\ and quote escapes, so you can paste mixed input. Runs locally in your browser.