{
  "slug": "html-email-to-text",
  "name": "gizza-ai/html-email-to-text",
  "version": "0.1.0",
  "title": "HTML Email to Text — Convert HTML Email to Plain Text — gizza.ai",
  "description": "Convert HTML email to readable plain text: strip tags, keep paragraphs and lists, render links inline or as footnotes, and optionally wrap lines.",
  "tags": [
    "html email to text",
    "html to plain text",
    "email plain text version",
    "html email converter",
    "text alternative email",
    "strip html email"
  ],
  "category": "network",
  "urls": {
    "page": "https://gizza.ai/tools/html-email-to-text/",
    "markdown": "https://gizza.ai/tools/html-email-to-text/index.md",
    "descriptor": "https://gizza.ai/tools/html-email-to-text/tool.json",
    "deep_link_example": "https://gizza.ai/tools/html-email-to-text/?html=%3Ch1%3EWeekly%20update%3C%2Fh1%3E%3Cp%3ERead%20the%20%3Ca%20href%3D%22https%3A%2F%2Fexample.com%2Fpost%22%3Elatest%20post%3C%2Fa%3E.%3C%2Fp%3E&links=inline&wrap=72"
  },
  "cli": "gizza tool html-email-to-text '<h1>Weekly update</h1><p>Read the <a href=\"https://example.com/post\">latest post</a>.</p>'",
  "tool": {
    "description": "Convert an HTML email body into clean, readable plain text — tags stripped, entities decoded, paragraphs and lists preserved. Pass the HTML as `html`. Control hyperlinks with `links`: 'text' (link text only), 'inline' (text + URL in parentheses, the default), or 'footnote' (numbered links with a reference list at the bottom). Set `wrap` to a column count (e.g. 72) to hard-wrap lines for a plain-text email, or 0 to leave lines unwrapped.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "html": {
          "description": "The HTML email body to convert to plain text. Paste the full <html> document or just the <body> fragment.",
          "type": "string"
        },
        "links": {
          "default": "inline",
          "description": "How to render hyperlinks: 'text' keeps only the link text and drops the URL; 'inline' (default) writes the text followed by the URL in parentheses, e.g. 'click here (https://example.com)'; 'footnote' numbers each link like 'click here[1]' and lists the URLs in a '[1] https://example.com' reference block at the bottom.",
          "enum": [
            "text",
            "inline",
            "footnote"
          ],
          "type": "string"
        },
        "wrap": {
          "default": 0,
          "description": "Hard-wrap output lines to at most this many columns on word boundaries; 0 (default) disables wrapping. Use 72 for the classic plain-text-email width. Long words such as URLs are never split.",
          "maximum": 200,
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "html"
      ],
      "type": "object"
    }
  }
}