No file open
Create a new file or open an existing one from the sidebar
Paste your JSON and press Format, everything happens in your browser.
No file open
Create a new file or open an existing one from the sidebar
To format JSON online, paste it into the editor above and press Format, or use Shift+Alt+F (Shift+Option+F on a Mac). Every key lands on its own line with proper indentation, so a wall of minified text turns into something you can actually read.
The editor is Monaco, the same one inside VS Code, so you also get syntax highlighting, code folding, bracket matching and a red underline on anything that isn't valid JSON. Indentation follows the tab size in Settings, which is two spaces by default.
{"id":7,"name":"Ada Lovelace","roles":["admin","editor"],"active":true,"lastLogin":null}{
"id": 7,
"name": "Ada Lovelace",
"roles": [
"admin",
"editor"
],
"active": true,
"lastLogin": null
}They're the same thing. All three mean adding indentation and line breaks so the structure is easy to follow, and the data itself doesn't change at all.
Formatting needs valid JSON, so if it fails there's a syntax error somewhere. The status bar at the bottom shows the parser's error message, and the editor underlines the spot. Trailing commas, single quotes and unquoted keys are the usual suspects.
Yes, open Settings and change the tab size. Format uses it for the output.
Sure, jq . file.json or python -m json.tool file.json will both pretty print it. The editor is handier when you want to read, fold and edit the result as well.
No, this runs entirely in your browser, so nothing you paste is sent to a server. The only feature that sends data anywhere is the optional AI assistant, and only when you actually ask it something.