A free JSON formatter and validator: online here, offline in your menu bar.
Paste your JSON below: it is validated as you type, an error comes with its line and column, and one click prettifies or minifies it. It runs in your browser, so nothing is sent to a server.
Format your JSON now
Paste your JSON and prettify or minify it. It all happens in your browser: nothing is sent to a server.
100% local · your JSON never leaves this tab
Want it offline? It lives in your menu bar.
Paste JSON, see right away whether it is valid, and if it is not, the line and column of the problem in plain words. Prettify with 2, 4 or tab indent, or minify, without pasting your data into a website. It is the JSON tab of Dev tools, on Mac and Windows.
{
"name": "webstarted",
"tools": [
"json",
"jwt",
"epoch"
],
"offline": true
} Paste, check, format. In the same box.
Open Dev tools from the menu bar; it opens on the JSON tab. Paste your JSON and the status line tells you on every keystroke whether it parses. Prettify indents it, Minify packs it into one line, and the result replaces what you pasted, so the next click is Copy. Command+Enter (Ctrl+Enter on Windows) formats without reaching for the mouse.
- Indent with 2 spaces, 4 spaces or a tab
- Prettify and Minify undo each other: key order is kept
- Long lines scroll instead of wrapping, so the indentation never lies
{"name":"webstarted","offline":true} Errors that say what to fix.
A parser says “Unexpected token”. This tells you “A comma is missing” and where: line 3, column 3. It recognizes the usual culprits, like a trailing comma, a key without quotes, single quotes, an unclosed string or a raw line break inside one, and it reads the same on macOS and on Windows.
It also catches the JSON that is valid but will not survive formatting. A 19-digit id is bigger than JavaScript can hold exactly, and a repeated key keeps only its last value. Both get a warning before Prettify overwrites what you pasted.
{
"name": "webstarted"
"offline": true
} The JSON you format is rarely harmless.
The JSON you need to read is usually an API response, a webhook payload or a config file, and those carry tokens, emails and internal ids. An online formatter sends all of that to a server you know nothing about. The JSON tab never makes a network call, and what you paste is not kept once you close it.
- No upload, no account, no server
- Next to a JWT decoder and an epoch converter, in the same popover
- Eight more tools in Dev tools: Base64, hashes, UUIDs, regex and more
One tab of Dev tools, inside one free app.
The JSON formatter is the first tab of Dev tools, which comes built into Webstarted Toolbox: one menu bar icon (system tray on Windows) with a popover full of small tools, from a clipboard history to timers and notes.
Questions, answered.
Is this JSON formatter really offline?
Yes. In the app, the JSON tab of Dev tools runs on your machine with no network calls, so an API response with tokens or customer data never reaches anyone’s server. The version on this page runs in your browser tab and sends nothing either.
How do I format JSON on a Mac without a website?
Install the free Webstarted Toolbox, open Dev tools from the menu bar and stay on the JSON tab. Paste your JSON and press Prettify, or Command+Enter (Ctrl+Enter on Windows). It formats in place, so you can copy the result with one click.
What does it tell me when the JSON is invalid?
The line and column where it breaks, and what is wrong in plain words: a missing comma, an extra comma before a closing bracket, a key without double quotes, single quotes instead of double, an unclosed string, an unescaped line break or text left over after the JSON. The Prettify and Minify buttons stay off until it is valid.
Can formatting change my data?
It can, and the app warns you before it happens. Numbers larger than JavaScript can hold exactly (a long id, for example) lose precision when they are parsed, and a duplicated key keeps only its last value. Both cases show a yellow warning next to “Valid JSON”, before anything is overwritten.
Which indent options are there?
Two spaces, four spaces or a tab, plus Minify to strip all the whitespace. Prettify and Minify undo each other, because the key order is preserved.
Does it work on Windows too?
Yes. Toolbox is the same free app on macOS 12+ and Windows 10+, from the menu bar or the system tray. Dev tools can also open in its own window when you need more room.
Is it free?
Yes. Dev tools, and its JSON tab, come built into Webstarted Toolbox, which is free and needs no account.
Get Webstarted Toolbox
Free to use. The JSON formatter, Dev tools and every other widget included. macOS 12+ and Windows 10+.
One icon, many small tools
This is one of the 49 widgets in Webstarted Toolbox, the free all-in-one menu bar app for Mac and Windows. Here are the rest: