JavaScript String Escaper

Escape or unescape JavaScript string literals with JSON-safe quoting — instant and private.

100% In-Browser & Private — your data never leaves this device
Loading tool...

How to use the JS String Escaper

  1. Paste text or a quoted JavaScript string.
  2. Choose Escape or Unescape.
  3. Copy the result for code or config files.

Related tools

More private, in-browser utilities you might need next.

Looking for more? Browse all developer tools · All tools