All toolsCategoriesAboutContactPrivacy
Developer Tools

JSON Formatter & Validator

Paste JSON to check that it is valid, then beautify it, minify it or sort its keys alphabetically. Errors come from the browser's own parser and are translated into a line and column you can jump to.

Updated · Free · No sign-up · Runs on your device

Loading the tool…

How to use it

  1. Paste JSON into the editor.
  2. Choose an indentation and press Format, Minify or Sort keys.
  3. If the JSON is invalid, the error message includes the line and column.

Who it helps

Developers debugging an API response, analysts reading exported data, and anyone who needs to make a JSON file readable before sharing it.

Worked example

A one-line API response becomes an indented tree, and a trailing comma is reported at the exact line where it appears.

Limitations

Only standard JSON is accepted. Comments, trailing commas and single-quoted strings are invalid and will be reported as errors.

Privacy

What you type or paste is processed in memory in this tab. It is not sent to a server, and nothing is saved after you close the page unless the tool says otherwise.

FAQ

Does formatting change the data?

No. Formatting only changes whitespace. Sorting keys changes the order of object keys, which is rarely significant but can matter for signatures.

Quick facts

Category
Developer Tools
Works on
Phone, tablet and desktop
Account
Not required
Price
Free
Data
Stays on your device
Updated