Read the guide
Open a JSON file and find the value you need
Open a JSON file in a local editor or browser viewer, locate a value in its tree, and make a readable copy while keeping the original.
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.
If you need to expand a branch, search a nested key or copy its path, open JSON Viewer. Formatting changes the text layout; the viewer helps navigate the structure.
For examples of the reported line and column, fix JSON parsing errors before formatting the document.
Read the guide
Open a JSON file and find the value you need
Open a JSON file in a local editor or browser viewer, locate a value in its tree, and make a readable copy while keeping the original.
Read the guide
Pretty-print JSON that already parses, jump to the line and column when it does not, and open a tree when the document is too deep to scan as text.
Pasted JSON and local files are processed in your browser. From URL first requests the address directly; if that fails, Utilza's server may receive the URL and fetch the public response. Processing then continues in your browser. Avoid URLs containing secrets; see the privacy policy for details.
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 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.