AZ Tools

JSON Formatter & Validator

Developer

Paste raw or messy JSON and instantly format it with your preferred indentation, sort keys alphabetically, or minify it down to a single line. Everything runs locally in your browser, so your data never leaves your device.

Output

How to use

  1. Paste or type your JSON into the input area.
  2. Choose an indentation size and, optionally, sort keys alphabetically.
  3. Click Format to beautify, or Minify to compact the JSON.
  4. If the JSON is invalid, the error message points to the problem.
  5. Copy the formatted result with the Copy button.

Frequently asked questions

Is my JSON sent to a server?
No. All formatting and validation happens locally in your browser — nothing is uploaded.
What does sorting keys do?
It reorders every object's keys alphabetically, recursively, which makes diffs and comparisons easier.
Why do I get a syntax error?
The input isn't valid JSON. Common causes are trailing commas, single quotes, or unquoted keys.
Does minify change my data?
No. Minify only removes whitespace; the data and key order stay the same unless you also enable sorting.

Related tools