HTML to PDF converter

Paste HTML and CSS, get a PDF back, rendered by real Chromium, so flexbox, grid, web fonts and print CSS work like in your browser. Start from an invoice, receipt or multi-page report template, then make the same PDF from your backend with one API call. Need an image instead? HTML to image.

Free to try, no signup: 5 renders/day.

CSS that matters in a PDF

We rendered each of these through the converter on 2026-10-21 and checked the output with poppler:

Generate PDFs from your backend

Invoices, receipts, reports, tickets, certificates: build the HTML with your usual templating (Blade, Jinja, EJS, Razor), POST it, and store or email the PDF. Every option above is a JSON field:

curl -X POST https://shotmint.creasework.com/v1/pdf -H "X-API-Key: YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"html": "<h1>Invoice</h1>...", "format": "A4", "margin": "15mm"}' -o invoice.pdf

Also available: landscape, print_background, scale, screen_media (use your screen CSS instead of print CSS) and url instead of html to convert a live webpage. Images and fonts must be on public URLs (or inline data: URIs), since the renderer can't see your localhost. Language guides with tested code: Node.js, Python, PHP; see also the API docs.

FAQ

Is the text selectable? Yes. The PDF keeps real text and vector shapes, so it's searchable and stays sharp when zoomed, unlike an image pasted into a PDF.

Can I add page numbers? Yes: tick "Page numbers" above, or send "page_numbers": true to the API for a centered "1 / 3" footer. For your own layout ("Page 2 of 5", a company name, the date), send footer_template or header_template HTML with <span class="pageNumber"></span> and <span class="totalPages"></span> (docs). Already have a PDF? Use the free add page numbers tool.

Why does my PDF look different from the browser? PDFs use your print CSS (@media print) by default. If a print stylesheet hides things, send screen_media: true.

Is it free? 5 PDFs a day per visitor here. A free API key adds 25 more a month; after that it's €5 for 2,000 renders, no subscription, and credits never expire.

Writing in Markdown? Markdown to PDF. Already have PDFs? Merge, compress or add page numbers in your browser.

Get 25 free API renders a month

Related tools

PDF to HTML · HTML to image · HTML formatter · Word to HTML · HTML to Markdown · HTML to Word · Markdown to HTML · Online HTML editor · HTML viewer · DOCX to HTML · HTML Beautifier · HTML Decode · HTML Encode · HTML Minifier · HTML to DOCX · HTML to JPG Converter · HTML to PNG Converter · Merge URLs to PDF · all free tools