{
  "slug": "gzip-size-estimator",
  "name": "gizza-ai/gzip-size-estimator",
  "version": "0.1.0",
  "title": "Gzip & Brotli Size Estimator — Measure Compressed Transfer Size — gizza.ai",
  "description": "See the gzip and brotli compressed size of any code or text — raw bytes, bytes saved, percent reduction and ratio. Free, private, runs in your browser.",
  "tags": [
    "gzip size",
    "brotli size",
    "compressed size",
    "transfer size",
    "bundle size",
    "gzip estimator",
    "compression ratio",
    "minify",
    "page weight",
    "content-encoding"
  ],
  "category": "developer",
  "urls": {
    "page": "https://gizza.ai/tools/gzip-size-estimator/",
    "markdown": "https://gizza.ai/tools/gzip-size-estimator/index.md",
    "descriptor": "https://gizza.ai/tools/gzip-size-estimator/tool.json",
    "deep_link_example": "https://gizza.ai/tools/gzip-size-estimator/?input=Paste%20your%20JS%2C%20CSS%2C%20JSON%2C%20or%20any%20text%20here%E2%80%A6&level=6"
  },
  "cli": "gizza tool gzip-size-estimator \"Paste your JS, CSS, JSON, or any text here…\"",
  "tool": {
    "description": "Report the raw, gzipped, and brotli byte size of pasted code or text to estimate its over-the-wire transfer weight (e.g. a JS/CSS bundle served with gzip or brotli Content-Encoding). Returns the raw size, the gzipped size, bytes saved, the percent reduction, the compression ratio, and a brotli (Content-Encoding: br) comparison. Set level (0-9, default 6) to match a server's gzip level.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "input": {
          "description": "The code or text to measure. Its UTF-8 bytes are gzipped to estimate the transfer size.",
          "type": "string"
        },
        "level": {
          "default": 6,
          "description": "gzip deflate level, 0 (none) to 9 (best). Default 6 matches the gzip/zlib default; servers usually use 6. Higher levels shrink a bit more at more CPU.",
          "maximum": 9,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "input"
      ],
      "type": "object"
    }
  }
}