JSON Formatter & Validator

Pretty-print, minify and validate JSON with exact error positions.

DeveloperFreeNo sign-up
Loading tool…

Runs entirely in your browser — nothing you enter is uploaded or stored on a server.

How to use it

Paste JSON to format it with your choice of indentation, minify it, sort keys, or find exactly where it is invalid. Everything runs locally, so private payloads stay private.

  1. Paste your JSON.
  2. Format, minify or sort keys.
  3. If it is invalid, jump to the line and column of the error.
Developers

Questions

Is my JSON uploaded?

No. Parsing and formatting happen in your browser.

Why does it say my JSON is invalid?

Common causes are trailing commas, single quotes and unquoted keys, which JavaScript allows but JSON does not.