HTML to PDF
in milliseconds

A simple API that turns any URL or HTML into a pixel-perfect PDF. Fast, reliable, and friendly to both developers and anyone who just wants to save a webpage as PDF.

For anyone

Save any webpage as PDF in one click

Drop a URL in the playground below, press Generate, download a clean PDF. No signup, no install, no extension.

Try the playground ↓
For developers
curl -X POST https://api.docbrew.io/pdf/render \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"html": "<h1>Hello!</h1>"}' \
  -o output.pdf

Try it now

Paste a URL or raw HTML and generate a PDF instantly. No sign-up required.

Everything you need

A complete PDF generation API with no compromises.

HTML to PDF

Send raw HTML and get a perfect PDF back. Supports CSS, images, and custom fonts.

URL to PDF

Pass any URL and we'll render the page and convert it to PDF automatically.

Custom options

Control page format, orientation, margins, and backgrounds. A4, Letter, or any custom size.

Fast rendering

No cold starts. Sub-second rendering for most pages, even complex ones.

API-first

Simple REST API that works with any language. curl, JavaScript, Python, Go — your choice.

Reliable

Pixel-perfect rendering. What you see in the browser is what you get in PDF.

Dead simple API

One endpoint. Send HTML, get PDF. Works with any language.

curl -X POST https://api.docbrew.io/pdf/render \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"html": "<h1>Invoice #1234</h1><p>Total: $99.00</p>"}' \
  -o invoice.pdf

Simple, transparent pricing

Start free. Upgrade when you need the volume.

Free

For testing, hobby projects, and small integrations.

0

200 renders / month

  • HTML & URL rendering
  • A4, Letter, Legal, custom formats
  • Custom margins & orientation
  • API key authentication
  • Community support
Get started free

Starter

For indie makers and small automations.

9 / month

2,000 renders / month

  • Everything in Free
  • 10× the render quota
  • Email support
  • Cancel anytime
Start with Starter

Pro

Most popular

For real products and growing startups.

29 / month

15,000 renders / month

  • Everything in Starter
  • High-volume rendering
  • Priority queue on busy days
  • Cancel anytime
Go Pro

All tiers share the same features — the only difference is volume. Need more than 15,000 renders/month? Get in touch.

Frequently asked questions

Everything developers ask before integrating DocBrew.

What is DocBrew?
DocBrew is a developer API that converts HTML or any URL into pixel-perfect PDFs with a single HTTP request. It runs on managed headless Chrome / Puppeteer infrastructure so you don't have to host your own.
How do I convert HTML to PDF in Node.js, Python, or PHP?
Send a POST request to https://api.docbrew.io/v1/pdf with a JSON body containing either { url } or { html }, plus your API key in the Authorization header. The response is a binary application/pdf. Works from any language with an HTTP client — Node.js fetch, Python requests, PHP Guzzle, Go net/http, Ruby Net::HTTP.
Can I generate invoice and receipt PDFs?
Yes. DocBrew is commonly used to render invoice, receipt, and report templates from server-side HTML — including Laravel Blade, EJS, Handlebars, JSX, or static HTML. Pass the rendered HTML in the html field and DocBrew returns the PDF.
Does DocBrew support custom page sizes, margins, and headers?
Yes. The /v1/pdf endpoint accepts options for format (A4, Letter, Legal, custom mm/in), margin, landscape, scale, displayHeaderFooter, headerTemplate, footerTemplate, and waitFor (CSS selector or timeout) for pages with async content.
How is DocBrew different from running my own Puppeteer?
Running Puppeteer in production means managing Chrome binaries, font installation, container memory, retries, and concurrency. DocBrew handles all of that — you get a stateless API call. For low volumes self-hosting can be cheaper, but it stops being free the first time Chrome OOMs in your serverless function.
Is there a free tier?
Yes. The free plan includes monthly PDF credits with no credit card required. Paid plans add higher rate limits, larger PDFs, and priority rendering.
Which frameworks does DocBrew work with?
Any framework that can make an HTTP POST. Common integrations: Next.js / React Server Components, Laravel, Django, Rails, Express, FastAPI, Spring Boot, .NET, Go services. The API is framework-agnostic.
Do you store the PDFs I generate?
By default PDFs are streamed back in the HTTP response and not persisted. If you pass return=url DocBrew temporarily stores the file and returns a signed URL with a configurable expiry. You can disable storage entirely on enterprise plans.

Get in touch

Questions, feedback, or enterprise inquiries? We'd love to hear from you.