The Best HTML to PDF Converters and Their Prices

HTML to PDF converters are best for print in Prince and DocRaptor. Puppeteer and Gotenberg are free if you host them. Api2Pdf is the cheapest API.

Laptop showing code beside printed pages made with an HTML to PDF converter
Photo: Pexels

The best HTML to PDF converter for print-quality documents is Prince, or DocRaptor if you want Prince as a hosted API. For free, code-first work, Puppeteer and Playwright turn any page into a PDF with headless Chrome. Gotenberg wraps that same engine in a Docker API you host yourself.

Among the hosted APIs, the pricing model is the big split. Api2Pdf charges by usage, so 10,000 small PDFs cost about $6 a month, while PDFShift sells credit bundles from $9 a month. To save a single web page you need no code at all, since iLovePDF and Adobe Acrobat both convert pages in a few clicks.

wkhtmltopdf, an old favourite, is off the list for new work. Its repository was archived on January 2, 2023, and is now read-only.

HTML to PDF Converters Compared

The engine column decides how your CSS will look, so read that one first.

ToolEngineHow you run itLowest price, Nov 2026
PuppeteerChromeNode codeFree
PlaywrightChromiumNode, Python, Java or C# codeFree
GotenbergChromium plus LibreOfficeDockerFree
WeasyPrintIts own enginePython codeFree
wkhtmltopdfQtWebKitCommand line, no longer kept upFree
PrincePrinceOn a PC or a server$495 for one PC
DocRaptorPrinceWeb API$15 a month
PDFShiftChromiumWeb API$9 a month
Api2PdfChrome, wkhtmltopdf or LibreOfficeWeb API$1 a month plus use
iLovePDFWeb to PDF toolBrowserFree
Adobe AcrobatAcrobatDesktop app$16.99 a month per team seat

Free HTML to PDF Converters You Host

None of these five charges a license fee, though you pay in server time and setup work.

Puppeteer

Chrome’s own team builds Puppeteer, a Node.js library for driving the browser. To make a PDF, you open a page, wait for it to load and call Page.pdf() with a file path. By default, Page.pdf() waits for web fonts to load, which heads off a lot of broken-font bugs.

Because real Chrome does the drawing, flexbox, grid, web fonts and JavaScript charts come out just as Chrome shows them on screen. That makes Puppeteer the best free pick for dashboards and reports built in React or Vue.

The catch is running Chrome on a server. Each render needs memory, and a busy queue needs a pool of browsers.

Playwright

Microsoft’s Playwright uses the same page.pdf() idea but works from Node, Python, Java and .NET, which helps teams that do not write JavaScript. Since version 1.42, page.pdf() can create tagged PDFs for screen readers and embed a document outline, though both options are off by default.

Pick Playwright over Puppeteer if your back end is in Python or C#. You still write and host the code yourself, so it does nothing for someone who wants a ready-built API.

Gotenberg

Setup for Gotenberg is one line: run the gotenberg/gotenberg:8 image and post files to port 3000. What you get is a Docker-based API for turning documents into PDF files. Headless Chromium handles HTML, URLs and Markdown, and LibreOffice handles more than 100 Office formats. It can also merge and split PDFs, add watermarks and output PDF/A and PDF/UA files.

The MIT license lets you use it in paid products. Gotenberg is the pick for a team that wants a private PDF service without writing browser code. Someone still needs Docker skills and a server to run it on.

Gotenberg documentation for its Docker HTML to PDF API
Screenshot: gotenberg.dev

WeasyPrint

No browser engine like WebKit or Gecko sits inside WeasyPrint. This Python tool renders HTML and CSS to PDF with a layout engine written in Python. Version 70.0 runs on Python 3.10 and newer, under a BSD license.

That design keeps it light and good at print CSS, such as page margins and running headers. It does not run JavaScript, so charts drawn in the browser and single-page apps will not render. Invoices, tickets and letters built from Django or Flask templates are where WeasyPrint does best.

wkhtmltopdf

For a decade, wkhtmltopdf was the default way to turn HTML into PDF, and many tutorials still use it. It runs on QtWebKit, an old browser engine. Its owner archived the wkhtmltopdf repository on January 2, 2023, so it gets no fixes now.

Keep it only on legacy systems you cannot touch yet, and never start a new project on it. Modern CSS layouts often break in it, and an unmaintained tool that fetches web pages is a security risk.

Read also: Free Image to PDF Converter With No Uploads

Paid HTML to PDF Engines and APIs

Money buys one of two things in this group: better print layout than Chrome, or never running browsers yourself.

Prince

Prince is a commercial engine built for print. It handles CSS paged media well, which covers footnotes, page counters, running headers and cross-references.

The Prince desktop license costs $495 for one user on one computer. A server license costs $3,800, with volume discounts down to $2,660 each at five or more, and an academic server license costs $1,900. Commercial site licenses start at around $2,000 a year for startups, and another 12 months of server support and upgrades costs $950.

Prince license prices for desktop and server use
Screenshot: princexml.com

Books, manuals and complex reports are where Prince wins. If all you need is screenshots of web dashboards, Chrome-based tools do that for free.

DocRaptor

Running Prince without buying a server license or keeping a server is the point of DocRaptor, a hosted API built on it. Test documents are free on every plan, which helps while you tune a template. Basic costs $15 a month for 125 documents, and the plans climb from there.

