Format and check JSON

Tidy JSON is easier to read and debug. Paste your data and pick an indent. The tool checks every bracket and shows the first error. Nothing is uploaded.

Stays on your device Free
1. JSON

Paste JSON from an API, a log or a config file. The tool checks it as you type.

Local only
Style
Keys
JSON
0 characters
Formatted JSON

This runs in your browser. Your file is not sent to us.

How to use json formatter

  1. Paste your JSON. Add an object, an array or a full API response.
  2. Pick a style. Choose an indent, minify, or sort the keys.
  3. Copy the result. Copy the clean JSON or download it as a file.

What you get

  • Pretty print with two or four spaces
  • Find the line and column of an error
  • Minify for a smaller file
  • Sort keys when you need a stable order

Why this runs in your browser

Most free PDF sites ask you to upload your file. Then you wait. Then you hope they delete their copy. That is a bad deal for a payslip, a contract or a passport scan.

JSON Formatter reads the file on your device and saves the result to your downloads folder. There is no upload and no copy on a server. For the details, see how it works.

JSON Formatter questions

What does invalid JSON mean?

A bracket, comma or quote is missing or in the wrong place. The error line points to the first problem.

Why does the tool reject a trailing comma?

The JSON standard does not allow a comma after the last item. Remove it and try again.

Can I sort the keys?

Yes. Turn on sort keys to put every object key in alphabetical order.

Does minify change my data?

No. Minify only removes spaces and line breaks. The values stay the same.

Is my JSON uploaded?

No. Your browser reads and formats the data on your device.