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
Please enter some input.
How to use
- Pick Escape or Unescape mode.
- Select quote style and Unicode options when escaping.
- 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.
Related tools
JSON Formatter
Format, validate and minify JSON in one place.
XML Formatter
Pretty-print and indent XML documents.
YAML Formatter
Format YAML and convert between YAML and JSON in both directions.
CSV to JSON
Convert CSV tables into JSON data.
JWT
Encode, decode and verify JSON Web Tokens locally.
Hash Generator
Generate SHA-1, SHA-256, SHA-384 and SHA-512 hashes.
Rate this tool
Your rating