Built for Tailwind CSS

Tailwind to PDF.
Finally.

Generate pixel-perfect PDFs from your Tailwind CSS HTML. One API call. No headless browsers. No broken layouts.

No credit card required • 100 free PDFs every month

You've been here before.

You need to generate a PDF. An invoice. A report. A contract. You reach for Puppeteer. Then you spend three hours debugging why your Tailwind flexbox renders as a vertical stack. Why your h-[200px] shows up as 0 pixels. Why your fonts look wrong.

You try wkhtmltopdf. It doesn't support CSS Grid. You try DomPDF. It barely supports CSS 2.1.

You just wanted to ship a feature. Instead, you're reading GitHub issues from 2019.

"The result looks very different after the conversion. Some elements go off the page, some sections are stacked instead of showing horizontally."

— Actual developer, actual pain

Your Tailwind. Perfect PDFs.

TailPDF renders your Tailwind CSS exactly as you designed it. Flexbox, Grid, arbitrary values, responsive utilities—all of it works. Send HTML. Get PDF. Ship your feature.

generate-pdf.js
const pdf = await tailpdf.generate({
  html: `
    <div class="p-8 bg-white">
      <h1 class="text-2xl font-bold text-gray-900">Invoice #1234</h1>
      <div class="mt-4 flex justify-between">
        <span class="text-gray-600">Total</span>
        <span class="text-xl font-semibold">$1,250.00</span>
      </div>
    </div>
  `
});

// That's it. Seriously.

CSS Grid layouts

Flexbox positioning

Gradients & shadows

Arbitrary values

For SaaS Builders

Level up your SaaS.

Professional PDF documents transform how your customers perceive your product. Beautiful invoices, detailed reports, and polished statements set you apart from the competition.

Branded Invoices

Professional invoices that match your brand perfectly. Your logo, your colors, your identity—every time.

Customer Reports

Automated PDF reports your users will love. Analytics, usage summaries, and insights—beautifully formatted.

Receipts & Statements

Build trust with polished financial documents. Clean, professional, and instantly recognizable.

White-label Ready

Perfect for multi-tenant apps. Each customer gets documents with their own branding—automatically.

Why TailPDF

Built different. Built better.

Purpose-built for modern web development with Tailwind CSS.

Pixel-Perfect Rendering

Every Tailwind class renders exactly as intended. Grid, flexbox, gradients—we handle the CSS that breaks other APIs.

grid flex gap-* bg-gradient-*

Ship in Minutes

Simple REST API. Three lines to your first PDF. No headless browser setup, no infrastructure to manage.

const pdf = await fetch(url)

Production-Ready

SSRF protection, rate limiting, multi-tenant isolation. Security baked in. Built for SaaS apps that scale.

99.9% Uptime
Multi-region (US/EU/UK)

Why not just use...

We've tried them all. Here's why we built TailPDF.

vs. Puppeteer

Puppeteer works. Until you deploy to serverless. Until you need to manage Chrome versions. Until cold starts kill your user experience. TailPDF is one HTTP call with no infrastructure.

vs. wkhtmltopdf

wkhtmltopdf uses a WebKit fork from 2012. No Flexbox. No Grid. No modern CSS. Your Tailwind will break.

vs. DomPDF / TCPDF

These parse CSS themselves—and only support CSS 2.1. That means almost no Tailwind classes work. At all.

vs. DocRaptor

DocRaptor uses PrinceXML—great for print stylesheets, expensive at scale, and you'll still need to debug CSS differences. TailPDF renders exactly what Chrome renders.

What developers build with TailPDF

From invoices to certificates, TailPDF handles your production workloads.

📄

Invoices

Branded invoices that match your app

📊

Reports

Analytics with charts and tables

🎓

Certificates

Beautiful credentials with custom fonts

📝

Contracts

Legal documents with consistent branding

Simple, Transparent Pricing

Start free, upgrade when you're ready.

Free
$0
100 PDFs/month
  • Full API access
  • Shared render pool
  • Community support
Get Started
Startup
$12
1,000 PDFs/month
  • No watermark
  • 1-2s latency
  • Email support
Get Started
Popular
Pro
$49
10,000 PDFs/month
  • Priority queue
  • Sub-second response
  • Slack support
Try it free

Need more volume?

Enterprise plans start at 100,000 PDFs/month with dedicated infrastructure.

Contact Sales

View full pricing details →

Frequently Asked Questions

Everything you need to know about TailPDF.

Does TailPDF support Tailwind v4?

Yes. TailPDF supports both Tailwind CSS v3 and v4, including the new CSS-first configuration. Your existing Tailwind code works out of the box.

What about images?

Images work perfectly. Use absolute URLs or base64-encoded inline images. We'll render them exactly as they appear in your browser.

Is there a file size limit?

HTML payloads up to 5MB. Generated PDFs up to 50MB. That's enough for most invoices, reports, and documents.

Do you support page breaks?

Yes. Use standard CSS page-break-before, page-break-after, or our custom utility classes for precise control over pagination.

What's your uptime?

99.9% SLA on Pro plans and above. Check our status page for real-time updates.

Can I self-host TailPDF?

Not currently. Enterprise customers can discuss dedicated infrastructure options—get in touch.

Stop fighting PDF libraries.

Start generating beautiful PDFs with the Tailwind CSS you already know.

No credit card required • 100 free PDFs every month