html2pdf.app - HTML to PDF conversion API

HTML to PDF conversion API

Most realistic, high-quality HTML to PDF conversion API service for developers!

Save your time and effort, by dedicating a PDF conversion task to us.

Try our HTML to PDF online converter

Enter a public webpage URL and generate a PDF without an API key.

  • 1.7M+
    Conversions per month
  • 1.5K+
    Trusted by developers
  • 1.8s
    Average processing time
  • 99.9%
    Uptime reliability

Everything you need to convert HTML to PDF

A fast, developer-friendly API with everything you need for high-quality PDF generation.

Browser-based HTML to PDF Engine

Chromium-based rendering with support for modern HTML, CSS, and JavaScript.

Templates

Ready-made invoice, receipt, CV and report templates you can drop into the API.

Asynchronous request

Generate PDFs in the background and receive completed documents at your callback URL.

Advanced Options

Control page size, orientation, margins, media styles, headers, footers, and more.

Encryption & Passwords

Protect PDFs with a password and control permissions using AES encryption.

Private & Secure

Generated PDFs are processed temporarily and are not permanently stored.

Free tools included

HTML to PDF Online Converter

Convert a URL or raw HTML to PDF right in your browser — no code required.

Playground

Test the API in your browser and get ready-to-use code generated automatically from your settings.

WordPress PDF Plugin

Convert any WordPress page or post to a PDF file using a simple shortcode.

Pricing

Start with a Free plan and get 100 credits per month and up to 1MB per file!

Free
$0 / month

100 credits / month

Startup
$9 / month

1000 credits / month

Standard
$25 / month

5000 credits / month

Scale
$39 / month

10000 credits / month

Each 5MB chunk of the generated document is equal to 1 credit, so for example, 15MB generated document will cost 3 credits.

Start quickly with code samples

Choose a language to see a quick HTML-to-PDF API example.

three dot
curl -X POST https://api.html2pdf.app/v1/generate \
-H 'Content-Type: application/json' \
-H 'X-API-Key: <your-api-key>' \
-d '{
  "html": "https://www.example.com",
  "landscape": true,
  "format": "A4"
}' --output document.pdf

What our clients say