Embed JSON in a string
Prepare a JSON value for examples, logs or systems that expect a string containing JSON.
Format tool
Escape JSON for strings and logs or unescape an encoded JSON string locally in your browser.
Your input and result are not sent to JSON Hearth or stored on a server.
When to use it
Escaping represents quotation marks, line breaks and control characters safely inside another string. Unescaping recovers the embedded text for inspection.
Prepare a JSON value for examples, logs or systems that expect a string containing JSON.
Decode backslashes and quoted content from log lines or nested payloads.
See whether an integration serialized JSON more than once.
Important limitations
Common questions
No. They use different rules and solve different embedding problems.
The JSON may itself be stored inside another escaped string, producing an additional encoding layer.