JSON Formatter

Format, validate and minify JSON

How to Use

  1. Paste your JSON data into the input textarea
  2. Choose your indentation preference (2 spaces, 4 spaces, or tab)
  3. Optionally enable "Sort keys alphabetically"
  4. Click "Format" to format, "Minify" to compress, or "Validate" to check validity
  5. Copy the result or continue editing

Features

  • Format JSON with custom indentation
  • Minify JSON (remove all whitespace)
  • Validate JSON syntax
  • Sort object keys alphabetically
  • Real-time error detection
  • JSON statistics (size, type, depth, keys/items count)
  • 100% client-side processing