Skip to content
No uploads · runs in browser

JSON Formatter

Pretty-print or minify JSON, pinpoint error locations, and sort keys.

Paste JSON on the left.
Favorite it to find it fast on home

When to use it

Expand a one-line API response into something readable
Sort keys to remove diff noise between two config versions
Repair trailing commas and single quotes from a hand-edited file

How to use it

1Step 1Pick a file in JSON input, or drag and drop it
2Step 2Press Pretty and it is done
3Step 3Download the result, or send it with the share button

If the result looks off

The file will not open

Check that the format is supported. If it is password protected, unlock it and try again.

I do not like the result

Your original is untouched — change the options or preset and try again.

Frequently asked questions

Does it show where errors are?

Yes. Parse errors come with messages and nearby positions.

How large a file can it handle?

Anything your browser has memory for. Up to a few MB is comfortable; beyond that a desktop editor will be faster.

Related tools

View all →