Format or minify JSON
Paste a JSON value to see a formatted result as you type. Pretty print adds line breaks and indentation so nested objects and arrays are easier to inspect. Choose two or four spaces for indentation. Minify removes whitespace outside strings to create a compact representation.
The formatter accepts JSON, not JavaScript object literals. JSON requires double-quoted property names and strings, and does not allow comments, trailing commas, undefined, or functions. It preserves the original string and number tokens while changing only structural whitespace, so a large integer is not silently rounded during formatting.
Example input
{"name":"Ada","active":true,"scores":[8,10]}Result
{
"name": "Ada",
"active": true,
"scores": [
8,
10
]
}