JSON formatter and validator

Paste JSON to pretty-print it, find syntax errors, or minify it — privately in your browser.

Free · No sign-up · No watermark

🔒 Files never leave your device — processing happens in your browser.

How to use

  1. Paste your JSON into the box.
  2. Choose indentation and whether to sort keys, then press Format — or Minify.
  3. Copy the result or download it as a .json file.

JSON formatter and validator

The formatter uses the browser's own JSON parser, so it follows the JSON standard exactly: keys and strings need double quotes, and trailing commas and comments are not allowed. When the JSON is invalid, the error message shows the line and column and the cursor jumps there.

Because API responses and configuration files often contain tokens or personal data, nothing you paste is sent anywhere.

Frequently asked questions

Why does my JSON with comments fail?

Standard JSON does not allow comments or trailing commas. Remove them, or use JSON5-aware tools.

What does sort keys do?

It orders object keys alphabetically at every level, which makes two JSON files easier to compare.

Is there a size limit?

Only your device's memory; files of several MB work fine.

More PDF tools

Developer Tools ›