Escape JSON Strings!

Input text to escape it for use inside a JSON string!
input
result
 

Escape JSON Strings!

Input text to escape it for use inside a JSON string!

Use Cases

- Put JSON inside JSON - Escape quotes, backslashes and line breaks when placing JSON or multi-line text as a string value in another JSON. - Unescape - Turn strings with \" or \n back into the original text. Surrounding quotes are optional.