HTML to PDF · free, in your browser
Convert an HTML file to PDF
Drop an .html file, or paste HTML code, and see it on a paper-sized preview. Set the paper and margins, then save it as a PDF.
How to do it
- Drop the .html file on the page, or paste HTML under Source and choose Use pasted HTML.
- Choose the paper size (A4, Letter, A5 or Legal), the orientation, the margins and the scale.
- Tick Background graphics to keep coloured backgrounds, and turn the page header on or off.
- Choose Print or save as PDF, then pick Save as PDF in the print dialog.
Your files stay on this device: HTML to PDF runs in your browser, with no upload, no account and no watermark.
Questions
Why are some images missing?
Remote images and fonts are not loaded, so nothing is fetched from the internet. Images inside the file load, and pictures stored next to it can be attached by file name.
Do scripts in the HTML run?
No. Scripts, frames and remote links are removed before the preview is drawn, so the page is shown as static content.
What is the page header?
An optional line on every page with the file name, the date and a QR code. The QR code can hold the file name, a URL you type or your own text.
Is the HTML uploaded?
No. It is read and printed in your browser.
More with HTML to PDF
Related apps
- Documents
In development
Write documents with pages, styles and lists. Opens and saves DOCX. - Code Editor
In development
A code editor for your Files files. Nothing uploaded. - PDF Editor
Live
Organise, edit and sign PDFs. Nothing uploaded.