Advertisement
Advertisement

Free online JSON formatter and parser — format, beautify, minify, and validate JSON in your browser.

If a value is itself JSON-encoded text, recursively parse it into nested JSON instead of leaving it as a string.
Advertisement
Advertisement

About the JSON formatter

Paste raw or minified JSON on the left and click Beautify to pretty-print it with clean indentation, or Minify to collapse it to the smallest valid form. The editor validates as you type and highlights matching brackets so you can navigate deeply nested structures quickly. It doubles as a JSON viewer and validator, and everything runs locally in your browser.

Is my JSON uploaded anywhere?

No. All parsing and formatting happens locally in your browser with JavaScript — your data is never sent to a server, so it works offline and is safe for sensitive payloads.

What is the difference between Beautify and Minify?

Beautify adds line breaks and indentation to make JSON human-readable. Minify removes every non-essential character (whitespace and newlines) to produce the smallest valid JSON — useful for reducing payload size in APIs and config files.

What does the "Deep unescape" setting do?

When a value inside your JSON is itself a JSON-encoded string (a stringified object within an object), deep unescape recursively parses those nested strings into real structure instead of leaving them as escaped text.

Why does it say my JSON is invalid?

The most common causes are trailing commas, single quotes instead of double quotes, unquoted keys, or comments — none of which are allowed by the JSON specification. The error message points to the position where parsing failed.

Collapse the page

Both options play the collapse and reload this site fresh from the network. They differ in what they take with them.

Refresh files
Drops the offline cache and service worker. Your saved inputs and settings are kept — use this if the site is serving something stale.
Erase everything
All of the above, plus every tool's saved input — including your JWT and HMAC keys — and your settings. Deleted from your device, not sent anywhere. This cannot be undone.