JSON does not have to start with an object
Objects and arrays are common, but a top-level string, number, boolean, or null is valid too.
truenull42"Foxger"[1, 2, 3]{"ready":true}Format, validate or minify JSON without sending it to a server. Paste your data, choose an indentation style and copy or download the result.
Use any valid JSON value, from a complete object to a single boolean or number.
Standard JSON uses double-quoted keys and strings, with no comments or trailing commas.
Copy the latest result or save it as a local .json file.
Objects and arrays are common, but a top-level string, number, boolean, or null is valid too.
truenull42"Foxger"[1, 2, 3]{"ready":true}Foxger uses the browser’s standard JSON.parse and JSON.stringify behavior. Duplicate object keys resolve to the last value, and numbers outside JavaScript’s safe integer range may lose precision. Keep an original copy when exact source text matters.
Replace single quotes, remove comments and trailing commas, and quote every object key.
Formatted JSON is easier to review. Minified JSON is smaller for transport or compact storage.
Foxger tools are free, private, and built without display ads. Optional support helps keep them maintained, tested, and documented.