---
title: Convert HTML to Word API
slug: convert-html-to-docx
url: https://apyverse.com/apyhub/service/convert-html-to-docx
provider: ApyHub
categories: [File Conversion]
auth: api_key
---

# Convert HTML to Word API

Convert HTML files or public URLs into DOCX. Get a binary download or an S3 URL for exporting reports, pages, and invoices to Word.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `convert/html-file/doc-file` | What it does Converts an uploaded HTML file to a DOCX file and returns the generated document as a… | 120 |
| POST | `convert/html-file/doc-url` | What it does Converts an uploaded HTML file into a DOCX file and returns a URL where the converted… | 10 |
| POST | `convert/html-url/doc-file` | What it does Converts the HTML page at the given public URL into a DOCX file and returns the file a… | 120 |
| POST | `convert/html-url/doc-url` | What it does Converts a publicly accessible HTML page at the provided URL into a DOCX file and retu… | 10 |

## About

## What it does
HTML to DOCX converts HTML files or public HTML URLs into Word documents. Send a `.html` or `.htm` file, or pass a publicly accessible page URL, and get back either a DOCX download or a generated S3 URL.

Use the file upload endpoints when you already have HTML on your server, and use the URL endpoints when the source page is hosted elsewhere. The `/file/download` and `/url/download` routes return the converted document as binary content. The `/file/url` and `/url/url` routes return a JSON object with a `url` field pointing to the generated DOCX.

You can also set an `output` filename stem on the file-download route to control the exported document name. That makes HTML to DOCX useful for exporting rendered reports, article archives, invoices, or CMS pages into a format that can be reviewed and edited in Microsoft Word.

If your workflow needs a document version of web content without building your own renderer, HTML to DOCX gives you a direct conversion path from HTML input to DOCX output.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyverse.com/apyhub/service/convert-html-to-docx
