String Escape / Unescape
PopularEscape 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…
About String Escape / Unescape
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.
| 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 |
Using String Escape / Unescape, Step by Step
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
String Escape / Unescape Features & Benefits
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
Common String Escape / Unescape Use Cases
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
Expert Tips for String Escape / Unescape
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.
Frequently Asked Questions About String Escape / Unescape
Common questions about this tool, its workflow, and what to expect before you use it.
Ratings and reviews
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.
Stay Updated
Get notified about new tools, features, and tips. No spam, unsubscribe anytime.
Guides & How-Tos
Related Tools You May Like
View all 36 toolsQuery String Parser
Parse a URL or query string into editable params and build it back: arrays, encoding and JSON output.
Open toolJSON Schema Generator
Infer a JSON Schema (draft-07) from a JSON sample: types, required, formats and enums.
Open toolJSON Diff
Semantic, order-independent diff of two JSON documents: added, removed and changed values by path.
Open toolMock Data Generator
Generate realistic fake JSON, CSV or SQL test data from a simple field schema: names, emails, dates, UUIDs and more.
Open toolcURL Command Builder
Build cURL commands from a request and convert them to fetch or axios code, and parse cURL back.
Open toolJSON Formatter
Beautify, minify, sort, repair and validate JSON with precise error location, a collapsible tree view and path queries.
Open toolBase64 Encoder/Decoder
UTF-8-safe Base64 encode & decode with a URL-safe variant, line-wrapping and file-to-Base64 (data URI).
Open toolURL Encoder/Decoder
Encode and decode URLs and components, with a live breakdown of query parameters.
Open toolFeature this tool on your site
Writing 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)