JSON Beautifier

Paste a wall of minified JSON and read it like a document. Indentation appears as you type, and a broken bracket is pointed out straight away.

How to use

Good to know

Why sorting keys helps

Two API responses can be identical in content and completely different in text, because the server serialised the keys in another order. Sort both and the diff shrinks to the fields that actually changed.

The parser is the browser's own

Formatting goes through JSON.parse, so anything the tool accepts will be accepted by any other program. If it complains, the file really is broken — the message shows what the parser expected and where.

Frequently asked questions

Is my JSON sent anywhere?

No. Parsing and formatting happen in your browser, so tokens and personal data inside the payload stay on your device.

What is the size limit?

Five megabytes of text. Beyond that the browser starts to stutter, so the tool refuses instead of freezing the page.

Does it keep the order of keys?

Yes, unless you turn on sorting. Objects are rebuilt in their original order.

How is this different from the JSON formatter?

It is the same engine opened straight in formatting mode. If you need to minify or only validate, use the sibling pages.

Related tools