Escape and unescape strings for JSON, JavaScript, HTML, URL, CSV, SQL, RegExp, shell and Unicode.
Paste or type your input here, String Escape / Unescape is loading…
String Escape / Unescape is a free, browser-based tool built for one job: escape and unescape strings for JSON, JavaScript, HTML, URL, CSV, SQL, RegExp, shell and Unicode. It is part of ToolsMonk's developer tools collection, so you can finish the work without downloading software, creating an account, or jumping between multiple websites.
Typical jobs it handles include safely embedding a string inside json, a sql query or a shell command, un-escaping a json string value copied from logs, and escaping user input to build a literal regular expression. The same page works on desktop, tablet, and mobile, so it is equally quick for a single urgent task and for work you repeat every week.
It is built for getting a real result on the first visit: no learning curve, no account, and the wider ToolsMonk toolbox close at hand.
| Price | Free, no signup, no paywall, no watermark |
|---|---|
| Works on | Any modern browser: desktop, tablet, and mobile |
| Processing | In your browser, files never leave your device |
| Account required | None |
| Category | Developer Tools |
Pick a target format and a direction (escape or unescape)
Paste your string
Read the escaped/unescaped result live
Copy it, or pipe it back to reverse the operation
Escape and unescape for many targets: JSON, JavaScript, HTML, URL, CSV, SQL, RegExp, shell and Unicode
Two-way in one click, flip between escape and unescape and pipe the result back as input
Correct rules per target (e.g. CSV quote-doubling, SQL single-quote doubling, RegExp metacharacter escaping)
Unicode mode handles \uXXXX, \xXX and \u{...} escapes
Everything runs locally in your browser
Safely embedding a string inside JSON, a SQL query or a shell command
Un-escaping a JSON string value copied from logs
Escaping user input to build a literal regular expression
Preparing a value for a CSV cell or an HTML attribute
String Escape / Unescape was built so that anyone, professional or first-time visitor, gets what the page promises (escape and unescape strings for JSON, JavaScript, HTML, URL, CSV, SQL, RegExp, shell and Unicode) in seconds. Results are instant and accurate, and nothing needs to be installed or signed up for along the way.
All processing runs locally in your browser, so your files and data never leave your device. Like every tool in the Developer Tools collection, it works across all modern browsers on desktop, tablet, and mobile: same features, same results, on every device.
String Escape and Unescape converts text into a form that is safe to place inside a particular language or format, and back again. It supports JSON, JavaScript, HTML, URL, CSV, SQL, regular expressions, shell commands and Unicode escapes, each with its own correct rules.
Those rules genuinely differ. CSV doubles quote characters, SQL doubles single quotes, a regular expression needs its metacharacters escaped, and HTML replaces characters like < and & with entities. Using the wrong rule is how a value breaks a query or an import, so pick the target first. Unicode mode understands \uXXXX, \xXX and \u{...} forms.
Switch between escape and unescape in one click, and use the result as new input to round-trip a value: escape it, unescape it, and confirm you got back exactly what you started with.
For SQL, escaping a string is a convenience for one-off queries; real application code should still use parameterised queries. Everything runs locally in your browser, which matters when the string is a password, a token or a piece of customer data.
Use the pipe/‘use as input’ action to round-trip: escape, then unescape to verify.
For SQL, this escapes string contents, still prefer parameterised queries in real code.
Common questions about this tool, its workflow, and what to expect before you use it.
No ratings yet. Be the first to say how String Escape / Unescape worked for you.
Reviews appear here once our team has read them, so everything you see is from someone who signed in and used the tool.
Get notified about new tools, features, and tips. No spam, unsubscribe anytime.
Parse a URL or query string into editable params and build it back: arrays, encoding and JSON output.
Try itInfer a JSON Schema (draft-07) from a JSON sample: types, required, formats and enums.
Try itSemantic, order-independent diff of two JSON documents: added, removed and changed values by path.
Try itGenerate realistic fake JSON, CSV or SQL test data from a simple field schema: names, emails, dates, UUIDs and more.
Try itBuild cURL commands from a request and convert them to fetch or axios code, and parse cURL back.
Try itBeautify, minify, sort, repair and validate JSON with precise error location, a collapsible tree view and path queries.
Try itUTF-8-safe Base64 encode & decode with a URL-safe variant, line-wrapping and file-to-Base64 (data URI).
Try itEncode and decode URLs and components, with a live breakdown of query parameters.
Try itWriting a roundup or tutorial? Embed the live String Escape / Unescape so readers use it right on your page, or drop in a ready-made card that links to it. Free to use, always.
Preview
Escape and unescape strings for JSON, JavaScript, HTML, URL, CSV, SQL, RegExp, shell and Unicode.
Use String Escape / Unescape free →Live tool (iframe)
Readers use the real, working tool right on your page, with a small credit line underneath.
Embed card (HTML)