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

# Convert HTML to Word API

Convert a public HTML URL or uploaded .html/.htm file into DOCX. Return a downloadable file or an S3 URL for Word document workflows.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| 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… | 120 |
| POST | `/convert/html-file/doc-file` | What it does Converts an uploaded HTML file into a DOCX file and returns the generated document as… | 120 |
| POST | `/convert/html-file/doc-url` | What it does Converts an uploaded HTML file into a DOCX file and returns a JSON object containing t… | 120 |
| POST | `/convert/html-url/doc-file` | What it does Downloads an HTML document from a publicly accessible URL and converts it to a DOCX fi… | 120 |

## About

## What it does
HTML to DOCX Converter turns an HTML page or file into a downloadable .docx document. Send a public HTML URL or upload an .html/.htm file, and get back either a DOCX file or an S3 URL to the converted document.

Use the URL endpoints when your content already lives online, or the file endpoints when you need to convert an uploaded HTML asset. The output options cover two common workflows: stream the DOCX directly to the client, or receive a hosted URL that you can store, forward, or process later.

This is a good fit for document generation pipelines, report export flows, and teams that need to preserve HTML content in Word format for sharing or editing. If you're building a CMS, invoice builder, or content publishing workflow, you can convert rendered HTML into a format that business users can open in Microsoft Word without manual reformatting.

## Usage

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