JSON Formatter
Paste JSON to re-indent it, minify it, or find the line and column where it breaks.
Output appears here
Format
Pretty-print JSON with custom indentation
Validate
Check if your JSON is valid
Minify
Compress JSON to smallest size
Common questions
Why does my JSON fail with a trailing comma?+
JSON is stricter than JavaScript: it has no trailing commas, no comments, and keys must be double-quoted. A trailing comma before } or ] is the single most common cause, and the error message here names the line and column.
What is the difference between formatting and minifying?+
Formatting adds indentation and newlines so a human can read the structure. Minifying strips all of it to make the payload as small as possible for transmission. Both produce the same data.
Is my JSON uploaded anywhere?+
No. Parsing happens in your browser with the built-in JSON functions. Nothing is transmitted, which is why this works with production payloads you would not paste into a server-side tool.