WebTool

JSON Escape / Unescape

Free online JSON escape and unescape tool for quotes, newlines and backslashes — fix nested escaping locally.

Privacy: all processing happens locally in your browser. Your input never leaves your device.

What is JSON Escape / Unescape?

When you embed JSON as a string inside another JSON document or a code string literal, its quotes, backslashes and newlines must be escaped — and doing it by hand is error-prone. This tool converts both ways: escaping turns raw text into content that can be safely embedded in a string literal, while unescaping restores multiply-escaped text. It is especially handy for nested JSON strings returned by APIs. All processing is local.

How to Use

  1. Paste the text to escape or an already-escaped string
  2. Choose "Escape" or "Unescape"
  3. Copy the result

FAQ

What is double-escaped JSON?
When the value of a JSON string is itself a piece of JSON, the inner quotes are escaped to \", and nesting one more level turns them into \\\" — layer upon layer. The unescape tool restores them level by level.
What if unescaping reports an error?
Make sure the input is a valid escaped string. If the text is wrapped in leading and trailing double quotes, the tool parses it as a string literal automatically.

Related Tools

Last updated 2026-09-04