{
  "slug": "html-minifier",
  "name": "gizza-ai/html-minifier",
  "version": "0.1.0",
  "title": "HTML Minifier — collapse whitespace & strip comments — gizza.ai",
  "description": "Minify HTML by collapsing whitespace and removing comments, in your browser. Preserves pre/script/style and significant inline spacing. Nothing is uploaded.",
  "tags": [
    "html minifier",
    "minify html",
    "compress html",
    "remove html comments",
    "collapse whitespace"
  ],
  "category": "developer",
  "urls": {
    "page": "https://gizza.ai/tools/html-minifier/",
    "markdown": "https://gizza.ai/tools/html-minifier/index.md",
    "descriptor": "https://gizza.ai/tools/html-minifier/tool.json",
    "deep_link_example": "https://gizza.ai/tools/html-minifier/?html=%3Cdiv%3E%0A%20%20%3Cp%3EPaste%20your%20HTML%20here%3C%2Fp%3E%0A%3C%2Fdiv%3E&remove_comments=true"
  },
  "cli": "gizza tool html-minifier \"<div>\n  <p>Paste your HTML here</p>\n</div>\"",
  "tool": {
    "description": "Minify HTML: collapse indentation/whitespace between tags, normalize whitespace inside tags, and (by default) remove comments. Significant inline spacing is preserved, and the verbatim contents of pre/textarea/script/style are kept intact. Set remove_comments=false to keep comments. Runs locally.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "html": {
          "description": "The HTML to minify.",
          "type": "string"
        },
        "remove_comments": {
          "default": true,
          "description": "Remove <!-- … --> comments (default true).",
          "type": "boolean"
        }
      },
      "required": [
        "html"
      ],
      "type": "object"
    }
  }
}