JSON Formatter

Format, minify and validate JSON with syntax highlighting

Docs

Auto fix
Valid · 12 lines · 0.0 ms
Input135 chars
Output
Valid · 12 lines · 0.0 ms
123456789101112
{
  "orderId": "A1B2C3",
  "amount": 299,
  "paid": true,
  "channel": "miniapp",
  "items": [
    {
      "sku": "X-001",
      "qty": 2
    }
  ]
}

使用说明

JSON formatter, minifier and validator with auto-fix for common mistakes.

Beautify

Pretty-print compact or messy JSON with indentation for easy reading and debugging.

Minify

Strip all whitespace and line breaks to produce single-line JSON for transfer or embedding.

Validate

Check whether the JSON is valid and report the error line with a reason.

Auto-fix

When enabled, automatically adds missing quotes, removes trailing commas, and corrects common typos such as Chinese quotation marks.

Note

Very large JSON (tens of MB or more) may cause the browser to lag; process it in chunks or tidy it locally first.