Tools
Support
WORKSPACE

JSON Formatter

Format, validate, or minify JSON structures.

WELL / TOOLS

Free for everyone. Sustained by those who can contribute.

No ads and no limits. A voluntary contribution helps with hosting and new tools. Support is optional and unlocks no perks.

The JSON formatter indents your content with two spaces, checks that the syntax is correct and can minify it by removing spaces and line breaks.

How to use

  1. Paste the JSON into the input field.
  2. Click Format JSON, Minify or Validate.
  3. Copy the result.

Frequently asked questions

How do I find out why my JSON is invalid?

When validating, the tool shows the browser's error message. Trailing commas, single quotes and unquoted keys are the most common causes.

Does minifying change the data?

It only removes spaces and line breaks. Be careful with very large numbers: above 2^53 JavaScript may lose precision.

Other tools