Best URL to PDF APIs in 2026

We compared every major way to convert URLs and HTML to PDFs — from print-grade specialists like DocRaptor (PrinceXML) and pay-as-you-go api2pdf, to self-hosted Puppeteer and legacy wkhtmltopdf. Each wins at something different; we call out which.

Last updated: October 2026

Quick Comparison

Side-by-side capabilities at a glance.

ProviderFreePricingHTMLConfigBatchMCP
RendexPick100/month$69/mo for 10K conversions
DocRaptor5 docs/mo + unlimited watermarked test docs$15/mo for 125 docs
PDFShift50/month$9/mo for 500 conversions
api2pdf1-month trial credit$1/mo base + usage (~$0.0006/small doc)
Puppeteer (Self-Hosted)Unlimited (self-hosted)Free + infra costs
ScreenshotOne100/month$79/mo for 10K calls
wkhtmltopdfUnlimited (self-hosted)Free (open source)

Detailed Reviews

An honest look at each option.

1. Rendex

Recommended

Rendering API that converts Markdown, HTML, or a URL to PDF on Cloudflare's edge — the same key also does screenshots, OG images, and text extraction. Full page configuration, batch support, and an MCP server.

Strengths

  • Markdown, HTML, or URL input — identical PDF output
  • One key for PDF + screenshots + OG images + extraction
  • Full page config: size, margins, orientation, headers/footers
  • Batch PDF generation — up to 500 URLs per request
  • MCP server + n8n/Zapier/Make nodes for AI-agent and no-code workflows
  • Edge-deployed, no cold starts, 100 free/month

Weaknesses

  • New entrant — less established track record
  • Not the cheapest per single small doc (see api2pdf)

Best all-rounder: broadest input/output breadth, predictable flat pricing, batch, and MCP — one key instead of a stack of single-purpose tools. Pick a specialist below if you need only one thing done perfectly.

2. DocRaptor

HTML/URL to PDF powered by the commercial PrinceXML engine — the reference standard for paged-media print fidelity. Outputs PDF and Excel.

Strengths

  • PrinceXML engine — best-in-class print & paged-media fidelity
  • Running headers/footers, page counters, true page breaks
  • PDF/A (archival) and PDF/UA (accessible) output
  • Unlimited watermarked test documents while you build

Weaknesses

  • $15/mo for 125 docs — priciest per doc at low volume
  • PDF + Excel only — no screenshots, OG images, or extraction
  • No MCP or no-code (n8n/Zapier/Make) integrations
  • No Markdown input

The pick when typeset print fidelity is the whole job — invoices, statements, and paged reports that must render exactly. Prince handles paged-media CSS no Chromium engine matches.

3. PDFShift

Dedicated HTML/URL to PDF API on Chromium, with screenshot output as well. A cheap, simple on-ramp for straightforward PDFs.

Strengths

  • Cheap Chromium on-ramp — $9/mo entry
  • Good page configuration + custom headers/footers
  • Screenshot output alongside PDF
  • Watermark support

Weaknesses

  • Credits counted per 5 MB — image-heavy PDFs cost multiple credits
  • No batch endpoint
  • No MCP or no-code integrations
  • No Markdown input

A solid, inexpensive Chromium PDF service for simple, low-volume workflows. Watch the per-5MB credit model on image-heavy documents.

4. api2pdf

Pay-as-you-go PDF API with a choice of engines (Chrome, wkhtmltopdf, LibreOffice) plus screenshots, Office conversion, and extraction. Cheapest per small doc at scale.

Strengths

  • Cheapest per small/fast doc at scale (~$0.0006)
  • Engine choice: Chrome, wkhtmltopdf, or LibreOffice/Office
  • Also does screenshots, extraction, and Office conversion
  • $1/mo base — minimal commitment

Weaknesses

  • Usage priced by MB + processing seconds — harder to predict
  • Sync-only — no managed async/batch
  • Generated files retained only 24 hours
  • No MCP, no-code nodes, or Markdown input

Cheapest per small document and the most flexible on engines. Trade-off: metered pricing you must model, sync-only calls, and files that expire in 24h.

5. Puppeteer (Self-Hosted)

Google's headless Chrome library. Use page.pdf() with full control over page configuration and rendering.

Strengths

  • Full Chromium — pixel-perfect PDFs
  • Complete control over page config
  • Free and open source
  • Custom headers/footers with HTML

Weaknesses

  • Requires Chromium (~400 MB)
  • High memory per instance
  • Cold starts in serverless
  • You manage scaling and crashes

Best for teams with infra who need complete control. Impractical at high volume.

6. ScreenshotOne

Screenshot API with PDF output as a format option. Primarily designed for URL screenshots.

Strengths

  • Full Chromium rendering
  • PDF alongside screenshot formats
  • Enterprise features — batch, webhooks, S3
  • 7 language SDKs

Weaknesses

  • 4x more expensive than Rendex
  • PDF is secondary, not primary
  • No edge deployment
  • Only 100 free/month

Capable of PDF generation but at premium pricing. Better value with Rendex.

7. wkhtmltopdf

Open-source CLI converting HTML to PDF using an older WebKit engine. Widely used but unmaintained since 2020.

Strengths

  • Free and open source
  • Well-documented config options
  • Lightweight vs Chromium
  • Wide language bindings

Weaknesses

  • Unmaintained since 2020
  • Old WebKit — no Flexbox, no Grid
  • Poor JavaScript support
  • Security vulnerabilities
  • Rendering quality below Chromium

Legacy tool — do not choose for new projects. Modern CSS doesn't render. Migrate to Chromium-based.

Related Use Cases

URL to PDF
Convert any webpage to PDF
Invoice Rendering
Generate PDF invoices from HTML

Frequently Asked Questions

What is the best API for converting URLs to PDFs?

It depends on what you’re optimizing for. For the broadest coverage from one key — PDF plus screenshots, OG images, and extraction, with Markdown/HTML/URL input, batch, and MCP — Rendex is the best all-rounder (full page config, 100 free/month). For pure typeset print fidelity, DocRaptor (PrinceXML) wins; for the lowest per-doc cost at scale, api2pdf.

Which URL-to-PDF API has the best print fidelity?

DocRaptor, because it runs the commercial PrinceXML engine — the reference for paged-media CSS: running headers/footers, page counters, true page breaks, and PDF/A & PDF/UA output. If your PDFs must look typeset (legal, financial statements, print), that fidelity is hard to match with a Chromium-based tool.

Which URL-to-PDF API is cheapest?

Per single small document at scale, api2pdf is cheapest (~$0.0006/doc on a $1/mo base), but its usage pricing varies by file size and processing time. If you want predictable flat pricing across PDF and screenshots, OG images, and extraction from one key, Rendex is simpler to budget.

Should I use wkhtmltopdf for new projects?

No. Unmaintained since 2020, old WebKit with no Flexbox/Grid. Use Rendex or Puppeteer.

Can I generate PDFs from HTML without a URL?

Yes. Rendex, DocRaptor, PDFShift, api2pdf, and Puppeteer all accept raw HTML — and Rendex also takes Markdown. Pass a template, get a PDF — no hosted page needed.

Ready to generate PDFs?

100 free conversions/month. No credit card required.