HTML to PDF
Paste HTML or drop an .html file and turn it into a paginated PDF, rendered by your own browser.
HTML source
Preview
The preview runs in a sandboxed frame: scripts are stripped before anything is shown or printed.
Page setup
How to turn HTML into a PDF
- Paste your markup into the box, or drop an
.htmlfile onto the small drop area. Scripts, iframes and inline event handlers are removed immediately. - Check the sandboxed preview, then pick paper size, orientation and margins.
- Press Convert to PDF. The browser lays the markup out at page width and the result is paginated at the blank rows between lines.
FAQ
Can I convert a live website by pasting its address?
No — and that is deliberate. Everything here runs in your browser with no server, so there is nothing that could fetch a remote page for you. Save the page first (Ctrl/Cmd+S, “Web page, complete”) or copy its HTML, then drop it in. Images that are referenced by an absolute https:// URL will still load if the host allows it.
Is my CSS applied?
Yes. <style> blocks and inline style attributes are kept and used for layout, so an invoice or report template prints the way you designed it. External stylesheet <link> tags are dropped, so inline the CSS you need.
Why is text in the PDF not selectable?
Pages are rasterised after layout, which is what lets any font, any language and any CSS trick survive intact. If you need selectable text, use your browser's own Print → Save as PDF instead.