JSON Formatter & Validator

Make JSON readable, check it, or shrink it.

Paste JSON above to check and format it.

Options

Sort keys A–Z
Checked in your browser. Your data is not uploaded.
Guide

How to format JSON

1

Paste your JSON

Paste it into the box. It is checked at once.

2

Choose the layout

Format with 2 spaces, 4 spaces or tabs, or minify it. Sort keys if you like.

3

Copy or download

Copy the result or save it as a .json file.

Frequently asked questions

Is my data uploaded?

No. Everything runs in your browser, so your text stays on your device.

How do I find the error?

If the JSON is not valid, the message gives the line and column where it went wrong.

What does minify do?

It removes all spaces and line breaks so the JSON is as small as possible.

Does sorting change my data?

Only the order of the keys in objects. Lists keep their order.

Related tools

See all text & utilities →