HTML to PDF
Convert HTML to PDF with your own browser as the renderer, so modern layouts, web fonts and SVG come out exactly as on screen — with searchable text, working links, bookmarks and page breaks that fall between lines, not through them.
- Input
- HTML, MHTML or a zipped page
- Output
- Searchable PDF or PDF/A
- Runs
- In your browser. The file never leaves your device.
- Cost
- Free. No sign-up, no watermark.
How to convert HTML to PDF
Save or choose your page
Open an .html file, a page saved as “Webpage, Single File” (.mhtml), or a .zip of a page and its folder of files. Several files can be converted at once.
Set up the page
Choose paper, orientation and margins, print or screen styles, a header and footer with page numbers, and PDF or PDF/A.
Check and download
Preview the first pages, then download one PDF, a merged PDF of every page, or a ZIP.
What the HTML converter handles
Drawn by your browser
The page is laid out and painted by the same engine you view it in, then placed on the PDF page. Grid and flex layouts, gradients, shadows, web fonts and SVG look exactly as they do on screen.
Text you can search and copy
Every word gets an invisible, selectable copy over the page, in any language — Chinese, Arabic or emoji included — so the PDF can be searched, copied and read aloud.
Links and bookmarks
Web links open in the browser, links within the page jump to their section, and headings become bookmarks you can navigate by.
Page breaks a print engine would choose
Pages break between lines, never through them. Images, table rows and headings with their first line stay together, and the page's own break-before and break-after rules are followed.
Print styles and clean output
The page's print styles apply as they do when printing, cookie banners and pop-ups are left out, collapsed sections are expanded, and scripts never run.
Complete saved pages
MHTML web archives and zipped pages keep their images, stylesheets and fonts. Nothing is fetched from the web unless you allow it.
PDF/A for archiving
Choose PDF/A-2u for long-term archiving: fonts embedded, sRGB colour, archival metadata and text mapped to Unicode.
Frequently asked questions
Can I convert a web page URL to PDF?
Save the page in your browser first — Save page as › Webpage, Single File saves an .mhtml file with all its images and styles — then convert that file here. Working from a saved file means pages behind a login convert too, and nothing about you is sent to another service.
Why does it look exactly like my browser?
Because your browser draws it. The page is laid out in a hidden frame at the paper's width and painted to high-resolution page images, with the text kept as a searchable layer and links kept as links.
Is the text still searchable and selectable?
Yes. Every word is placed invisibly over its image at the same position, so search, selection and copy work in any PDF viewer. Choose Document text · Office engine under Rendering if you need text that can be edited in another program.
Does it run JavaScript?
No. Scripts never run, for your safety and so the result is predictable. Images that a script would have loaded lazily are loaded anyway, and hidden sections are expanded. Save the page after it has finished loading for the most complete result.
How do I add page numbers or a header?
Open Header and footer and choose page numbers, the title with page numbers, a browser-style header and footer, or your own text with fields such as {page}, {pages}, {title} and {date}.
How do I put the whole page on one PDF page?
Choose One long page as the paper. The page becomes a single continuous PDF page, like a full-page screenshot, split only if it is longer than PDF allows (200 inches).
Which browsers are supported?
Current Chrome, Edge and Firefox. Safari restricts drawing web content to an image, so in Safari choose the Office engine.
Is my file uploaded anywhere?
No. HTML to PDF runs entirely in your browser: the file is opened and processed on your own device and is never sent to our server. More in the privacy policy.
Is HTML to PDF free to use?
Yes. HTML to PDF is free, with no account to create and no software to install — open the page in a modern browser and start.