# JSON formatter

> Format, minify, and validate JSON in your browser. Errors point at the exact line and column, and keys can be sorted for clean diffs.

Canonical: https://www.joelcsaji.com/tools/json-formatter

Category: Developer. Interactive: open the canonical URL in a browser to use it. It runs entirely client-side.

## What it does

- Pretty-print with 2 spaces, 4 spaces, or tabs, or minify to one line.
- Invalid JSON reports the line and column of the first error.
- Optional recursive key sorting for stable, diffable output.

Back to all tools: https://www.joelcsaji.com/tools
