String Escape / Unescape for JSON, JS, HTML, SQL and Regex
Escape or unescape strings for JSON, JavaScript, HTML, XML, CSV, SQL and regex, free in your browser.
- Runs on your device
- Free, no account
- Works offline
// Overview //
About String Escape / Unescape for JSON, JS, HTML, SQL and Regex
This tool escapes or unescapes strings for JSON, JavaScript, HTML, XML, CSV, SQL and regular expressions. It is built for developers who need to safely embed text in code, configuration files, queries or markup, and who want a quick answer without installing a library or writing a script.
Everything runs entirely in your browser. Paste text or pick a local file, choose the format and direction, and the converted result appears immediately for you to copy or download. Because processing happens on your device, the tool keeps working even after you go offline, and your text is never uploaded anywhere.
// Getting started //
How it works
-
Step 1

Paste text or a file
Paste your string into the input area or pick a local text file from your device.
-
Step 2

Choose format and direction
Select the target format such as JSON, JavaScript, HTML, XML, CSV, SQL or regex, and choose whether to escape or unescape.
-
Step 3

Copy or download result
Copy the converted string to your clipboard or download it as a file.
// Capabilities //
Built for the details
Multiple formats
Escape and unescape strings for JSON, JavaScript, HTML, XML, CSV, SQL and regular expressions in one place.
Runs in browser
All conversion happens locally on your device, so files and text never leave it.
Works offline
After the page has loaded, the tool continues to work without an internet connection.
Free and unlimited
Use the tool as often as you like with no account, no limits and no cost.
// Use cases //
Where this tool fits
Prepare JSON values
Escape quotes, backslashes and control characters before placing text inside a JSON string.
Embed code in HTML
Escape angle brackets and ampersands so code samples display correctly in web pages.
Build SQL queries
Escape quotes in user-supplied text before inserting it into a SQL statement.
Debug regex patterns
Escape special characters in a pattern, or unescape a pattern back to plain text, while troubleshooting.
// Good to know //
Frequently asked questions
Where is my text processed?
All escaping and unescaping runs entirely in your browser on your own device. Your text and files are never uploaded to a server.
Is this string escape tool free?
Yes, it is free with unlimited use and no account required.
Which formats can I escape and unescape?
The tool supports JSON, JavaScript, HTML, XML, CSV, SQL and regular expressions, in both directions.
What is the difference between escaping and unescaping?
Escaping converts special characters into a safe representation for the chosen format, for example turning a quote into \" for JSON. Unescaping does the reverse and turns those sequences back into the original characters.
Can I use the tool offline?
Yes. Once the page has loaded, the tool works without an internet connection because all processing happens locally.
A simpler way to get work done
Immediate results. Work directly on your device, with no upload or processing queue.
- Free to use — No credits or account required. Use the tool whenever you need it.
- Ready when you are — Once loaded, the tool keeps working without an internet connection.
- Your files stay on your device
// Keep going //
Related tools
Other tools people use alongside String Escape / Unescape (JSON, JS, HTML, SQL, Regex).