Convert your HTML files to PDF files
Turn HTML into a PDF with Blackpdf's free online converter. Upload an .html file or paste your code into the built-in editor, choose the page size, orientation and margins, and get a PDF rendered by a real browser engine. No installation or account needed.
Invoices, receipts, reports and email templates are often built in HTML, but clients and accountants want a PDF. Paste the markup or upload the file and get a print-ready document that keeps your layout and styling.
Two ways in, and the page settings that shape the PDF.
Drop in an .html or .htm file, or switch to the code editor, with syntax highlighting, line numbers and a full-screen mode, and paste your markup directly.
Pages are rendered by headless Chromium, the engine behind Chrome, so modern CSS such as flexbox, grid and web fonts comes out as you'd expect.
Choose A4, Letter, Legal or A3, portrait or landscape, and margins from none to large, so the PDF fits the paper it will be printed on.
Keep background colours and images for a faithful copy of your design, or switch them off for a cleaner, ink-friendly print.
The converter never fetches arbitrary URLs and screens outside requests while rendering, so pasted code can't be used to reach private systems.
Your HTML is rendered on Blackpdf's servers over an encrypted connection and discarded once the PDF is created.
Because a real browser engine does the rendering, tables, columns and fonts in your HTML come out the way they look on screen, not as a rough approximation.
It's ideal for generated documents such as invoices, statements and reports that your app or template produces as HTML.
No file to hand? Open the code editor, paste your HTML and press Convert. The editor highlights tags and counts characters so you can check what you're sending.
The same page-size, margin and background settings are available in paste mode.
HTML to PDF is free. Pro raises upload limits, renders your jobs with priority, shares the result by link and removes ads.
See what Pro includes7 day free trial. Cancel anytime.
| Free | Pro | |
|---|---|---|
| HTML file upload | 25MB | 50MB |
| Rendering priority | Standard | Priority |
| Share PDF by link | ||
| Pro feature uses | 10 a day | Unlimited |
| Ads | Shown | None |
Yes. Choose the paste option on the upload screen to open a code editor, paste your markup and convert it directly.
Yes. The page is rendered with a Chromium browser engine, so stylesheets in the document, modern layout and web fonts are supported.
No. For security the converter doesn't fetch URLs. Save the page as HTML or copy its source and convert that, or see our guide on saving a web page as a PDF.
Set Background to off. Colours and background images are left out, which saves ink when printing.
Pasted or uploaded HTML can be up to 2MB of markup; uploaded files also follow your plan's file limit.
No. It is rendered on our servers and discarded when the PDF is ready.
Shared file links turn the generated PDF into a link you can hand to clients, with access you control.