← Back to all tools

Simple & private

JSON Formatter

Format, validate or minify JSON.

What is this tool?

The JSON Formatter checks that a block of JSON is valid and lays it out with clear, readable indentation, or compresses it into a single compact line when you switch to Minify.

How to use this tool

  1. Paste your JSON into the input box.
  2. Choose "Format JSON" for readable indentation or "Minify JSON" to compress it.
  3. Click "Run tool".
  4. If the JSON is invalid, fix the reported error and try again.

Example

Pasting {"name":"Sam","age":30} and choosing Format JSON lays each key on its own indented line, making the structure easy to scan.

Common use cases

Frequently asked questions

What happens if my JSON is invalid? +

The tool shows an error message describing what went wrong so you can fix it and try again.

Does formatting change the data? +

No, formatting only changes whitespace and indentation. The keys and values stay identical.

Is my JSON sent anywhere? +

No, validation and formatting both happen locally in your browser.