JSON formatter

Dev

Paste JSON to beautify, minify, or validate, with error position.

Result

How to use

Paste JSON, then choose Beautify for indented output or Minify for a single line. Valid input updates immediately and can be copied. Invalid input shows roughly where it failed.

FAQ

What is the difference between beautify and minify?

Beautify indents with two spaces for reading. Minify strips whitespace for payloads or config. Both require valid JSON.

Why does validation fail?

Usually a missing comma, single quotes, a trailing comma, or comments. Check symbols near the hinted position.

Can it handle large JSON?

It is meant for everyday API and config text. Very long input is rejected so the page stays responsive.

Can I send the result to an API?

The minified result can be used as a request body reference. Still check that every field is complete before sending.

Related tools