JSON Validator
Check JSON syntax and see the exact error position.
Paste raw or minified JSON and get clean, readable output in one click.
Runs in your browser. Your input is never uploaded.
Paste your JSON into the input panel, or press “Sample” to load an example.
Pick an indentation style: 2 spaces, 4 spaces or tabs.
Press Format to beautify or Minify to compress. Copy or download the result.
Input
{"name":"Ada","skills":["math","code"],"active":true}Output
{
"name": "Ada",
"skills": [
"math",
"code"
],
"active": true
}Check JSON syntax and see the exact error position.
Convert arrays of JSON objects to CSV, flattening nested data.
Convert JSON objects and arrays into well-formed XML.
Convert CSV text into a JSON array of objects.
No. Formatting uses JSON.parse and JSON.stringify in your browser. Nothing is transmitted.
JSON is stricter than JavaScript: keys need double quotes, trailing commas are not allowed and comments are not supported. The error message points to the line and column.
No, but key order is preserved as parsed and very large integers beyond 2^53 may lose precision because JavaScript numbers are doubles.
Learn what JSON is, its syntax rules, data types, common mistakes and how to read and write it in JavaScript and Python.
Step-by-step guide to formatting, beautifying and minifying JSON online, plus how to read and fix the most common JSON syntax errors.
Paste or type input above, or press Sample to see an example.