JSON Validator
Checks JSON syntax and explains any error in plain English.
Paste messy or minified JSON and get it back neatly indented, or squeeze it onto one line. The JSON formatter keeps big numbers and strings exactly as written.
.json file up to 5 MB, or press Load sample.The formatter reads your JSON with a lossless parser and writes it out again with the spacing you chose.
1.0 don't lose digits, which a standard JavaScript parser would do.\u00e9.{"name":"Utilza","tools":["json","csv"],"free":true} formatted with 2 spaces:
{
"name": "Utilza",
"tools": [
"json",
"csv"
],
"free": true
}Minifying that output gives back the one-line original, 52 characters long.
APIs and build tools often send JSON on a single line to save space, which makes it hard to read. Beautify it when you need to inspect a response, review a config file, or compare two versions: with one value per line, a diff shows exactly what changed.
Minify goes the other way. Removing whitespace makes the payload smaller, which helps for request bodies, config files bundled with an app, and anywhere storage or bandwidth is tight.
Sorting keys A-Z is useful before comparing two JSON documents, because the same data in a different key order then lines up.
No. Formatting runs in your browser, and nothing is uploaded or stored.
Beautify adds line breaks and indentation for reading. Minify removes all unnecessary whitespace to make the file smaller.
No. The formatter keeps large integers and decimals exactly as written.
The formatter shows the line and column of the first error. The JSON Validator explains how to fix it.
Often used together with the JSON Formatter.
Checks JSON syntax and explains any error in plain English.
Turns JSON into readable YAML for configuration files.
Turns an array of JSON objects into a CSV table.