JSON

Format, validate, minify, and explore JSON online. Tree view, JSONPath queries, and line-level error diagnostics. Free, no sign-up, all processing in your browser.

A free online JSON formatter, validator, and viewer that pretty-prints, minifies, and validates JSON entirely in your browser. Paste a minified or malformed response and it reformats the data with clean 2-space indentation, or compacts it back down to the smallest valid output. When the JSON is invalid it reports the syntax error with the exact line and character so you can jump straight to the problem. A collapsible tree view lets you explore deeply nested objects and arrays, and built-in JSONPath support lets you query the parsed document for just the values you need. Because everything runs client-side, your data — including API responses and config that may contain secrets — never leaves your device.

Common uses

  • Beautify a minified API response so it is readable while debugging.
  • Validate a config file and jump straight to the line causing a parse error.
  • Explore a large, deeply nested document with the collapsible tree view.
  • Extract specific values from a big payload with a JSONPath expression such as $.items[*].id.
  • Minify JSON before embedding it in a request body or an environment variable.
  • Reformat inconsistently indented JSON before committing it to version control.

Frequently asked questions

Is my JSON uploaded to a server?

No. All parsing, formatting, and validation happen locally in your browser. Your data never leaves your device, so it is safe to paste responses and config that contain sensitive values.

What indentation does the formatter use?

The formatter uses a 2-space indentation. Minifying removes all insignificant whitespace to produce the smallest valid output.

What is the difference between formatting and minifying JSON?

Formatting adds line breaks and indentation to make the data readable; minifying strips all optional whitespace to produce the most compact output. Both preserve the exact same data — only the whitespace differs.

How does it help me find errors in invalid JSON?

When the input is not valid JSON, the validator reports the specific syntax error along with the line and character where it occurs, so you can locate and fix the problem quickly.

Does it support JSONPath queries?

Yes. You can query the parsed document with JSONPath expressions like $.store.book[*].author, including wildcards, array slices, and recursive descent ($..key).

Can it handle large JSON documents?

Yes. Formatting, validation, and the collapsible tree view work on large documents directly in the browser, with no upload step.

All processing is local — your data never leaves your browser.