Peel one layer at a time
Some logs escape JSON twice. Unescape once, see if it is still a literal, unescape again if needed, then send it to Format.
JSON Tools for AI Developers · Runs locally
Natural language generation · Schema · Zod · OpenAPI · Function Calling · MCP · 30+ tools
When you embed JSON in another string, a log template, or a code literal, quotes and newlines need to be escaped first.
Escape handles common control characters. Unescape turns \n and \" back into real characters so you can format again.
Good for debugging a wrapped response or pulling nested JSON out of a config. Don't use it to change business meaning.
Everything stays local. Strings that contain tokens can be pasted as-is.
Some logs escape JSON twice. Unescape once, see if it is still a literal, unescape again if needed, then send it to Format.
Escape handles quotes, backslashes, and newlines. Turning CJK into \uXXXX belongs on the Unicode tool. Don't mix the buttons.
Ordinary CJK stays as-is. Use the Unicode tool when you need \uXXXX.
You may be missing a backslash layer, or the text is not a valid escape sequence. Check the original.
Unescape until you have valid JSON, then format or validate.
No.
Yes when you escape. Unescape turns them back into real newlines.
It does not decode " and similar entities. Decode those elsewhere first.
Minify strips whitespace but stays JSON. Escape turns text into something you can embed in a string.
Backslashes in Windows paths are treated as escapes. Confirm whether you want a path or JSON before you run it.