How to use JSON Escape
- Paste or type the text you want to escape.
- Adjust the options if you need to.
- Copy the escaped result.
About JSON Escape
To put arbitrary text inside a JSON string, you have to escape the double quote, the backslash and all control characters. A line break becomes \n, a tab \t, and anything else below U+0020 becomes \uXXXX. Forget one of them and the whole document is invalid.
This tool turns any text, multi-line or not, into the content of a JSON string. Paste the result between double quotes and you have a valid JSON value.
What gets escaped
Double quote becomes \", backslash \\, line break \n, carriage return \r, tab \t, backspace \b, form feed \f; other control characters become \u00XX.