Paste raw JSON to format, validate, and explore. Also convert JSON to CSV with one click.
JSON (JavaScript Object Notation) is a lightweight data format used for storing and exchanging data. It is widely used in APIs, configuration files, and databases. Formatting makes it human-readable; validating ensures there are no syntax errors.
Paste raw or minified JSON to format it with proper indentation, validate it for errors, or convert a JSON array to CSV format. The error validator shows the exact line and position of any syntax problems, making it easy to fix malformed JSON from APIs, config files, or data exports.
| Error | Wrong | Correct |
|---|---|---|
| Single quotes | {'name': 'John'} | {"name": "John"} |
| Trailing comma | ["a", "b", "c",] | ["a", "b", "c"] |
| Unquoted key | {name: "John"} | {"name": "John"} |
| Missing quotes on value | {"active": true, "name": John} | {"active": true, "name": "John"} |
What is JSON and where is it used?
JSON (JavaScript Object Notation) is a lightweight text format for storing and exchanging data. It is used in REST APIs (almost every web service API returns JSON), configuration files (package.json, settings files), databases (MongoDB stores JSON-like documents), and data exports. It is human-readable and language-independent.
Why do I get a JSON parse error?
Common causes: single quotes instead of double quotes around keys or strings; trailing commas after the last item in an array or object; unquoted property names; comments (not allowed in JSON); control characters in strings. This validator highlights the exact error location.