{
  "slug": "html-table-extractor",
  "name": "gizza-ai/html-table-extractor",
  "version": "0.1.0",
  "title": "Extract Tables from HTML — CSV or JSON — gizza.ai",
  "description": "Paste HTML and pull out any <table> as clean CSV or JSON. Pick the table and output format. Runs in your browser, nothing is uploaded, free.",
  "tags": [
    "html table to csv",
    "extract table",
    "html to json",
    "scrape table",
    "table converter"
  ],
  "category": "text",
  "urls": {
    "page": "https://gizza.ai/tools/html-table-extractor/",
    "markdown": "https://gizza.ai/tools/html-table-extractor/index.md",
    "descriptor": "https://gizza.ai/tools/html-table-extractor/tool.json",
    "deep_link_example": "https://gizza.ai/tools/html-table-extractor/?html=Paste%20HTML%20containing%20a%20%3Ctable%3E%E2%80%A6&format=csv&table_index=0&header=true"
  },
  "cli": "gizza tool html-table-extractor \"Paste HTML containing a <table>…\"",
  "tool": {
    "description": "Extract a <table> from pasted HTML and output it as CSV or JSON. Set format='csv' (default) or 'json', table_index to pick which table (0-based, default 0), and header (default true: for JSON, emits an array of objects keyed by the header row; false emits an array of arrays). Cell whitespace is collapsed and CSV is properly escaped.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "format": {
          "default": "csv",
          "description": "Output format: csv (default) or json.",
          "enum": [
            "csv",
            "json"
          ],
          "type": "string"
        },
        "header": {
          "default": true,
          "description": "Treat the first row as a header. For JSON, true emits an array of objects keyed by header; false emits an array of arrays. Default true.",
          "type": "boolean"
        },
        "html": {
          "description": "The HTML containing one or more <table> elements.",
          "type": "string"
        },
        "table_index": {
          "description": "Which table to extract, 0-based (default 0 = the first table).",
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "html"
      ],
      "type": "object"
    }
  }
}