JSON Formatter & Validator

Format, validate and minify JSON with exact error locations, a tree view and one-click repair.

JSON Formatter & Validator Open in new tab

About JSON Formatter & Validator

What it does

Paste JSON or open a .json file and it is checked as you type. Valid JSON is shown neatly indented with syntax colours. If something is wrong, you see the exact line and column and a plain explanation, such as a trailing comma or a missing quote.

How to use it

  1. Paste your JSON into the Input box, or drop a file onto it.
  2. Press Format to indent it (2 spaces, 4 spaces or tabs), or Minify to remove all whitespace.
  3. Switch the output to Tree to fold and unfold large objects.
  4. Tick Sort keys to order object keys alphabetically, which makes two files easier to compare.
  5. Copy the result or download it as a file.

Repair broken JSON

Repair fixes the mistakes that come from copying JavaScript or Python objects: single quotes, unquoted keys, trailing commas, comments, and True/False/None.

Frequently asked questions

Is my data uploaded? No. Everything runs in your browser, so API keys and customer data never leave your device.

How large a file can it handle? Several megabytes is fine on a normal computer.

This tool runs in your browser. Nothing you enter is sent to Innovalogic.