String Escape Unescape
Add the backslashes code needs to a piece of text, or remove them again.
1 Paste your text and pick the options
2 Your answer
Your answer shows here as you type.
How to use the String Escape Unescape
- Paste your text.
- Pick add or remove backslashes.
- Copy the result.
Frequently asked questions
Why does a quote get a backslash?
In code and data files, a quote inside a string is written as a backslash then a quote, so the quote does not end the string early.
What is the difference between escape and unescape?
Escape adds the backslashes that code needs. Unescape removes them again.
Wrote something with AI? Slop Monkey rewrites it so it sounds like you, and keeps your facts.