JSON string escape

Turn text with quotes, backslashes and new lines into a safe JSON string literal, or unescape a JSON string back to text.

How it works

Turn text with quotes, backslashes and new lines into a safe JSON string literal, or unescape a JSON string back to text.

Tool inputs stay in your browser. Results are general-purpose estimates or transformations. Check important results before relying on them.

Report a problem with this tool