Format, validate, minify, and explore JSON data with syntax highlighting and error detection.
JSON (JavaScript Object Notation) is a lightweight data interchange format that is easy for humans to read and write, and easy for machines to parse and generate.
"Hello World"42 or 3.14true or falsenull[1, 2, 3]{"key": "value"}{
"name": "John",
"age": 30,
"active": true,
"tags": ["developer", "designer"]
}
Paste JSON into the box and choose format to indent it neatly, or minify to strip out spaces for a smaller payload. If the JSON is invalid, the error message tells you what went wrong and roughly where, which is usually quicker than scanning a long API response by eye.
Everything runs in your browser using the built-in JSON.parse, so API keys, customer data or anything else you paste never leaves your machine.
{"a": 1,}. JavaScript allows them; JSON doesn't.{name: "Sam"}.// and /* */ are errors.undefined, NaN or dates written without quotes.No. Formatting and validation happen in your browser, so the data never leaves your computer.
Formatting adds line breaks and indentation so people can read it. Minifying removes all unnecessary spaces so the file is smaller to send over a network. Both contain exactly the same data.
JSON is a stricter subset. It needs double-quoted keys and strings, and doesn't allow trailing commas, comments or values like undefined.