String Escaper / Unescaper — free online
You paste a piece of text into some code and it breaks. A quote, a backslash, a line break — and suddenly your JSON won't parse or your query throws an error. Fixing those by hand is slow and easy to get wrong. We added a free tool that does it for you — String Escaper / Unescaper — right in your browser.
What it does
It escapes or unescapes text for the format you need: JSON, JavaScript, HTML, SQL single-quote, CSV, Regex, Shell or XML. Paste your text, pick the format, and it turns special characters into the safe version — or turns them back if you already have an escaped string and want the plain text again.
Nothing leaves your device
The tool runs entirely in your browser. Your text is never uploaded to a server and nothing is saved. When you close the page, it's gone — so you can safely paste code, snippets, or anything private.
How to use it
- Open String Escaper / Unescaper and paste your text into the box.
- Choose the format (JSON, HTML, SQL and so on) and whether you want to escape or unescape.
- Copy the result and drop it straight into your code.
It's free with no limit. There are more small tools on the Apps page.