JSON Formatter & Validator

Paste JSON to format, minify, validate, and explore. Switch to tree view and click any node to copy its JSONPath expression.

Tip: Ctrl+Enter to format

About This Tool

How to Use
  1. Paste your JSON into the input area
  2. Click Format to pretty-print or Minify to compress (optionally sort keys)
  3. Use Repair to fix comments, single quotes, unquoted keys and trailing commas
  4. Switch to Tree View and click any node to copy its JSONPath; Download saves a .json file
Common Use Cases
  • Debugging API responses by formatting raw JSON
  • Validating JSON configuration files before deployment
  • Finding specific values in deeply nested data structures
  • Minifying JSON to reduce payload size
Tips & Tricks
  • Use Ctrl+Enter to format quickly
  • The tree view collapses deep nodes by default — click to expand
  • JSONPath works with JSONPath tools and libraries; jq uses a different syntax (.a[0] instead of $.a[0])
  • Integers above 2^53 lose precision when parsed; the tool warns you, so keep large IDs as strings

Related Tools