In shortPaste HTML or open an .html file, choose page size and margins, then click Save as PDF and pick "Save as PDF" as the printer. Your browser creates a vector PDF with selectable text — nothing is uploaded and there's no watermark.
How to use the HTML to PDF
- Add your HTML. Paste HTML or open an .html file; a sample invoice is loaded.
- Set up the page. Pick page size, orientation, margins and whether to print background colours.
- Click Save as PDF. Your browser's print dialog opens with the page ready.
- Choose Save as PDF. Select "Save as PDF" as the destination and save the file.
How this HTML to PDF converter works
Instead of taking a blurry screenshot, it uses your browser's own print engine — the same one that renders web pages — to produce the PDF. That means text stays as real, selectable, searchable text, links stay clickable, fonts are embedded and the file is small. The page size, orientation and margins are applied with the CSS @page rule.
Tips for a better PDF
- Use
page-break-before: always(orbreak-before: page) on an element to start it on a new page. - Add
break-inside: avoidto tables rows, cards and images so they don't split across pages. - Hide navigation and buttons in print with
@media print { nav, button { display: none } }. - Images must use full https:// URLs — relative paths from your computer can't load.
- Turn off "Headers and footers" in the print dialog to remove the date and URL lines.
From Markdown or Word
Write in Markdown and convert with Markdown to HTML (tick Full HTML page), or paste a document into Word to HTML, then bring the HTML here.
Private by design: this tool runs entirely in your browser. Nothing you paste or open is uploaded to a server.
Frequently asked questions
How do I convert an HTML file to PDF?
Open the .html file on this page, choose page settings, click Save as PDF and select "Save as PDF" in the print dialog.
Is there a watermark?
No. The PDF is created by your own browser, so there's no watermark, page limit or sign-up.
Will the text be selectable?
Yes. The browser's print engine produces a vector PDF with real text, not an image.
Why are background colours missing?
Browsers skip backgrounds when printing by default. Keep "Print background colours" ticked, and enable "Background graphics" in the print dialog if needed.
Can I do this on a phone?
Yes. On Android, Chrome's print dialog has Save as PDF. On iPhone, use the share sheet's Print option and pinch out on the preview to create a PDF.