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
- Paste the text to escape or an already-escaped string
- Choose "Escape" or "Unescape"
- 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
JSON Formatter & ValidatorFree online JSON formatter and validator with inline error hints, collapsible tree view and in-browser processing.JSON MinifierFree online JSON minifier: compress JSON to one line, see live size savings, and validate syntax — processed locally.JSON Key SorterFree online JSON key sorter: recursively order object keys alphabetically so semantically identical JSON diffs cleanly.JSON Diff & CompareFree online JSON compare tool: ignores key order, listing added, removed and changed fields by path — all local.JSON to TypeScriptFree online JSON to TypeScript converter: infer interfaces from JSON — nested types, union arrays, optional nulls.JSON to CSV ConverterFree online JSON to CSV converter with RFC4180 escaping, union-field headers, CSV-to-JSON reverse and .csv download.
Last updated 2026-09-04