Public APIs
Html2PDF favicon

Html2PDF

Documents & Productivity

HTML/URL to PDF.

Html2PDF's website screenshot

About Html2PDF

Html2PDF is an API service for converting HTML content or public webpage URLs into PDF documents using a Chromium-based rendering engine, supporting modern HTML, CSS, and JavaScript. It offers asynchronous requests with callback URLs, customizable output settings such as page size, orientation, margins, media styles, and headers/footers, password protection with AES encryption, and ready-made templates for documents like invoices, receipts, CVs, and reports. Generated PDFs are processed temporarily and not permanently stored.

The service is aimed at developers who need to integrate PDF generation into their applications, with code examples provided for cURL, PHP, Node.js, Python, Ruby, Java, C#/.NET, and Go. It also provides a browser-based HTML to PDF online converter that requires no code or API key, an API playground for testing requests and generating code, and a WordPress plugin that converts pages or posts to PDF via a shortcode.

Pricing includes a Free plan with 100 credits per month and a 1MB file size limit, and paid plans (Startup, Standard, Scale) ranging from $9 to $39 per month with higher credit allowances, more parallel conversions, and unlimited PDF size. Credits are consumed based on file size, with each 5MB chunk of a generated document counting as one credit.

Key features

  • Chromium-based rendering for modern HTML, CSS, and JavaScript
  • Asynchronous PDF generation with callback URL delivery
  • Ready-made templates for invoices, receipts, CVs, and reports
  • Password protection and AES encryption for generated PDFs
  • Advanced control over page size, orientation, margins, headers, and footers
  • WordPress plugin to convert pages or posts to PDF via shortcode

Frequently asked questions

Is there a free tier?

Yes, the Free plan includes 100 credits per month and PDFs up to 1MB in size.

How is usage priced?

Paid plans range from $9 to $39 per month for 1000 to 10000 credits, and each 5MB chunk of a generated document costs 1 credit.

What languages have code examples?

Code examples are provided for cURL, PHP, Node.js, Python, Ruby, Java, C#/.NET, and Go.

Are the generated PDFs stored?

No, generated PDFs are processed temporarily and are not permanently stored.

What rendering engine powers the conversion?

It uses a Chromium-based rendering engine with support for modern HTML, CSS, and JavaScript.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product