JSON Format

Format, validate, minify.

Paste JSON and get it pretty-printed instantly — 2 spaces, 4 spaces, tabs, or minified. Invalid input is pinpointed to the exact line and column. Optional key sorting for clean diffs.

Output
{
  "name": "Crescovate",
  "founded": 2024,
  "live": true,
  "tools": [
    "og-forge",
    "regex-lab",
    {
      "slug": "json-format",
      "featured": false
    }
  ],
  "contact": {
    "email": "ali@stushglobal.com",
    "address": null
  }
}
13 nodes·253 bytes·17 lines

Format or minify

Pretty-print with 2 spaces, 4 spaces, or tabs — or collapse to a single minified line. Output updates the instant you type.

Errors, pinpointed

Invalid JSON gets the exact line and column of the problem, so you fix it in seconds instead of squinting.

Sort keys for clean diffs

Optionally sort every object key alphabetically — the trick for turning two messy payloads into a readable git diff. Runs entirely in your browser.