JSON Formatter

Prettify, minify, validate and compare JSON documents.

Options

Indentation
Paste or type JSON to validate, prettify, or minify.
0 charactersWaiting for input
0 charactersRun Prettify or Minify

Summary

Paste valid JSON to see structure stats.

About this tool

Format, minify, validate, and compare JSON documents in your browser. Fix indentation, spot syntax errors, and inspect structured data without installing desktop tools.

How to use

  1. Paste raw or minified JSON into the editor.
  2. Click format to prettify with readable indentation.
  3. Use validate or compare mode to check syntax or diff two JSON payloads.

Frequently asked questions

Can this tool fix invalid JSON?
The validator highlights syntax errors and line issues so you can correct them. It does not auto-repair malformed JSON.
Is my JSON sent to a server?
No. Formatting and validation happen locally in your browser for privacy and speed.
Can I minify JSON for production?
Yes. Use the minify option to remove whitespace and produce compact JSON for APIs or config files.

Related tools