This tool turns HTML code into a PDF. It cannot open a web address — a page in your browser is not allowed to fetch another website. To save a web page, open it and press Ctrl+P, then Save as PDF.
Each page is saved as a picture of the page, so the text in the PDF cannot be selected. Scripts in the HTML do not run.
About converting HTML to PDF
You have an HTML file — a report from a program, a saved e-mail, an invoice template, a page you wrote yourself — and you need it as a PDF to send or print.
Paste the HTML or open the .html file. The tool shows a live preview, then lays the document out on Letter or A4 pages, using the document's own CSS: its fonts, colours, borders and tables. Long documents are split into pages between paragraphs, table rows and list items, and a table's header row is repeated on each page.
Everything happens in your browser. The HTML is never uploaded, and any scripts in it are removed before it is shown.
Features
- Paste HTML or open a file — a full page or just a snippet; drop the file on the text box
- Your own CSS — <style> blocks, inline styles and https:// style sheets (like Bootstrap from a CDN)
- Pictures — https:// and data: images load; for pictures saved next to the .html file, add them with the same button
- Clean page breaks — between blocks, list items and table rows, with the table header repeated
- Letter, A4 or A5, portrait or landscape, three margin sizes, optional page numbers
- One click to download — the PDF is made in the background while you edit, with a live preview and page thumbnails
- Safe — scripts and event handlers are removed (DOMPurify) and nothing is sent anywhere
What it can and cannot do
- It cannot open a web address. A web page in your browser is not allowed to download another website — that is a browser safety rule, and getting around it needs a server, which this site does not use for your files. To save a web page you are looking at, press Ctrl+P (Cmd+P on a Mac) and choose Save as PDF. That works in every modern browser.
- Pictures with a path on your computer (like images/logo.png) cannot be found by the browser on their own. Click Open .html (+ pictures) again and pick the picture files too — they are matched by file name.
- The text in the PDF is part of a picture of each page, so it cannot be selected or searched. That is how every script and font shows correctly — the page is drawn by your browser. For a PDF with selectable text from plain text, use TXT to PDF; to make a scanned-style PDF searchable, use OCR PDF.
- Scripts do not run, so pages that build their content with JavaScript (charts, some web apps) come out empty where the script would have drawn.
Common uses
- Reports and exports — test reports, analytics and logs that programs save as .html
- Saved e-mails and newsletters (.html) to keep or print
- Invoices, receipts and letters made from an HTML template
- Documentation and help pages saved for offline reading
- Your own HTML and CSS — check how a printable page looks on paper
Frequently asked questions
How do I convert an HTML file to PDF?
Click Open .html (+ pictures) and choose the file, or paste the HTML into the box. Check the preview, choose Letter or A4, and click Download PDF. The PDF is made while you edit, so one click saves it.
Can I convert a web page by its address (URL)?
Not with this tool. A page in your browser cannot fetch another website — that needs a server. Open the web page itself, press Ctrl+P (Cmd+P on a Mac) and choose Save as PDF. Or copy the page's HTML (right-click → View page source) and paste it here.
Why are my pictures missing?
Pictures with a path like images/photo.jpg live on your computer, and the browser cannot read your folders by itself. Add the picture files with Open .html (+ pictures) — they are matched by file name. Pictures from https:// addresses appear only if that website allows it.
Can I select the text in the PDF?
No. Each page is saved as a picture of the page, which is why every font and language looks right. If you need selectable text, convert plain text with TXT to PDF or Markdown with Markdown to PDF.
Does my CSS work?
Yes — <style> blocks, style="" attributes and style sheets linked with a full https:// address. The document is laid out in its own frame, so only its own CSS is used. Rules inside @media print are not applied; the page is drawn as it looks on screen.
Is my HTML uploaded?
No. The conversion runs in your browser, on your own device. The last HTML you used is kept only in this browser.
How to use it
- Paste your HTML into the box — or click Open .html (+ pictures), or drop the file on the box
- If the HTML uses pictures from your computer, add those picture files too
- Check the preview
- Choose the page size, orientation and margins, and whether to add page numbers
- Click Download PDF — the PDF updates by itself after each change, so it is always ready