How to use HTML to PDF
- 1Choose an .html or .htm file.
- 2Pick the paper size, orientation and margins.
- 3Optionally turn on “Load remote images and styles” if the file links to images on the web.
- 4Click “Save as PDF” and save with the “Save as PDF” printer.
Key features
Safe by default
Scripts, event handlers, frames, embedded objects and javascript: links are removed, and the page is shown in a sandbox where scripts cannot run.
Privacy switch
Remote images, stylesheets and fonts are blocked unless you turn them on, so opening a file can't notify trackers.
Keeps the page's styling
Inline styles, <style> blocks and embedded (data URL) images are kept, so the PDF looks like the page.
Your page settings
Choose A4, Letter, Legal, A3 or A5, portrait or landscape, and the margins.
No upload
The HTML file is read and printed in your browser only.
HTML files are everywhere: exported reports, invoices, newsletters, documentation and saved web pages. Converting them to PDF makes them easy to archive, print and share.
Because an HTML file can contain code, this converter treats it with care. The file is parsed without running anything, active content is removed, and the cleaned page is printed from a sandboxed frame with scripts disabled.
For the best result, use files with absolute image URLs or images embedded as data URLs. Files saved with a separate “_files” folder will show blank spaces where the folder's images were.