T-05 · Developer tools

JSON Formatter and Validator

Format, validate and minify JSON with clear error messages that point to the line and column. Runs entirely in your browser.

  • Runs in your browser
  • Nothing uploaded
  • No account
Instrument T-05 · JSON FormatterLocal
Mode

About this instrument

What it does

Beautify minified JSON with 2 or 4 space (or tab) indentation, sort keys, or minify it for transport. If the JSON is invalid you get the parser’s error with the line and column. Your data is never uploaded.

How to use it

  1. Paste JSON into the input.
  2. Choose the indentation and whether to sort keys.
  3. Copy or download the formatted result.

FAQ

Common questions.

01Why does my JSON fail with “Unexpected token”?

Common causes are trailing commas, single quotes, unquoted keys and comments. Standard JSON allows none of them.

02Does sorting keys change the data?

Only the key order inside objects. Array order is never changed.