G
Great Online Apps

JSON Formatter

Guide
Code Tree Inspect
Input JSON Up to 100,000 characters.
Output

About the JSON Formatter

Paste JSON to validate it and pretty-print it instantly. Errors are reported with their line and column, and you can minify, sort keys, repair common mistakes, browse the document as a tree or look up a value by path. It is made for developers debugging API responses and config files.

How to use it

  1. 1 Paste your JSON into the Input JSON pane, or click Example to load a sample.
  2. 2 Read the status bar: valid JSON is formatted automatically, and invalid JSON shows the line and column of the error.
  3. 3 Use Format, Minify, Sort keys or Repair, and set Indent to 2 spaces, 4 spaces or Tab.
  4. 4 Switch to Tree or Inspect to explore the structure or run a path query such as users[0].name.
  5. 5 Copy the output or Download it as formatted.json.
Read the full JSON Formatter guide

Frequently asked questions

G
Great Online Apps
Toggle sidebar