Skip to content

JSON formatter

Format, minify, validate and explore JSON as a tree.

Runs in your browser. Nothing is uploaded.

Paste JSON, drop a .json file, or open one.

About JSON formatter

Paste JSON or open a .json file to pretty-print it, minify it or check that it is valid. Errors show the exact line and column. Explore large documents as a collapsible tree and copy the path to any value.

Questions

Does it accept comments or trailing commas?
No. It checks standard JSON (RFC 8259), which is what most APIs and tools expect, and points to the first problem it finds.
How big can the file be?
Up to 50 MB. The tree view is turned off above 5 MB to keep your browser responsive; formatting and validation still work.
Is it free? Is my data private?
Yes to both. There is no sign-up and no limit, and everything runs on your device, so your data never reaches our servers.

More tools