Data tool

JSON Formatter

Paste JSON or drop a .json file to pretty-print, minify, sort keys, copy, or download clean formatted output in your browser.

Runs Locally

This tool runs in your browser. Files never leave your device.

Drop a .json file here or paste raw JSON below.

Drag and drop a JSON file anywhere inside this input card.

Formatted output

272 B formatted · 185 B minified

Valid JSON
Output is ready to copy, download, minify, or apply back to the input box.

What this tool does

JSON Formatter takes compact or messy JSON and rewrites it with clean indentation and line breaks, so a minified blob becomes something you can actually read. It is the fast way to make sense of an API response or a config before you debug it, with the structure laid out and the nesting made obvious.

How it works

Paste your JSON and the formatter parses it in your browser and returns a neatly indented version you can copy. Reformat as much as you like; the data stays exactly the same, only the spacing changes. Nothing is uploaded.

When to use JSON Formatter

Making a minified API response readable
Tidying JSON before committing it to a repo
Reformatting a config you are about to edit
Cleaning up JSON pasted out of a log