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.
How it works
Paste a value, open a local file or begin with the working sample.
The transformation executes in your browser, not on our servers.
Check the output, then copy or download it for your next task.
Important limitations
Escaping requirements differ between JSON, JavaScript, shell commands, URLs and programming languages.
Do not assume escaped text is safe for HTML, SQL or another unrelated context.
Common questions
No. Your input is processed by code running in your browser and is not sent to an application server.
Yes. The tool is free, requires no account and can be used directly in the browser.
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.