JSON Formatter

Format, validate and minify JSON with 2, 4 or 8 space indentation.

Works offline Native desktop macOS & Windows
JSON Formatter
What it does

API responses, config files and log lines often arrive as one unreadable line of JSON. The JSON Formatter in HackUtilities parses your input, reports the parser error if it is invalid, and prints it with the indentation you pick. Because it runs locally, you can paste payloads that contain customer data or credentials without sending them to a website.

Format with your indentation

Pretty-print with 2, 4 or 8 spaces. Output shows a character and line count.

Validation with parser errors

Invalid JSON is rejected and the parser error message is shown, so you can find the broken comma or quote.

Minify

Collapse formatted JSON to a single line for embedding in a request body, an environment variable or a config field.

Side-by-side input and output

Your original stays in the left pane while the formatted or minified result appears on the right, ready to copy with one click.

Clipboard detection

With clipboard detection on (the default setting), HackUtilities recognises JSON you copied elsewhere and can open it here pre-filled.

FAQ

Is my JSON sent to a server?

No. Parsing and formatting run inside the app on your machine, so the tool works offline and your data stays local.

How do I minify JSON?

Paste the JSON into the input pane and press Minify. The output is the same data on a single line with no extra whitespace.

Pairs well with
All 46 tools →
Try JSON Formatter free for 14 days

No card, no account. Every tool included, bought once.

Download