JavaScript String Escaper
Produce single, double or template JavaScript literals with protected interpolation, or decode supported literal escapes without eval.
javascript-string-escaperLOCAL WORKSPACE
Enabling local controls…
Result
Choose settings and run to produce a result. Unedited input is kept when an error occurs.
How to use this tool
Paste local text, choose the explicit operation and run. Copy or download the complete result. No input is executed, opened or fetched.
When not to use it
At most100000 UTF-16 units. Supported quoted JavaScript literals only; interpolation, octal and line continuations are rejected. Output is text; nothing is executed.