← utilities

JSON Formatter

Format, validate, and minify JSON instantly in your browser.

Output
Pretty-print or minify to see output
Tree view

Paste JSON, then pretty-print or minify.

How to use it

  1. Paste JSON, or tap Sample.
  2. Pick 2 spaces, 4 spaces, or Tab.
  3. If an error shows, fix that line, then format or minify.
  4. Copy or download the result. Open Tree view to explore it.

Common uses

Read a messy API reply. Find the error in a broken JSON file.

Privacy

Your text stays in this browser. Nothing is uploaded. Refresh and it's gone. We do not see it.