DocRaptor planDocuments a monthMonthly price
Free5$0
Basic125$15
Professional325$29
Premium1,250$75
Max5,000$149
Bronze15,000$399
Silver40,000$1,000

Overage costs 12 cents a document on Basic and falls to 2.25 cents on Gold.

DocRaptor plans from Free to Silver with monthly document counts
Screenshot: docraptor.com

SaaS invoices, statements and contracts that must look printed belong on DocRaptor. For high-volume, low-value PDFs, those per-document prices add up fast.

PDFShift

One PDFShift credit covers 5 MB of output, rounded up, so a 14 MB PDF uses 3 credits. The API runs on Chromium and sells those credits monthly. The free plan gives 50 credits a month, with a 15 MB file limit and a 30 second timeout.

PDFShift paid plans start at $9 a month for 500 credits. The 2,500-credit plan costs $24, Growth costs $39 for 5,000 and Business costs $99 for 25,000, with plans running up to $999 for 1,000,000 credits. Paying yearly gives two months free.

PDFShift monthly credit plans and yearly prices
Screenshot: pdfshift.io

A small product that needs a few thousand PDFs a month and wants a simple bill will do well here. Skip it for books or print layouts that need paged media features.

Api2Pdf

Api2Pdf has no tiers at all. You pay a $1 monthly base, $0.001 per MB of bandwidth and $0.00019551 per second of compute. Each request gets 2 GB of RAM and up to 90 seconds on Chrome, wkhtmltopdf or LibreOffice.

Api2Pdf pricing works out to about $5.91 for 10,000 PDFs of 0.1 MB that take 2 seconds each. New accounts get a month of free credit.

Api2Pdf usage-based pricing with a cost example
Screenshot: api2pdf.com

Nothing here beats it on cost at high volume. The bill moves with your pages, though, so teams that need a fixed, known bill each month should look elsewhere. A 20-page report full of images can take far longer to render than a one-page receipt, and you pay for every second.

Converters for One Page, No Code Needed

Saving the odd web page or HTML file as a PDF takes a few clicks in either of these two. For images, see our image to PDF converter guide.

iLovePDF

Every iLovePDF plan, including the free Basic plan, has a Web to PDF tool, so you paste a URL and download the PDF. iLovePDF Premium costs $5 a month billed yearly, or $9 billed monthly, for 1 to 25 users, and adds batch work and bigger files.

iLovePDF Basic, Premium and Business plan prices
Screenshot: ilovepdf.com

Students, office staff and anyone saving the odd article will get what they need from the free plan. It has no way to run automated jobs inside an app.

Adobe Acrobat

Acrobat on desktop can convert web pages or whole websites to PDF, which helps when you need an archive copy of a site with its links. For teams in the US, Acrobat Standard costs US$16.99 a month per license, and Acrobat Pro costs US$23.99.

Offices that already edit, sign and share PDFs every day get the most out of it. For developers, or for anyone whose only job is web page capture, it is a costly tool. If your output files come out large, run them through a PDF size reducer before you email them.

Cost of 5,000 PDFs a Month on Each Hosted API

Say your app sends 5,000 invoices a month, each 0.1 MB and 2 seconds to render.

APIPlan for 5,000Cost a monthCost per 1,000 PDFs
Api2PdfPay for what you useAbout $3.46About $0.69
PDFShiftGrowth$39$7.80
DocRaptorMax$149$29.80

At this size, Api2Pdf costs about one tenth of PDFShift. DocRaptor costs the most, but it is the only one of the three that uses Prince. If your invoices need page footers, page numbers and exact print margins, that gap can be worth paying.

Before you wire any of these into your app, run through our API integration checklist. Retries, timeouts and error logs matter a lot when a PDF fails at checkout.

Which HTML to PDF Converter to Pick

For print-quality documents, buy Prince if you can host it and use DocRaptor if you cannot. Neither makes sense for simple screenshots of web pages.

Free work inside your own code splits by language, with Puppeteer for Node teams and Playwright for Python, Java or .NET teams. Both need someone who can run Chrome on a server. Gotenberg gives you a private API on your own Docker host. WeasyPrint handles Python templates with no JavaScript, though it will not draw charts made in the browser.

Api2Pdf gives the lowest API bill at volume, if you can live with a bill that changes each month. PDFShift is the simple monthly plan. For a web page now and then, iLovePDF is free, and Acrobat makes sense if your office already pays for it.

Read also: Invoicing Software for Plumbers: 7 Apps and Their Prices

HTML to PDF Questions Developers Ask

Why does my PDF look different from what I see in Chrome?

Browsers switch to print CSS when they make a PDF, so any @media print rules apply and screen-only styles drop away. In Playwright, call page.emulateMedia() with screen media before page.pdf() to keep the screen look.

Does Chrome’s Save as PDF count as a converter?

For one page, yes: press Print and pick Save as PDF. You cannot run it on a schedule or from code, though, which is why the libraries exist.

Can I convert HTML to PDF without sending data to a third party?

Puppeteer, Playwright, Gotenberg, WeasyPrint and a Prince server license all run on your own machines. That matters for health, legal or payroll data.

Joydeep Bhattacharya Avatar

Written by

Founder, Editor and Business Reporter, Bizolaunch

Free Tools for Founders

Calculators and templates built by Bizolaunch. Run the numbers in minutes.

Keep Reading