---
title: "Convert HTML emails and web fragments into clean plain text for downstream agents"
description: "Use html-to-text when an agent receives raw HTML from inboxes, support systems, or scraped pages and needs readable plain text before classification, summarization, or indexing. The skill is deliberately bounded to deterministic HTML-to-text conversion, not crawling or summarization."
verification: "security_reviewed"
source: "https://www.npmjs.com/package/html-to-text"
author: "Malte Legenhausen"
category:
  - "Data Extraction & Transformation"
framework:
  - "Multi-Framework"
tool_ecosystem:
  npm_package: "html-to-text"
  npm_weekly_downloads: 8213869
---

# Convert HTML emails and web fragments into clean plain text for downstream agents

Use html-to-text when an agent receives raw HTML from inboxes, support systems, or scraped pages and needs readable plain text before classification, summarization, or indexing. The skill is deliberately bounded to deterministic HTML-to-text conversion, not crawling or summarization.

## Prerequisites

Node.js, npm

## Installation

Choose whichever fits your setup:

1. Copy this skill folder into your local skills directory.
2. Clone the repo and symlink or copy the skill into your agent workspace.
3. Add the repo as a git submodule if you manage shared skills centrally.
4. Install it through your internal provisioning or packaging workflow.
5. Download the folder directly from GitHub and place it in your skills collection.

Install command or upstream instructions:

```
npm install html-to-text
```

## Documentation

- https://github.com/html-to-text/node-html-to-text#readme

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/convert-html-emails-and-web-fragments-into-clean-plain-text-for-downstream-agents/)
