devpocket.dev

JSON Formatter

Format, minify, validate, sort, and inspect JSON in a collapsible tree.

Runs locally
Loading tool…

How to use

Paste JSON into the input panel. Choose 2 spaces, 4 spaces, tabs, or minified output, then enable deep key sorting or Unicode escaping when needed. Invalid input shows the exact line and column with a caret. Switch to Tree to expand nested values; select a key to copy its JSONPath-style path.

FAQ

Does sorting change array order?

No. Deep sorting only alphabetizes object keys; array items keep their original order.

What does escape Unicode do?

It renders non-ASCII characters as JSON \u escape sequences, including surrogate pairs for characters outside the BMP.

Related tools