Paste strict JSON and format it
Open the JSON formatter and validator and paste complete JSON, including the quotes around keys and strings. Choose 2 spaces or 4 spaces under Indentation, then press Format JSON. The result is indented for reading; the data is not rewritten as a JavaScript object.
The tool only accepts JSON. Unquoted keys, trailing commas, comments and other JavaScript object literal features are reported as syntax errors, using the browser's error message. Invalid JSON is not repaired.
Example input
{"id":9007199254740993,"sku":"00123","ok":true}Check that large numbers still look the same
Ordinary formatters parse numbers and write them back, which can change integers above 9007199254740991, the largest integer JavaScript can represent exactly. This formatter keeps the original number literals, so 9007199254740993 stays 9007199254740993 rather than being rounded.
The same approach preserves the original spelling of decimals and exponents, the order of keys, and duplicate keys if they are present in the input. What you paste is what is reformatted.
Example result
{
"id": 9007199254740993,
"sku": "00123",
"ok": true
}Minify when you need a compact copy
Minify removes insignificant whitespace and writes the same literals and keys on one line. Use it when you want a smaller payload, not when you want to change types or drop unused fields. The formatter does not sort keys or remove duplicates.
Example result
{"id":9007199254740993,"sku":"00123","ok":true}When you need a table instead
Formatting does not convert JSON into CSV or a table. For an array of objects or row arrays, use the CSV to JSON converter or the table converter. If a later conversion warns that a number is too large to convert exactly, put that identifier in quotes in the JSON first. Your JSON is processed in your browser.