String Escape / Unescape
Developer ToolsEscape & unescape JSON, JS and regex text
Embed this tool on your websiteFree
- Choose how tall the frame should be.
- Press Copy code.
- Paste it into your page, blog, WordPress or Notion HTML block.
The tool runs inside your visitor's browser, nothing is uploaded, and a small "Powered by ToolCloak" line stays under it. The second line (script) is optional: it makes the frame fit the tool's height.
Similar tools you may like
History
All history →String Escape / Unescape — at a glance
Safely put text inside JSON, JavaScript or regex — or turn escaped text back into normal text.
How to use it — step by step
Any text with quotes, backslashes, tabs or new lines.
Paste your input
Paste or type your content into the big input box.
Choose options
Pick the mode and options that fit what you need.
Convert Now
Press the button. The result is created instantly on your device.
Copy the result
Check the output and press Copy to use it anywhere.
Pro tips
Small things that make the result better.
Quick facts
Frequently Asked Questions
What is String Escape / Unescape?+
Escape special characters for JSON, JavaScript strings and regular expressions, or unescape them back to plain text. Handles quotes, backslashes, newlines, tabs and Unicode.
How do I use String Escape / Unescape?+
Open String Escape / Unescape on this page, then: 1. Paste your input 2. Choose options 3. Convert Now 4. Copy the result. Everything runs in your browser on a phone or computer.
Is String Escape / Unescape free to use?+
Yes. String Escape / Unescape on Toolcloak is free, needs no signup and has no hidden limits.
Why do I need to escape text?+
Characters like quotes and backslashes have special meaning in code, so they must be written with a backslash.
What does unescape do?+
It converts sequences like \n back into real new lines and \" back into quotes.
Does it add surrounding quotes?+
No — you get just the inside of the string, so you can place it in your own quotes.
Is my data safe?+
Yes. Everything runs inside your own browser. Your text, files and images are never uploaded to any server.
Also searched as: string escape · unescape string online · json escape · javascript escape string · escape special characters · string escape / unescape

