JSON Formatter & Validator

Format, minify and validate JSON, with the line and column of any error, sorted keys and a tree view.

Output
Indent
View

How to use

  1. Paste JSON or open a .json file.
  2. Press Format, Minify or Sort keys; choose 2 spaces, 4 spaces or tabs.
  3. If the JSON is invalid, read the line and column and fix that spot.
  4. Copy the result or download it as a .json file. Switch to Tree to browse it.

Privacy

Runs in your browser. Nothing is uploaded.

Text and files you open stay on this device; closing the tab clears them. Inputs are limited to 5 MB so the page stays responsive.