What is JSON?
JSON (JavaScript Object Notation) is a lightweight data format for structured objects, arrays, strings, numbers, booleans, and null values. It is widely used in REST APIs, configuration files, logs, and frontend applications.
Paste JSON below to pretty print, validate, or minify it instantly — everything runs locally in your browser. Working with typed frontends? Convert the same JSON into types with the JSON to TypeScript interface generator.
JSON (JavaScript Object Notation) is a lightweight data format for structured objects, arrays, strings, numbers, booleans, and null values. It is widely used in REST APIs, configuration files, logs, and frontend applications.
The JSON formatter parses the input with the browser-native JSON parser. Valid JSON can be pretty printed with indentation for readability or minified into a compact one-line string for transport and storage. Invalid JSON returns the parser error so you can quickly find syntax problems.
{"name":"John","age":30} -> {
"name": "John",
"age": 30
} {
"name": "John",
"age": 30
} -> {"name":"John","age":30} {"status":"ok","items":[1,2,3]} -> Valid JSON {"name":"John",} -> Unexpected token } in JSON