← 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.

How it works

Escape JSON, without the upload.

1

Add your data

Paste a value, open a local file or begin with the working sample.

2

Run the tool

The transformation executes in your browser, not on our servers.

3

Review the result

Check the output, then copy or download it for your next task.

Important limitations

What to check before using the result

Review required

Escaping requirements differ between JSON, JavaScript, shell commands, URLs and programming languages.

Review required

Do not assume escaped text is safe for HTML, SQL or another unrelated context.

Common questions

About Escape JSON

Does JSON Escape & Unescape upload my data?

No. Your input is processed by code running in your browser and is not sent to an application server.

Is Escape JSON free to use?

Yes. The tool is free, requires no account and can be used directly in the browser.

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.