# DOCX to Markdown Converter

> DOCX to Markdown Converter is a paid API for AI agents from x402.freeq.one, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-10).

Converts a DOCX (Word) document to clean, LLM-ready Markdown, preserving headings, lists, tables, and formatting.

## Facts

- Endpoint: POST https://x402.freeq.one/tools/docx_to_markdown?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/docx-to-markdown-converter-15868a67
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UUyAfcSvd--0F-5WvS8lh

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability docx-to-markdown-converter-15868a67 -d '<json body>'
```

Example prompt: Can you convert this Word document to Markdown for me? Here's the URL: https://x402.freeq.one/samples/contract.docx — keep it under 50000 characters.

## When to prefer this

Choose this endpoint when you need to convert a Word (.docx) file to structured Markdown that retains document formatting like headings, tables, and lists — especially for feeding into LLMs or RAG pipelines. Prefer this over HTML-to-Markdown or plain text extraction when your source is a DOCX file specifically. Use the URL input for publicly accessible files; use base64 for local or private documents.

## Known failure modes

- Invalid or inaccessible URL returns an error
- Base64 payload too large (>28MB) rejected
- Non-DOCX file format causes parse failure
- Corrupt DOCX file may return incomplete Markdown or error
- Network timeout fetching remote URL
- Payment not fulfilled results in 402 response

## How this service works

DOCX to Markdown: Convert a DOCX (Word) document to clean, LLM-ready Markdown. Provide a direct URL or base64-encoded file bytes. Preserves headings, lists, tables and formatting. Works for contracts, resumes, reports and letters. Pay per call in USDC on Base via x402 — POST https://x402.freeq.one/tools/docx_to_markdown.

## Output

Returns a JSON object with a 'result' field containing the full Markdown representation of the DOCX document, including preserved headings, bullet lists, numbered lists, tables, and inline formatting. May be truncated to max_length if specified.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "example": "https://x402.freeq.one/samples/contract.docx",
   "description": "Direct URL to the DOCX file"
  },
  "file_b64": {
   "type": "string",
   "maxLength": 28000000,
   "description": "Base64-encoded DOCX bytes (alternative to url)"
  },
  "max_length": {
   "type": "integer",
   "example": 100000,
   "description": "Truncate output to N characters"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {}
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/docx-to-markdown-converter-15868a67/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.freeq.one](https://www.zero.xyz/host/x402.freeq.one/llms.txt)
