Use this tool to turn HTML into a PDF. Paste your code into the box or choose an .html file, and it draws the page the way a browser would, cuts it into A4 pages and gives you a PDF to download. It suits invoices, certificates, receipts, email templates and simple pages you wrote yourself.
The result is image based: each PDF page is a picture of the rendered HTML, so the text in the PDF cannot be selected or searched, and a page break can fall through the middle of a line. For safety and privacy, nothing is fetched from the internet. Scripts, iframes, stylesheet links and pictures on other websites are removed, so use inline styles, a style block and pictures embedded as data: addresses. Everything runs in your browser and nothing is uploaded.
How it works
- 1
Paste your code into Paste your HTML, or click Insert an example to see how it works. You can also click Select HTML file and choose an .html file.
- 2
Read the Image based note, and check that your styles are inline or inside a style block.
- 3
Click Convert to PDF and wait while the pages are drawn.
- 4
Click Download PDF. Use Convert more HTML to start again.
Why use this tool
Nothing leaves your device
The HTML is drawn locally, and no scripts run and no outside files are loaded, so it is safe even for private invoices.
Looks like the page
Because it draws the rendered page, colours, tables, fonts available on your device and images embedded in the file appear as you expect.
Quick and simple
Paste, click, download. There is no account, no watermark and no page limit for ordinary documents.
Honest about the format
You are told that the result is image based, so you can pick the right tool when you need selectable text.
Good to know
- External pictures, fonts and stylesheets are not loaded. Embed pictures as data:image addresses and put CSS in a style block.
- Fonts come from your device. A font that is not installed is replaced by a similar one.
- The page is drawn 714 pixels wide on A4, with margins. Use percentage widths or max-width so content fits.
- Page breaks are placed by height, so a line of text can be cut between two pages. Add spacing or shorten sections if that happens.
- Up to 5 MB of HTML and 40 pages are handled in one go.