Blog post

Convert HTML to DOCX/XLSX/PPTX with Nutrient Document Web Services API on Zapier

This tutorial shows you how to automatically convert HTML files into editable Office formats like DOCX, XLSX, or PPTX using the Nutrient Document Web Services API in Zapier. This is great for transforming structured HTML data into styled reports, spreadsheets, or presentations.

Illustration: Convert HTML to DOCX/XLSX/PPTX with Nutrient Document Web Services API on Zapier

What is Zapier?

Zapier is an automation platform that connects your favorite apps and services with no code required. You can build “Zaps” to automate repetitive tasks by setting up triggers and actions between apps like Google Drive, Slack, Gmail, and more.

In this tutorial, you’ll learn how to use Zapier to automatically convert HTML files into editable Office formats like DOCX, XLSX, or PPTX using the Nutrient API.

What is the Nutrient API?

Nutrient Document Web Services API is a powerful platform for document automation. With your free account, you get 100 credits, which you can use to perform various document operations. Each tool (e.g. conversion, signing, flattening) consumes a different amount of credits depending on complexity.

Nutrient offers more than 30 tools with the ability to:

  • Convert images and documents to PDF

  • Merge, split, or reorder pages

  • Add digital signatures, watermarks, or annotations

  • Run OCR, redact, flatten, and more

All you need is an API key from a free account to get started. You can chain these tools together in Zapier to build powerful, automated PDF workflows.

What you’ll need

  • A Zapier account (a pro plan is necessary for multi-step Zaps)

  • A Google Drive account

  • A public HTML file stored in Google Drive

  • A Nutrient Document Web Services API key — sign up here

Step 1 — Trigger a new file in a Google Drive folder

  1. Select Google Drive as the trigger app.

Google Drive app selected in Zapier

  1. Choose the New File in Folder trigger event.

New File in Folder selected as trigger event

  1. Connect your Google Drive account.

  2. Choose your drive and a folder where HTML files will be uploaded.

Configure folder for HTML uploads from Google Drive

  1. Test the trigger by uploading a sample HTML file. You can use our sample file for testing this step.

Successful trigger test with HTML file

Step 2 — Convert HTML to DOCX/XLSX/PPTX action (Nutrient API)

  1. Select Nutrient Document Web Services API as the action app.

Nutrient API selected in action step

  1. Choose the Convert HTML to Office action.

Select Convert HTML to Office from action menu

  1. Connect your Nutrient API account by entering your API key. You can find your API key in the Nutrient dashboard.

API key pasted to connect Nutrient account

  1. Configure the fields:

  • HTML file — Use the file output from the Google Drive trigger.

  • Output Format — Choose .docx, .xlsx, or .pptx.

  • Output File Name — Optional — e.g. converted-report.docx.

Configure HTML file input and output format

  1. Test the step to confirm the Office file is generated.

    Test output from Nutrient conversion step

Step 3 — Upload the Office file to Google Drive

  1. Now, add another step by selecting Google Drive as the app and Upload File as the action event. Connect your Google Drive account if needed.

Google Drive Upload File selected as final step

  1. Map the converted output from the Nutrient step and select your output folder.

Mapped Office file from Nutrient output

  1. Test the upload step to confirm the Office file is saved.

Test confirms Office file uploaded successfully

Conclusion

You’ve successfully created a Zap that converts HTML files into DOCX, XLSX, or PPTX documents using the Nutrient API and Zapier. This setup is ideal for creating structured, styled Office files from automated HTML exports. You can expand this Zap to email the final file, move it to another storage service, or send a Slack notification.

Author
Hulya Masharipov
Hulya Masharipov Technical Writer

Hulya is a frontend web developer and technical writer at Nutrient who enjoys creating responsive, scalable, and maintainable web experiences. She’s passionate about open source, web accessibility, cybersecurity privacy, and blockchain.

Free trial Ready to get started?
Free trial