Free online JSON formatter & validator. Beautify, minify, prettify and lint JSON, jump to the exact error line. Runs in your browser — your JSON is never uploaded.
Format, minify or validate JSON. Errors show the exact line and column.
Type or paste your JSON into the input box. It can be a single object, an array, or any valid JSON value — pretty-printed or minified, it doesn't matter.
Pick Format to beautify with your chosen indent (2 spaces, 4 spaces or tab) and optionally sort object keys, Minify to strip all whitespace, or Validate to check the syntax and pinpoint errors.
Valid JSON is formatted instantly — copy the result or clear the fields. If the JSON is invalid, you get a clear message with the exact line and column so you can jump straight to the problem.
No. Formatting, minifying and validation all happen entirely in your browser with JavaScript — your JSON never leaves your device and nothing is uploaded. That matters when your JSON holds API keys, tokens, customer records or other data you'd rather not paste into a site that logs it. Public JSON formatters have leaked exactly this kind of payload before; here it stays local.
Format (beautify) re-indents your JSON so it's easy to read — choose 2-space, 4-space or tab indentation, and optionally sort object keys alphabetically. Minify removes every space and line break to produce the smallest valid JSON for storage or transfer. Validate just checks whether the text is well-formed JSON and, if not, tells you the exact line and column of the first error.
Formatting and minifying parse your JSON as standard JavaScript values, so integers larger than 2^53 and very long decimals are rounded to the nearest double — the same behaviour as virtually every JSON tool and most programming languages. Duplicate keys collapse to the last one. If you need to preserve huge integers exactly, keep them as JSON strings. We're upfront about this rather than silently corrupting your data.