Skip to main content
>_devtools

JSON Formatter & Validator

Format, minify, validate, and explore a JSON document with a collapsible tree and raw text output.

What this does

Paste a JSON document to format it with consistent indentation, minify it to one line, or validate it without changing the input. Switch to Tree to inspect nested values.

Example

Input:
{"name":"Ada","active":true}

Formatted output:
{
  "name": "Ada",
  "active": true
}

Limits and behavior

  • Input must be valid JSON before formatting or minifying.
  • Formatting supports two spaces, four spaces, or tabs; key sorting is optional.