JSON Formatter

Beautify, validate and minify JSON. Free, no sign-up, files stay on your device.

🔒 100% private — processing happens in your browser. Nothing is uploaded.

How to format JSON

  1. Paste your JSON.
  2. Click “Beautify” to indent it, or “Minify” to put it on one line.
  3. Pick 2 spaces, 4 spaces or tabs, and sort keys if you like.
  4. Copy the result.

Readable JSON in one click

APIs, config files and logs often return JSON as one long line. Formatting adds line breaks and indentation so you can read and compare it. If the JSON is broken — a missing comma or quote — the tool tells you, which saves a lot of debugging time. Minifying does the opposite and makes the file as small as possible.

Your data stays in your browser.

Questions and answers

Why is my JSON invalid?

Common reasons: a trailing comma, single quotes instead of double quotes, or a missing bracket.

What does “sort keys” do?

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

Can I convert JSON to Excel or CSV?

Yes, with JSON to Excel or JSON to CSV.

Is my data sent anywhere?

No.