JSON Formatter — Format, validate and minify JSON

Free JSON formatter and validator that runs entirely in your browser. Pretty-print, minify and check JSON — your data never leaves your device.

Privacy first: this tool runs 100% in your browser. Your files and text are never uploaded to any server — there is no server here to upload to. You can even turn off your Wi-Fi after the page loads and it still works. No sign-up, no account, no tracking.

How it works

Three steps, no account, no waiting room.

  1. Paste JSON — from an API response, a config file, or anywhere.
  2. Format or minify — pretty-print with 2-space indent, or squeeze to one line.
  3. Fix errors — if the JSON is invalid, the error message tells you what's wrong.

Good for

  • Reading a messy API response
  • Validating a config file before deploying
  • Minifying JSON to paste into code
  • Finding the typo that breaks your JSON

Frequently asked questions

Is my JSON uploaded?

No. Parsing and formatting happen in your browser. Your data never leaves your device — safe even for API keys and private configs (though you should still avoid pasting real secrets into any website).

What does 'Invalid JSON' mean?

The most common causes are trailing commas, single quotes instead of double quotes, unquoted keys, or comments. The error message usually names the problem.

What's the difference between format and minify?

Format adds line breaks and indentation so humans can read it. Minify removes all whitespace so machines can send it as small as possible.

Can I format JSON with duplicate keys?

Yes — the last value wins, as in standard JSON parsing.

Can I format JSON5 or YAML?

No — this tool handles strict JSON only. JSON5 features like trailing commas, comments and single quotes will be flagged as errors, which is exactly what the validator is for.

Is there a size limit?

No. Paste a whole API response or a multi-megabyte config file — formatting is instant and everything stays in your browser.

Related tools

More free tools that run on your device — no uploads, no sign-up.

Text & Code

Word Counter

Paste your text and get an instant count: words, characters, sentences, paragraphs and estimated reading time.

Open Word Counter

PDF

PDF Merge

Merge several PDFs into a single file. Reorder pages, drop what you don't need, download the result.

Open PDF Merge

All tools: PDF Merge, Image Compressor, Image Converter, QR Code Generator, Password Generator, Word Counter, Unit Converter.