JSON Escape / Unescape
Escape special characters so JSON can be embedded in code, or unescape it back to readable text.
Runs entirely in your browser — your data never leaves your device.
Loading tool…
How to use this tool
- 1Paste your JSON or string into the editor.
- 2Choose Escape or Unescape mode.
- 3Copy the converted output.
Frequently asked questions
- When do I need to escape JSON?
- When embedding a JSON string inside another JSON document, a database column, or a programming-language string literal, special characters like quotes and newlines must be escaped.
- Does it handle unicode characters?
- Yes. Escaping preserves unicode and can optionally output \u escape sequences; unescaping restores the original characters.
- Is my data uploaded to a server?
- No. Every tool on JSONPost runs entirely in your browser using JavaScript. Your JSON never leaves your device, so it is safe to use with private or sensitive data.
Related tools
JSON String Converter (Stringify / Parse)
Convert JSON to an escaped string literal for embedding in code, or parse a stringified JSON back to an object.
JSON to Base64 Encoder
Encode JSON into a Base64 string for safe transmission in URLs, headers, and data URIs.
JSON URL Encoder / Decoder
Encode JSON for safe use in URLs or decode URL-encoded JSON back into readable form.