{
  "slug": "code-formatter",
  "name": "gizza-ai/code-formatter",
  "version": "0.1.0",
  "title": "Code Formatter — Beautify HTML, CSS, JavaScript & JSON — gizza.ai",
  "description": "Beautify and re-indent minified or messy HTML, CSS, JavaScript, or JSON. Auto-detect the language, choose spaces or tabs, and format locally in your browser.",
  "tags": [
    "code formatter",
    "code beautifier",
    "html formatter",
    "css formatter",
    "javascript formatter",
    "json formatter",
    "json pretty print",
    "js beautifier",
    "re-indent code"
  ],
  "category": "utilities",
  "urls": {
    "page": "https://gizza.ai/tools/code-formatter/",
    "markdown": "https://gizza.ai/tools/code-formatter/index.md",
    "descriptor": "https://gizza.ai/tools/code-formatter/tool.json",
    "deep_link_example": "https://gizza.ai/tools/code-formatter/?code=Paste%20HTML%2C%20CSS%2C%20JavaScript%2C%20or%20JSON%E2%80%A6&language=auto&indent=2&indent_char=space"
  },
  "cli": "gizza tool code-formatter \"Paste HTML, CSS, JavaScript, or JSON…\"",
  "tool": {
    "description": "Beautify and re-indent an HTML, CSS, JavaScript or JSON snippet. Set language to auto (detect), html, css, javascript or json; indent is spaces per nesting level (1-8, default 2), or set indent_char to 'tab' for tabs. HTML/CSS/JS are only re-whitespaced — nothing is renamed, reordered or dropped; JSON is validated and re-serialized with key order preserved. Runs locally.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "description": "The HTML, CSS, JavaScript or JSON snippet to beautify and re-indent (minified or messy input is fine).",
          "type": "string"
        },
        "indent": {
          "default": 2,
          "description": "Spaces of indentation per nesting level (1-8). Ignored when indent_char is 'tab'. Default 2.",
          "maximum": 8,
          "minimum": 1,
          "type": "integer"
        },
        "indent_char": {
          "default": "space",
          "description": "Indent with spaces or a tab character per level. Default space.",
          "enum": [
            "space",
            "tab"
          ],
          "type": "string"
        },
        "language": {
          "default": "auto",
          "description": "Which formatter to use. 'auto' detects the language from the snippet; pick one explicitly if auto-detect guesses wrong. Default auto.",
          "enum": [
            "auto",
            "html",
            "css",
            "javascript",
            "json"
          ],
          "type": "string"
        }
      },
      "required": [
        "code"
      ],
      "type": "object"
    }
  }
}