Tool

JSON Formatter

Pretty-print, minify and validate JSON — errors show the exact line and column

Input JSON
Formatted JSON

How to use

  1. Paste JSON into the input pane — the result updates as you type.
  2. Pick Format (pretty print) or Minify, and an indent of 2 spaces, 4 spaces, or tabs.
  3. Optionally turn on Sort keys to alphabetize object keys recursively for stable diffs.
  4. Copy or download the result. Invalid input shows the exact line and column of the error.

About this tool

Paste, format, copy — the daily loop of anyone touching an API. This formatter pretty-prints with your preferred indent, minifies for shipping, optionally sorts keys for stable diffs, and pinpoints syntax errors by line and column instead of a vague “unexpected token”. It also reports document stats (value count, depth, size change) so you can sanity-check a payload at a glance. Everything runs locally, so multi-megabyte files stay on your machine.