JSON Formatter & Validator
Format, validate and minify JSON with exact error locations, a tree view and one-click repair.
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
- Paste your JSON into the Input box, or drop a file onto it.
- Press Format to indent it (2 spaces, 4 spaces or tabs), or Minify to remove all whitespace.
- Switch the output to Tree to fold and unfold large objects.
- Tick Sort keys to order object keys alphabetically, which makes two files easier to compare.
- 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.