Local · Private · Free

String Escaper

Escape and unescape strings for JSON, JavaScript, HTML, URL, Base64, SQL, CSV, regex and unicode — all on your device, in both directions.

🔒 Your text never leaves your browser. Nothing is uploaded.


What each mode escapes

ModeEscapesExample
JSON" \ and control chars (\n, \t, …); non-ASCII optionalHe said "hi" → He said \"hi\"
JavaScriptquote char, \, newlines; template mode also ` and ${it's → it\'s
HTML& < >, optionally " ' and non-ASCIIa<b → a&lt;b
URLreserved & unsafe chars → percent-encodinga b → a%20b
Base64everything → A–Z a–z 0–9 + / (UTF-8 safe)hi → aGk=
SQLsingle quote doubled (''); MySQL mode uses backslashesit's → it''s
CSVfield quoted if it holds delimiter / quote / newline; " doubleda,b → "a,b"
Regex. * + ? ^ $ ( ) [ ] { } | \ optionally - /1+1 → 1\+1
Unicodechars → \uXXXX or \u{…} escapesé → é

About String Escaper

String Escaper is a free, private text & code tool that runs entirely in your web browser. Escape & unescape strings for JSON, JS, HTML, URL, SQL, CSV, regex & unicode. Because everything happens locally on your device, your files and data are never uploaded to a server, there is no sign-up or installation required, and it keeps working offline. It is handy for escape, unescape, string escape, json escape. Like every HeroTool by Digital Heroes, String Escaper is 100% free with no limits.

How to use String Escaper

  1. Open String Escaper — it runs entirely in your browser, with no signup.
  2. Paste or type your text or code into the editor.
  3. Adjust the options to match exactly what you need.
  4. Copy or download your result — it is free, and your data stays on your device.

Frequently asked questions

Is String Escaper free?

Yes — String Escaper is completely free for everyone. No sign-up, no account and no usage limits.

Is it private? Are my files uploaded anywhere?

No. String Escaper runs entirely in your browser on your own device, so your data never leaves your computer and nothing is uploaded to a server.

Does it work offline?

Yes. HeroTools is a Progressive Web App — once the page has loaded it keeps working offline, and you can install it as an app from your browser.

Do I need to install anything or create an account?

No. Just open the page and start using it. Installing it as an app is optional and only adds offline convenience.

What does String Escaper do?

Escape & unescape strings for JSON, JS, HTML, URL, SQL, CSV, regex & unicode.