Best HTML to PDF APIs (2026)
Five hosted APIs and one self-hosted server, compared on price per 1,000 and features
December 3, 2026
We make Microlink, so read this as a vendor's comparison. We did not benchmark speed or output quality for this post. Every price and feature comes from each provider's own pricing page and documentation, checked in December 2026, and each competitor links to a page that cites its source.
TL;DR
- Microlink costs $1.07 per 1,000 PDFs on Pro. The other hosted APIs here cost $2.98 to $25.00 per 1,000 of their own billing units, on the plans closest in volume.
- Providers bill different units. Microlink and DocRaptor bill one unit per document. PDFShift and PDFCrowd bill credits by output size, so a heavy PDF costs more than one. ConvertAPI bills per conversion.
- Microlink takes the URL of a web page or of a Word, Excel or PowerPoint file, with cookies or headers for pages behind a login. It does not take raw HTML, and it has no header and footer templates, watermarks, encryption, PDF/A, merging or webhooks. PDFShift, PDFCrowd, ConvertAPI, DocRaptor and Gotenberg each cover some of them.
- Microlink fits when your documents live at a URL and you want screenshots, metadata or markdown from the same API key.
How we compared
We picked four hosted HTML to PDF APIs with plans near Microlink Pro in volume, plus Gotenberg, an MIT-licensed server you run yourself. For each hosted API we used the plan its comparison page sets against Microlink Pro, which is the plan closest to Microlink Pro in monthly volume.
- Price per 1,000. The monthly price divided by the units the plan includes, times 1,000. It assumes you use the whole plan.
- Billing units. A credit, a conversion and a document are not the same thing. The price table shows each provider's own unit, and the next section says what one unit buys.
- No benchmark. We did not time renders or compare output. Run your own documents through each provider's free tier or trial, or a local Gotenberg container, before you choose.
Price
| Plan | Price per month | Per 1,000 |
|---|---|---|
| Microlink Pro | $49 for 46,000 requests | $1.07 |
| PDFShift Shift 50k | $149 for 50,000 credits | $2.98 |
| PDFCrowd Enterprise 50 | $221 for 50,000 credits | $4.42 |
| ConvertAPI Business | $390 for 50,000 conversions | $7.80 |
| DocRaptor Silver | $1,000 for 40,000 documents | $25.00 |
The plans range from $149 to $1,000 a month, against $49 for Microlink Pro. The rows are sorted by price per 1,000. Gotenberg is not in the table: the software is free and you pay for the servers that run it.
Check what one unit buys before comparing rows:
- Microlink bills one request per PDF, whatever it weighs. The same request can also return a screenshot and the page metadata.
- DocRaptor bills one document, whatever it weighs.
- PDFShift bills one credit for every 5 MB of output, so a 12 MB report costs 3 credits.
- PDFCrowd bills one credit for every 0.5 MB of output, so a 1 MB PDF costs 2 credits.
- ConvertAPI bills per conversion.
The six options
Microlink
A URL and
pdf=true returns a PDF of the page, printed by Chromium after its JavaScript runs. Point the same parameter at a .docx, .xlsx or .pptx URL and you get the document as a PDF, printed through HTML, so it keeps the text but not the original page layout. Paper size, margins, scale, orientation, page ranges and print or screen CSS are parameters. Ads and recognized cookie banners are blocked by default. The PDF comes back as a CDN URL, or as the file itself with embed=pdf.url. The free plan gives 25 requests/day, renews daily, no credit card.Where it falls short: no raw HTML input, no header and footer templates, no watermarks, no encryption, no PDF/A, no merging, no webhooks, no upload to your own bucket and no file uploads, since it needs a URL it can reach. A very long document can fail to render within the request timeout with an EPDFTOOLARGE error.
PDFShift
Takes a URL or raw HTML and renders it with Chromium. It has header and footer templates with page numbers, watermarks, encryption, webhooks and uploads to your own S3, Google Cloud Storage or R2 bucket, plus a sandbox mode that returns watermarked PDFs without spending credits. The free plan gives 50 credits per month. See PDFShift alternative.
PDFCrowd
In business since 2009, with 7 official SDKs, a CLI and Zapier and Make integrations. It takes a URL or raw HTML and has headers and footers, watermarks, passwords and PDF/A. Each plan caps conversions per minute. The trial gives 100 test credits valid for a month. See PDFCrowd alternative.
ConvertAPI
A catalog of 300+ conversion tools. HTML to PDF runs headless Chrome with ad and cookie banner blocking, and other tools convert Word, Excel and PowerPoint, merge, watermark, encrypt, produce PDF/A and run OCR. It accepts uploaded files, runs in 8 regions and has an MCP server. Signing up gives 250 free conversions. See ConvertAPI alternative.
DocRaptor
It renders with Prince, a print engine rather than a browser, with CSS paged media: running headers and footers, page numbers and tables of contents written in CSS. JavaScript is opt-in. It can encrypt its PDFs and produce Excel files, and it lists SOC 2, HIPAA and GDPR compliance. The free plan gives 5 documents per month plus unlimited watermarked test documents. See DocRaptor alternative.
Gotenberg
An MIT-licensed Docker image you run yourself. It bundles Chromium for URLs, HTML and Markdown, LibreOffice for office documents, and tools to merge, split, encrypt, stamp, sign and produce PDF/A. Uploaded files never leave your network. You size and operate the containers: one Chromium handles 6 conversions at a time, LibreOffice converts one file at a time, and private IP addresses are reachable unless you turn that off. See Gotenberg alternative.
How to choose
| If you need | Look at |
|---|---|
| The lowest price per 1,000 PDFs among the hosted APIs here, on the plans in the price table | Microlink |
| One price per PDF, whatever it weighs | Microlink, DocRaptor |
| Word, Excel and PowerPoint to PDF | ConvertAPI, Gotenberg, Microlink (text, not layout) |
| Raw HTML input | PDFShift, PDFCrowd, DocRaptor, Gotenberg, ConvertAPI (as a file) |
| Header and footer templates | PDFShift, PDFCrowd, ConvertAPI, Gotenberg, DocRaptor (in CSS) |
| Print typography with CSS paged media | DocRaptor |
| PDF/A | PDFCrowd, ConvertAPI, Gotenberg |
| Merge | ConvertAPI, Gotenberg, PDFCrowd (separate API) |
| Watermarks or encryption | PDFShift, PDFCrowd, ConvertAPI, Gotenberg, DocRaptor (encryption) |
| Webhooks | PDFShift, DocRaptor, Gotenberg |
| Documents that never leave your network | Gotenberg |
| Screenshots plus metadata and markdown from one request | Microlink |
Try it
Run your own documents through it. Sign up for a free API key, or open the PDF API page and turn a web page or office file URL into a PDF from the browser.
Start building
Sign up, add the key to your requests, and start turning any link into what you need.
Get your free API key25 requests/day · Proxy, headers and ttl · No credit card