JSON
AvailableJSON Validator
Check JSON syntax and pinpoint invalid data.
Paste strict JSON to format, minify, or validate locally.
Formatted JSON will appear here.
Options apply the next time you format or minify; your existing output is unchanged.
Format, validate, minify, and optionally sort strict JSON without sending it anywhere. Formatting makes JSON easier to read; minifying removes nonessential whitespace.
Processing happens locally in this browser and input is never automatically saved. Only strict JSON is accepted: comments, single-quoted strings, and JavaScript object literals are not valid JSON.
Formatting adds readable indentation; minifying removes optional whitespace.
Comments are not part of the JSON standard, so the browser's strict JSON parser rejects them.
Yes. Arrays, strings, numbers, booleans, and null are all accepted JSON roots.
No. Sorting applies recursively to object keys only; array item order is preserved.
No. Formatting changes presentation only and does not encrypt or secure the data.
Use it before reviewing an API response, committing a configuration file, or sharing JSON in a ticket. Indentation exposes the structure without changing values.
For example, turn a one-line API response such as {"ok":true,"items":[1,2]} into a reviewable document.
Formatting is not validation of a business schema: valid JSON can still be missing a field your application requires.
JSON
AvailableCheck JSON syntax and pinpoint invalid data.
JSON
AvailableRemove nonessential whitespace from JSON documents.
JSON
AvailableSort JSON object keys for predictable file diffs.
JSON
AvailableExplore nested JSON objects in an expandable tree.