String Escape / Unescape
Developer ToolsEscape & unescape JSON, JS and regex text
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
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.

