PTPureToolkit
FormattingLocal-only

JSON Formatter and Escaped JSON Cleaner

Format, validate, minify, and unescape escaped JSON strings locally in your browser. Clean JSON copied from logs, APIs, databases, and message queues without uploading data.

This tool runs locally in your browser. Your input is not uploaded.

No uploadsNo server logsNo runtime APIsBrowser-only transforms
Options

JSON output

JSON output

{
  "name": "Tools Website",
  "private": true,
  "features": [
    "format",
    "validate",
    "minify"
  ],
  "nested": {
    "runs": "locally",
    "apis": 0
  }
}

Examples

Project metadata

A compact object with nested values and arrays.

{"name":"Tools Website","private":true,"features":["format","validate","minify"],"nested":{"runs":"locally","apis":0}}

API response

A small response body that is easier to inspect after formatting.

{"status":"ok","items":[{"id":1,"active":true},{"id":2,"active":false}]}

How it works

  1. The browser parses the input with native JSON.parse.
  2. Use Unescape JSON to safely decode escaped or stringified JSON copied from logs or APIs.
  3. Valid values are serialized with JSON.stringify for formatted or minified output.
  4. Parse errors are shown directly in the tool area without sending input anywhere.

Limitations

  • Comments and trailing commas are not valid JSON and are rejected.
  • The tool cannot repair every malformed JSON string and only accepts decoded output when parsing is safe.
  • Meaningful escapes such as newlines, Unicode, and Windows paths are preserved.
  • Very large documents may be limited by browser memory.

FAQ

How do I remove backslashes from escaped JSON?

Use the Unescape JSON action. It safely decodes JSON strings containing escaped quotes like " and formats the result when valid.

Why does my JSON contain lots of backslashes?

JSON is often logged or stored as a string, so internal quotes are escaped to keep the whole object valid.

Is this the same as deleting all backslashes?

No. Deleting all backslashes can corrupt valid JSON. This tool decodes escaped JSON safely and preserves meaningful escapes.

Is my JSON uploaded to a server?

No. PureToolkit runs formatting and unescaping locally in your browser. Your JSON never leaves your browser.

Can this decode double-escaped JSON?

Yes. The decoder tries a small, safe number of passes and stops when the candidate is no longer valid JSON.

Can it format JSON with comments?

No. The tool intentionally follows strict JSON syntax so output is predictable.

Related tools