Multitool

JSON Formatter

Prettify, minify and validate JSON with error pinpointing.

About the JSON Formatter

Paste a payload from an API response, a log line or a config file and choose pretty, minify or validate. Pretty mode indents with two spaces so nested objects become readable; minify strips every optional space for the smallest payload. When the JSON is invalid, the error message is shown along with the exact character where parsing stopped, highlighted in your input.

Tip: Most invalid JSON is one of three mistakes: a trailing comma, single quotes instead of double quotes, or an unquoted key. Check the highlighted character first, because the real mistake is usually just before it.

JSON Formatter is free, needs no sign-up and runs entirely in your browser, so what you paste never leaves your device.

How to use it

  1. Paste or type your input, or press Ctrl+V anywhere on the page.
  2. Adjust the options. The result updates instantly.
  3. Copy the output with the Copy button or Ctrl+C.

Topics

  • json
  • validate
  • prettify
  • minify

Frequently asked questions

Is the JSON Formatter free to use?

Yes. The JSON Formatter is completely free, needs no account and has no usage limits.

Is my data uploaded when I use the JSON Formatter?

No. Everything is processed locally in your browser, so what you paste never leaves your device. The last 3 snippets are kept on this device only and you can clear them with one click.

How do I use the JSON Formatter?

Paste or type your input, or press Ctrl+V anywhere on the page. Results update instantly, then copy them with the Copy button or Ctrl+C.

More developer tools