JSON Formatter and Validator

Paste your JSON and choose the indentation, or minify it.

Formula

Valid JSON: double-quoted keys and strings, no trailing commas, no comments

Worked example

{“a”:1,”b”:[2,3]} becomes an indented, readable block.

Frequently asked questions

Why is my JSON invalid?

Common causes are single quotes, trailing commas and comments, which JSON does not allow.

Is my data safe?

Yes, formatting happens in your browser and nothing is uploaded.

What does minify do?

It removes all spaces and line breaks to make the JSON as small as possible.

Related calculators

Results are estimates for information only. Check important figures with a professional.