HTML-to-DOCX API for converting HTML and CSS to Word document output

Use Nutrient DWS Processor API to convert HTML pages and CSS templates into DOCX Word document output. Start a free trial, test with Postman, and move to production with credit-based pricing.

HTML-to-Word conversion

Convert HTML and CSS into DOCX Word documents for editing, collaboration, and distribution workflows.

API-first integration

Use REST, Postman, curl, JavaScript, Python, Java, C#, PHP, or HTTP to automate conversion inside larger document processing pipelines.

Part of the DWS Processor platform

This conversion is one action in the DWS Processor API. Combine it with other conversions, OCR, extraction, and editing in a single request.

Used by Lufthansa, Disney, Autodesk, UBS, Dropbox, IBM
Lufthansa
Disney
Autodesk
UBS
Dropbox
IBM

Try it out

This example will convert your uploaded HTML file to a DOCX document.


Try it out in three steps

  1. Add an HTML file named index.html to your project folder.
  2. Run the code from the same folder.
  3. Open result.docx to see the output.
curl -X POST https://api.nutrient.io/build \
-H "Authorization: Bearer your_api_key_here" \
-o result.docx \
--fail \
-F document=@index.html \
-F instructions='{
"parts": [
{
"html": "document"
}
],
"output": {
"type": "docx"
}
}'

Start now

Create an account to access your API key and start with 50 free credits per month

Start building with DWS Processor API in minutes — no payment information required.

Already have an account? Sign in →


Security is our top priority

No document storage

No input or resulting documents are stored on our infrastructure. All files are deleted as soon as a request finishes. Alternatively, check out our self-hosted product.

HTTPS encryption

All communication between your application and Nutrient is done via HTTPS to ensure your data is encrypted when it’s sent to us.

Safe payment processing

All payments are handled by Paddle. Nutrient DWS Processor API never has direct access to any of your payment data.


Frequently asked questions

What is an HTML-to-DOCX API?

An HTML-to-DOCX API converts HTML content into editable Word (DOCX) documents with a single API call. With Nutrient’s DWS Processor API, you can generate Word files from HTML without installing Microsoft Office.

How do I convert HTML to Word programmatically?

Send your HTML markup or a hosted page URL to the Nutrient DWS Processor API, and it returns a .docx file. You can call it via REST, Postman, curl, JavaScript, Python, Java, C#, or PHP.

Is the Word output editable?

Yes. The API produces a standard, editable DOCX file, so recipients can open and modify it in Microsoft Word, Google Docs, or any compatible editor.

Which programming languages does the API support?

You can call the API from any language that can make HTTP requests. We provide quick start examples for JavaScript, Python, Java, C# (.NET), and PHP, plus REST and a Postman collection.

Is there a free HTML-to-DOCX API?

Yes. You can start for free — sign up to receive processing credits and try the HTML-to-DOCX API before choosing a Processor API plan.

Ready to try it?

Create an account to get your DWS Processor API key and start making API calls.