Toolora

String Escape / Unescape

Escape and unescape JavaScript strings with configurable quotes and Unicode options.

The String Escape and Unescape tool converts text into JavaScript string literals and back. Choose single or double quotes and optionally escape non-ASCII characters as Unicode code points.
Mode

How to use

  1. Pick Escape or Unescape mode.
  2. Select quote style and Unicode options when escaping.
  3. Paste text and copy the converted output.

Frequently asked questions

Which escape sequences are supported?

Common sequences such as newline, tab, quote, backslash, hex escapes and Unicode escapes are supported.

Does unescape handle quoted strings?

Yes, surrounding single or double quotes are removed before decoding.

Is the data sent to a server?

No, all conversion happens locally in the browser.

Rate this tool

Your rating