SnapAPI Home Screenshot OG Checker Meta Tags Site Audit

URL to PDF Converter

Convert any webpage to a high-quality PDF. Configure page size, orientation, and backgrounds.

Preparing PDF settings...

PDF Preview

Page Title
URL--
Page SizeA4
OrientationPortrait
BackgroundIncluded
StatusRequires API key

Sign Up Free to Generate PDFs

PDF generation uses a real browser to render the page, so it requires an API key. Sign up in 10 seconds -- 50 free requests/month, no credit card.

or

API Usage

# Convert URL to PDF via API
curl -X POST https://snap.michaelcli.com/api/pdf \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com", "format": "A4", "landscape": false}' \
  --output page.pdf

# Landscape, Letter size, with backgrounds
curl -X POST https://snap.michaelcli.com/api/pdf \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com", "format": "Letter", "landscape": true}' \
  --output report.pdf

Need High-Volume PDF Generation?

Our paid plans support up to 10,000 PDFs per month. Convert invoices, reports, articles, and receipts to PDF at scale.

View Pricing

URL to PDF: How It Works

How are PDFs generated?

We load the URL in a real Chromium browser, wait for the page to fully render (including JavaScript), then use the browser's native PDF printing engine. The result is identical to what you'd get from Chrome's "Print to PDF" -- but automated via API.

Does it handle JavaScript-rendered pages?

Yes. We wait for networkidle before generating the PDF, which means Single Page Applications (React, Vue, Angular) render completely. Dynamic content, lazy-loaded images, and AJAX-fetched data are all captured.

What page formats are supported?

A3, A4, A5, Legal, Letter, and Tabloid. Both portrait and landscape orientations. Background colors and images can be included or excluded. Custom margins coming soon.

How large can the PDFs be?

There's no hard limit on PDF file size. Pages up to 30 seconds of load time are supported. For very long pages, the PDF will include all rendered content.

Can I convert password-protected pages?

Not currently. The API accesses pages as a public visitor. If the page requires authentication, we cannot reach its content. Cookie injection is on the roadmap for paid tiers.