formatting
Popular
100% In-Browser Execution

JSON Formatter

A fast, in-browser JSON formatter that beautifies and minifies JSON strings. Features configurable indentation (2 spaces, 4 spaces, tabs), line and column error reporting, copy, and download capabilities.

Valid JSON (RFC 8259)
Indent:
Input:242 B (242 bytes)
Input JSON (Validated in Real-Time)json
13 lines•242 chars•242 B (242 bytes)
UTF-8 Encoded
Formatted / Validated Outputjson
0 lines•0 chars•0 B (0 bytes)
UTF-8 Encoded
Quick Usage Guide & Examples(Click to toggle reference)
How to Use
  1. Paste your raw, messy, or minified JSON string into the 'Raw JSON Input' editor panel.
  2. Select your preferred indentation formatting: 2 Spaces (default), 4 Spaces, or Tabs.
  3. Click 'Format / Beautify' to neatly indent the JSON structure with highlighted syntax.
  4. Click 'Minify JSON' if you need a compact payload with all unnecessary whitespace stripped.
  5. Use the 'Copy' button to copy the output or 'Download' to save the formatted result as a .json file.
Examples

Minified to 2-Space Beautified JSON

Input
{"user":{"id":101,"name":"Ada Lovelace","skills":["Math","Computing"]}}
Output
{
  "user": {
    "id": 101,
    "name": "Ada Lovelace",
    "skills": [
      "Math",
      "Computing"
    ]
  }
}

Nested Configuration Array

Input
[{"service":"auth","port":8080},{"service":"gateway","port":443}]
Output
[
  {
    "service": "auth",
    "port": 8080
  },
  {
    "service": "gateway",
    "port": 443
  }
]

Related Utilities

Discover other in-browser tools frequently used alongside this utility.

All tools