DevKitNow

Tools / Data

JSON Minifier

Validate JSON and write it back as a single line with no insignificant whitespace. The result is not gzip, and comments are not stripped.

Example: Config object

{
  "region": "us-east-1",
  "retries": 2,
  "flags": ["audit", "cache"]
}

A common error

A comment or a trailing comma makes the whole document invalid. The minifier reports that error and does not emit a shortened copy.

The editor runs in the browser after this page loads. Nothing you paste is uploaded unless you save a Pro project.