HTML to PDF
Choose an .html file (with its images, if they are separate) or paste the code. Your browser lays it out with the same engine that shows web pages, and you save it as a PDF whose text stays text. Nothing is uploaded.
Or paste the HTML code
Preview
How to convert HTML to PDF
- Choose the .html file — and its images or its folder, if they are separate — or paste the code.
- Pick the paper size and margins if you want to change them, and check the preview.
- Press "Save as PDF" and, in the print window, choose "Save as PDF" as the destination.
Why it goes through the print window
Laying out a web page is what a browser does best: flexbox, grid, web fonts, tables that break across pages. Libraries that turn HTML into PDF on their own each support part of CSS and get the rest wrong, which is why the same page so often comes out different. Here the browser you are using does the layout — the same engine headless Chrome uses on a server — and its print window writes the PDF: the text stays selectable, links keep working, and the result matches the preview.
Images, stylesheets and fonts
An .html file often points at other files: a logo, a stylesheet, a font. Choose them together with the page, or add the whole folder, and they are put inside the document before it is printed. A page saved from the browser as "Web page, complete" comes with a folder called name_files: that is the one to add. Whatever it links to on the internet is left out unless you tick the box, because loading it means contacting those sites.
Page breaks and paper size
The page's own print rules are kept: if its CSS sets the paper size, the margins or where a page must break (@page, break-before, break-inside: avoid), that is what you get. Choose a size or margins here only to override them.
Is it private?
Yes. Everything runs inside your web browser, using your own device. Nothing is uploaded to any server, so your documents stay completely private. How does this work without uploading?
Frequently asked questions
Are my files uploaded?
No. The page is prepared and laid out in your browser, and the PDF is written by your browser's print window. You can disconnect from the internet after this page loads and it still works.
Why does a print window open instead of a download?
Because the print engine is the only part of a browser that writes a PDF with real text, and a web page cannot use it without that window. In Chrome and Edge choose "Save as PDF"; in Firefox, "Save to PDF"; on a Mac, the PDF button at the bottom of the dialog.
The date and an address appear on every page.
That is the "Headers and footers" option of the print window: untick it under "More settings". Choosing "None" in the margins here also removes them.
Can it convert a web address (URL)?
No: fetching a page from another site would need a server in between, and this site has none. Open the page, save it with Ctrl+S as "Web page, complete", and choose the .html file and its folder here — or print it straight from the browser.
The colours or the background images are missing.
Browsers leave backgrounds out of print to save ink. The "Print background colours and images" box, on by default, tells them not to; if something is still missing, tick "Background graphics" in the print window.
Does it work on a phone?
Yes: on Android and iPhone the page opens in a tab of its own and the phone's print screen appears; choose "Save as PDF" there. Scripts do not run on a phone.