← All JSON tools

Format tool

JSON Escape & Unescape

Escape JSON for strings and logs or unescape an encoded JSON string locally in your browser.

✓ Free to use✓ No signup✓ Runs locally
55 bytes · local only
Waiting
Processed entirely in this tab

Your input and result are not sent to JSON Hearth or stored on a server.

When to use it

What Escape JSON helps you do

Escaping represents quotation marks, line breaks and control characters safely inside another string. Unescaping recovers the embedded text for inspection.

1

Embed JSON in a string

Prepare a JSON value for examples, logs or systems that expect a string containing JSON.

2

Read escaped log output

Decode backslashes and quoted content from log lines or nested payloads.

3

Debug double encoding

See whether an integration serialized JSON more than once.

Important limitations

What to check before using the result

Common questions

About Escape JSON

Is JSON escaping the same as URL encoding?

No. They use different rules and solve different embedding problems.

Why does my text contain double backslashes?

The JSON may itself be stored inside another escaped string, producing an additional encoding layer.