JSON Unescape
Unescape JSON-encoded strings back to readable text — turns \n into newlines, \" into quotes, and \uXXXX into Unicode characters. Perfect for decoding log payloads, API errors, and stack traces.
Why Use JSON Unescape?
Logs and error-reporting dashboards often dump full JSON payloads as escaped strings — a wall of `\n`, `\"`, and `\\` that obscures the real message. Un-escaping it by hand with find-replace is slow and error-prone. This tool takes the escaped string and rebuilds the original text in one paste so you can actually *read* the stack trace, SQL query, or HTML fragment hiding in there. It's also useful for extracting embedded data URIs, multiline scripts, and other "strings-within-strings" that appear in API responses from Slack, Sentry, GitHub Actions, and CI systems.
How to Use JSON Unescape
- Paste your escaped JSON string into the input panel on the left.
- The tool instantly converts all escape sequences — \n, \t, \", \\, and Unicode escapes — back to their original characters in real time.
- Copy the unescaped output from the right panel, or click the Swap button to switch to JSON Escape mode.
- If your input is a quoted JSON string value, the tool strips the outer double quotes for you — unquoted input also works.
- Use this when reading log payloads, API errors, or stack traces where the original message was JSON-encoded and is now unreadable.
Worked Examples
Un-escape a stack trace from a log
TypeError: Cannot read property 'name' of undefined\n at Object.<anonymous> (/app/index.js:42:10)
TypeError: Cannot read property 'name' of undefined\n at Object.<anonymous> (/app/index.js:42:10)
Rendered newlines turn a one-line blob into a readable multi-line trace.
Pull an escaped HTML snippet out of a JSON field
<div class=\"hero\">\n <h1>Hi</h1>\n</div>
<div class="hero">\n <h1>Hi</h1>\n</div>
Quotes around CSS classes become usable; paste directly into an HTML file.
Decode Unicode escapes from an API response
caf\u00e9 \u2013 open today
café – open today
`\u00e9` → é, `\u2013` → en dash. All Unicode BMP escapes are reversed.
About JSON Unescape
JSON Unescape is a free online tool that converts JSON escape sequences back into their original, human-readable characters. When you receive JSON data from APIs, log files, or databases, strings often contain escape sequences like \n for newlines, \" for quotes, and \\ for backslashes. This tool reverses all standard JSON escape sequences defined in RFC 8259, making the text readable again. It also handles quoted JSON string values — if your input is wrapped in double quotes, the tool will strip the outer quotes and unescape the contents. Perfect for debugging API responses, reading log output, cleaning up JSON data, and removing escape characters from JSON strings. All processing happens 100% client-side in your browser with zero data sent to any server.
Troubleshooting & Common Issues
Output still has `\n` showing as literal characters
You might have a double-escaped source (common when a JSON string was itself put inside another JSON field). Run un-escape twice. If the second pass still shows `\n`, the original source wasn't JSON-escaped — it had a literal backslash-n pair.
Surrounding quotes appear in the output
If your input is a quoted JSON string (`"hello\nworld"`), the tool strips the outer quotes automatically. If they persist, the input includes escaped quotes *inside* real quotes — strip the outer pair manually before pasting.
Invalid escape sequence error
JSON only recognizes `\"`, `\\`, `\/`, `\n`, `\t`, `\r`, `\b`, `\f`, and `\uXXXX`. Escapes from other languages like `\x41` (PHP/Python) or `\a` (C) aren't valid JSON. Replace them with the JSON equivalent before un-escaping.
Frequently Asked Questions
What does JSON unescape do?
JSON unescape reverses the escaping process by converting escape sequences back to their original characters. For example, \n becomes an actual newline, \" becomes a double quote, \\ becomes a single backslash, and \t becomes a tab character. It makes escaped JSON strings human-readable again.
How do I unescape a JSON string?
Paste your escaped JSON string into this tool and the unescaped output appears instantly. Programmatically, you can use JSON.parse() in JavaScript (wrapping the string in quotes first), json.loads() in Python, or equivalent functions in other languages.
How do I remove escape characters from JSON?
Use this JSON unescape tool to instantly remove all escape characters from a JSON string. Simply paste the escaped text and get clean, readable output. The tool handles all standard JSON escape sequences including \n, \t, \", \\, \r, \b, \f, and \uXXXX Unicode escapes.
What is the difference between JSON unescape and JSON parse?
JSON unescape specifically reverses escape sequences in a string value, while JSON parse (JSON.parse) converts an entire JSON text into a JavaScript object or value. JSON.parse will also unescape strings as part of the parsing process, but this tool focuses on string-level unescaping without full JSON parsing.
Can I unescape JSON with Unicode characters?
Yes. This tool fully supports Unicode escape sequences in the format \uXXXX (e.g., \u0041 becomes A, \u00e9 becomes e with acute accent). It also handles surrogate pairs for characters outside the Basic Multilingual Plane.
Is my data safe when using this tool?
Yes. This JSON unescape tool processes everything locally in your browser. No data is ever sent to a server, ensuring complete privacy.
Related Tools
JSON Escape
Escape quotes, backslashes, newlines, tabs, and Unicode control characters so raw text becomes a valid JSON string value — perfect for embedding SQL queries, HTML, or logs inside JSON payloads.
JSON Formatter
Format, beautify, and validate JSON with syntax highlighting, a collapsible tree view, auto-fix for trailing commas and single quotes, search, and JSON-to-XML/CSV/YAML conversion.
JSON Minifier
Minify and compress JSON by removing all whitespace, newlines, and indentation. Reduce JSON file size instantly with real-time compression stats.
JSON Compare
Compare two JSON objects side by side and find every difference. Visual tree diff and text diff views with additions, deletions, and modifications highlighted.
Was this tool helpful?