JSON formatter and validator
Format, minify, and check JSON in your browser. Pasted data stays on the page and is not sent to Calculation Hub.
Paste a JSON object, array, string, number, boolean, or null.
Your JSON stays in this tab. It is not saved to the URL, browser storage, or a Calculation Hub server. Maximum input: 1,000,000 characters and 200 nesting levels. Numeric tokens, property order, and duplicate keys are preserved; this is formatting, not schema validation.
Output
Formatted or minified JSON appears here when the input is valid.
Syntax is checked with the browser parser; whitespace formatting preserves the original numeric tokens, key order, and duplicate keys rather than reserializing JavaScript numbers. Data stays in this tab while the page is open.
Analytics events, when you have allowed analytics cookies, use coarse size buckets and action names. They do not include the JSON text, output text, property names, URLs from your JSON, or error excerpts.
Do not enter production secrets into any web page unless you are allowed to handle them there. This tool avoids uploads, but your browser, extensions, and device policies still matter.
Good for
Check an API response before sharing a bug report.
Minify JSON for a config file or a small test fixture.
Find the line and column behind a parse error.
Not for
It will not repair broken JSON by guessing your intent.
It will not accept comments or trailing commas.
It will not create a share link with your JSON.
Additional Resources
Frequently Asked Questions
Does the JSON formatter upload my data?
No. Formatting, minifying, and validation run in your browser. The tool does not send pasted JSON to Calculation Hub.
Can it fix invalid JSON automatically?
No. The tool reports the parse error so you can fix the source. It does not guess missing quotes, commas, or braces.
What indentation does the formatter use?
Choose two spaces, four spaces, or tabs. Minify removes whitespace outside strings. Formatting does not round large numbers, reorder keys, remove duplicate properties, or change numeric notation.
Will the page save my JSON in the URL?
No. The input is not written to query parameters, local storage, or a share link.
What happens with large JSON files?
Input is capped at 1,000,000 characters and 200 nesting levels; formatted output at five million characters. The preview shows up to 20,000 characters. Copy and download include the full result, while oversize input produces a visible error.
As an Amazon Associate, Calculation Hub earns from qualifying purchases.