JSON Formatter & Validator
Format, minify and validate JSON in your browser.
sorts nested objects too
Input
Valid JSONsize 639 Blines 15
Formatted output
{
"store": {
"name": "SupraIQ Books",
"open": true,
"rating": 4.7,
"book": [
{
"category": "reference",
"author": "Nigel Rees",
"title": "Sayings of the Century",
"price": 8.95,
"tags": [
"classic",
"quotes"
]
},
{
"category": "fiction",
"author": "Evelyn Waugh",
"title": "Sword of Honour",
"price": 12.99,
"tags": [
"war"
]
},
{
"category": "fiction",
"author": "Herman Melville",
"title": "Moby Dick",
"isbn": "0-553-21311-3",
"price": 8.99,
"tags": []
}
],
"location": {
"city": "Chennai",
"geo": {
"lat": 13.0827,
"lng": 80.2707
}
},
"owner": null
},
"updated": "2026-01-15T10:30:00Z"
}
size 873 Blines 45depth 6keys 28
About this tool
A full JSON workspace: format, minify, validate and sort keys, explore the data as a collapsible tree, run JSONPath queries, convert to YAML, CSV or TypeScript, and compare two documents. Errors report the exact line and column.
How to use it
- Paste or open your JSON.
- Format, minify or sort keys, and choose the indent.
- Switch tabs to browse the tree, query with JSONPath, convert, or diff against another document.
- Copy or download the result.
Frequently asked questions
- Is my data uploaded?
- No. Everything runs in your browser.
- Why is my JSON invalid?
- Common causes are trailing commas, single quotes instead of double quotes, and unquoted keys. Standard JSON allows none of these.