Escape and Unescape a JSON String Online
Escape or unescape a string to embed it in JSON, right in your browser.
Escaping includes the surrounding quotes (valid JSON string).
🔒 100% client-side — no data sent
Escape or unescape a string to insert it cleanly into JSON, handling quotes, backslashes and line breaks. Ideal for preparing payloads, logs or configuration strings. Everything is processed 100% in your browser, with no data sent.
What is it for?
- ▸ Insert text containing quotes into a JSON value
- ▸ Prepare an API payload without breaking the syntax
- ▸ Unescape a JSON string to read it clearly
- ▸ Clean logs or copied strings before integration
FAQ
What does escaping a string in JSON mean?
Escaping means prefixing certain special characters (quotes, backslash, line breaks) so they remain valid inside a JSON string without breaking its structure.
Which characters must be escaped in JSON?
Double quotes, the backslash and control characters such as newline, tab and carriage return must be escaped according to the JSON specification.
Can I do the reverse and unescape a string?
Yes, the tool works both ways: it escapes a raw string for JSON or unescapes a JSON string to recover the original readable text.