Pretty-print, minify, validate, and explore JSON — entirely in your browser with syntax highlighting and tree view.
Paste your JSON below. Use the toolbar to format, minify, sort keys, or repair. The output panel shows syntax-highlighted code, an interactive tree view, and detailed stats.
JSON (JavaScript Object Notation) is a lightweight, human-readable data interchange format. It represents data as key-value pairs (objects) and ordered lists (arrays), using only six data types: strings, numbers, booleans (
true
/
false
),
null
, objects (
{}
), and arrays (
[]
). JSON is the dominant format for REST APIs, configuration files, and data storage across virtually all programming languages and platforms.
JSON.parse()
.
{"a":1,}
— JSON does not allow trailing commas after the last item.
{'key':'value'}
— JSON requires double quotes for both keys and string values.
{key:"value"}
— All object keys must be quoted strings.
//
or
/* */
comments.
undefined
, functions, or dates.
{
must have a matching
}
and every
[
a matching
]
.