Output will appear here
Output will appear here
Escape and unescape JSON strings online with our free JSON escape tool. Convert JSON to an embeddable escaped string for APIs, config files, and code, or unescape stringified JSON back to a readable structure. Handles quotes, backslashes, newlines, Unicode sequences, and multi-level escaping.
Try Convert All - paste JSON once, see TypeScript, Go, YAML, and 15 more formats instantly.
To escape: paste a normal JSON object. To unescape: paste a stringified JSON with backslashes and escape sequences.
Switch modes with the toggle button. Escape mode wraps your JSON in quotes with proper character escaping. Unescape mode converts an escaped string back to readable JSON.
Click Copy to grab the escaped or unescaped output for use in code, API calls, environment variables, or configuration files.
You need to escape JSON when embedding it inside a string value, such as a JSON field within another JSON document, a shell environment variable, or a string column in a database. Escaping adds backslashes before quotes and special characters.
Escaping converts special characters to their backslash-prefixed equivalents. Stringify (JSON.stringify) additionally wraps the entire JSON in double quotes, producing a single string value. Both operations are supported by this tool.
Yes. If your JSON has been escaped multiple times (common in log files and message queues), you can unescape it in steps. Run the unescape operation repeatedly until you see clean, readable JSON.
Yes. After unescaping, the tool checks whether the result is valid JSON. If the unescaped output is not valid JSON, you will see an error message indicating which part of the string could not be parsed.