{
  "slug": "html-formatter",
  "name": "gizza-ai/html-formatter",
  "version": "0.1.0",
  "title": "HTML Formatter — pretty-print / beautify HTML — gizza.ai",
  "description": "Pretty-print and beautify HTML with consistent indentation, in your browser. Handles void elements, comments, and preserves pre/script/style. Nothing is uploaded.",
  "tags": [
    "html formatter",
    "html beautifier",
    "pretty print html",
    "format html",
    "indent html",
    "beautify html"
  ],
  "category": "developer",
  "urls": {
    "page": "https://gizza.ai/tools/html-formatter/",
    "markdown": "https://gizza.ai/tools/html-formatter/index.md",
    "descriptor": "https://gizza.ai/tools/html-formatter/tool.json",
    "deep_link_example": "https://gizza.ai/tools/html-formatter/?html=%3Cdiv%3E%3Cp%3EPaste%20your%20HTML%20here%3C%2Fp%3E%3C%2Fdiv%3E&indent=2"
  },
  "cli": "gizza tool html-formatter \"<div><p>Paste your HTML here</p></div>\"",
  "tool": {
    "description": "Pretty-print (beautify) HTML with consistent indentation — one element per line, nested children indented. Handles void elements (br/img/etc.), self-closing tags, comments and doctype, and quoted attributes, and preserves the verbatim contents of pre/textarea/script/style. indent sets spaces per level (0-8, default 2). Runs locally.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "html": {
          "description": "The HTML to pretty-print.",
          "type": "string"
        },
        "indent": {
          "default": 2,
          "description": "Spaces of indentation per nesting level (0-8, default 2).",
          "maximum": 8,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "html"
      ],
      "type": "object"
    }
  }
}