Runs entirely in your browser.
What is JSON Escape / Unescape?
This tool escapes plain text into JSON-safe strings and unescapes escaped sequences back to readable text. It also wraps arbitrary input as a valid JSON value when you need a quoted payload for APIs or test fixtures.
How to use it
Choose Escape string to turn newlines, quotes, and tabs into JSON escape sequences. Choose Unescape string to reverse that process. Choose Escape JSON value to produce a full JSON-encoded value from raw input.
Use cases
Build request bodies for Postman or cURL without manual escaping. Decode escaped log lines from mobile crash reports. Prepare strings for JSON fixtures in automated tests. Sanity-check payloads before pasting into the JSON Formatter.
Related tools
After escaping, validate structure with the JSON Formatter. For full payload work, use the YAML/JSON/XML Converter or JSON Diff when comparing versions.