HTML-to-WebP API for rendering HTML and CSS as WebP image output

Use Nutrient DWS Processor API to render HTML pages and CSS templates as WebP image output for web-optimized screenshots and previews. Start free with 50 monthly credits — no credit card, watermarked output — and move to production with credit-based pricing.

Web-optimized HTML rendering

Render HTML and CSS into WebP images for lightweight, web-optimized screenshots and thumbnail 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 HTML file to a WebP image.


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.webp to see the output.
curl -X POST https://api.nutrient.io/build \
-H "Authorization: Bearer your_api_key_here" \
-o image.webp \
--fail \
-F document=@index.html \
-F instructions='{
"parts": [
{
"html": "document"
}
],
"output": {
"type": "image",
"format": "webp",
"dpi": 500
}
}'

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

SOC 2 Type 2 audited

Nutrient’s infrastructure is SOC 2 Type 2 audited and GDPR-compliant. See our privacy policy and security documentation for details on data handling.

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

How do I convert HTML to WebP?

Send your HTML markup or a page URL to the HTML-to-WebP API, and it renders the content as a WebP image. See the getting started guide to make your first request.

Can I convert HTML to other image formats?

Yes. Use the HTML-to-image API to render HTML as JPG, PNG, or TIFF in addition to WebP.

Can I render HTML to PDF instead of an image?

Yes. Use the HTML-to-PDF API when you need a document rather than an image.

Which languages and tools are supported?

Call the API over REST or HTTP and integrate it with Java, C#, JavaScript, Python, and PHP, or start in Postman. See supported languages.

How is the HTML-to-WebP API priced?

It uses the credit-based DWS Processor pricing, with a free tier for evaluation. See Processor API pricing.

Ready to try it?

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