JSON Formatter

Local tool Format or minify JSON and check whether the input is valid.

Formatted JSON
Waiting for JSON…

Good to know

Whitespace outside JSON strings can be changed without altering values. Spaces inside quoted strings are data and must be preserved.

FAQ

Can I paste a JavaScript object literal?

JSON requires quoted property names and double-quoted strings. Remove comments and trailing commas.

Can I use this with long numeric identifiers?

This tool retains the written digits when formatting. For downstream systems that parse numbers with limited precision, transmit identifiers as strings.