String Escape / Unescape
Escape text for JSON, JavaScript strings or regular expressions, or unescape it. Free, no sign-up, runs in your browser.
Loading tool…
About this tool
Turn quotes, backslashes and line breaks into escape sequences so text can be pasted inside code. Unescape reverses it.
How to use it
- Enter or paste your values in the fields above.
- The result updates as you type.
- Use the Copy button to copy the result.
Frequently asked questions
What does regex escape do?
It adds a backslash before characters with a special meaning in regular expressions, such as . * + ? ( ) [ ].
Let’s talk
Need a team to build it?
We build the software behind tools like this: web apps, APIs, SaaS products and AI features.