---
name: word2md
description: Convert Microsoft Word (.docx, .doc), Google Docs, PDFs, Office files, and images into clean Markdown (.md) using Word2MD's CLI (npx word2md-cli), v1 REST API (https://www.word2md.net/api/v1/convert), or browser-local web converter.
---

# Word2MD Agent Skill

Word2MD (`https://www.word2md.net`) provides three ways for AI agents, developers, and documentation teams to convert Word (`.docx` / `.doc`), Google Docs, and 28+ file formats into clean, structured Markdown (`.md`).

## 1. Run via CLI (`npx word2md-cli`) — Best for Local `.docx` Files

Convert a single `.docx` file or batch-convert a folder directly from Node.js without uploading files:

```bash
# Convert a single Word document to Markdown
npx word2md-cli input.docx

# Package & docs
# npm: https://www.npmjs.com/package/word2md-cli
# GitHub: https://github.com/littleben/word2md-cli
```

## 2. Call the Word2MD v1 REST API — Best for Cloud Workflows & 28+ Formats

Create an API key at `https://www.word2md.net/api-keys` (Free tier includes **50 conversions per UTC day**; max 50 MB per file).

Supported extensions: `.docx`, `.doc`, `.pdf`, `.pptx`, `.ppt`, `.xlsx`, `.xls`, `.csv`, `.tsv`, `.html`, `.htm`, `.xml`, `.json`, `.txt`, `.md`, `.jpg`, `.jpeg`, `.png`, `.gif`, `.webp`, `.bmp`, `.tif`, `.tiff`, `.mp3`, `.wav`, `.mp4`, `.mov`, `.avi`, `.zip`.

### Convert a Local File (`multipart/form-data`)

```bash
curl -X POST https://www.word2md.net/api/v1/convert \
  -H "Authorization: Bearer $WORD2MD_API_KEY" \
  -F "file=@./document.docx" \
  -F "output_format=markdown"
```

### Convert a Remote HTTPS File URL (`application/json`)

```bash
curl -X POST https://www.word2md.net/api/v1/convert \
  -H "Authorization: Bearer $WORD2MD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "file_url": "https://files.example.com/spec.docx",
    "filename": "spec.docx",
    "output_format": "markdown"
  }'
```

### Inspect Capabilities & Daily Quota

```bash
# Public capability discovery (no auth required)
curl -s https://www.word2md.net/api/v1/convert

# Check remaining daily quota & credits
curl -s https://www.word2md.net/api/v1/usage \
  -H "Authorization: Bearer $WORD2MD_API_KEY"
```

### Sample JSON Response

```json
{
  "success": true,
  "object": "conversion",
  "content": "# Launch Checklist\n\n| Task | Status |\n| --- | --- |\n| Draft release notes | Done |",
  "format": "markdown",
  "filename": "spec.docx",
  "credits_charged": 0,
  "usage": { "tier": "free", "used": 1, "daily": 50, "remaining": 49 }
}
```

## 3. Browser-Local Web Workflows

- **Standard Word (`.docx` / `.doc`) & Google Docs → `.md`**: `https://www.word2md.net` — 100% client-side in browser memory, free, no sign-up, up to 100 files per batch. (For Google Docs: **File → Download → Microsoft Word (.docx)**, then drop into Word2MD.)
- **Word with Embedded Screenshots / Images (OCR)**: `https://www.word2md.net/convert-with-images` — extracts text from screenshots inside `.docx` files and inserts it inline into the Markdown output.
- **PDF to Markdown Sister Tool**: `https://www.pdf2md.net` — dedicated browser-local & OCR PDF-to-Markdown converter.

## 4. Reference Links

- LLM Index: `https://www.word2md.net/llms.txt`
- Full API Docs: `https://www.word2md.net/api-docs`
- Web Converter: `https://www.word2md.net`
- Image OCR Converter: `https://www.word2md.net/convert-with-images`
