HTML to PDF Converter

Turn HTML code or a saved .html file into a PDF with selectable text, using the page's own styles. Free, works in your browser, nothing is uploaded.

Runs in your browser. Your files are never uploaded. How it works

Paste the HTML of a page or open a saved .html file; a web address cannot be fetched here. Styles inside the file are used. Scripts do not run, and pictures, fonts and stylesheets from other sites are not loaded.

HTML to PDF saves HTML as a PDF: an invoice or a report you generate, an email template, a page you saved, or code you are writing. Paste the HTML or open an .html file, choose the page size and margins, and download a PDF with selectable text that uses the styles in the file.

Test page

A monthly report with its own styles (Georgia, an orange heading, a blue note box, a 30-row table), one picture and one stylesheet linked from another site:

Page one of the PDF: the orange Monthly report heading, the blue note box, and the start of the orders table
The PDF in a viewer. The remote picture shows as its alt text, [chart].

It became a 2-page, 11 KB PDF in 1.1 s, and the text can be searched (“Orders rose 6%” is found). The status line said 2 remote items were left out: the picture and the linked stylesheet. The file was named after the page title, Monthly report September 2026.pdf.

It is meant for HTML you have, not for websites by address, and complex layouts made for screens (fixed sidebars, JavaScript apps) will not look the same on paper.

For documents written in Markdown, use Markdown to PDF.

Frequently asked questions

Can I convert a web page by its address?

No. Fetching a page from another site needs a server, and this tool has none. Open the page in your browser, save it with Ctrl+S (or Cmd+S) as an .html file and open that file here, or use the browser's own Print, Save as PDF.

Are the page's styles used?

Yes. Styles inside the file (style tags and style attributes) are applied. Stylesheets, fonts and pictures that load from other sites are left out, because nothing is fetched from other servers; the result tells you how many.

Do scripts run?

No. Scripts, forms and frames are removed for safety. Pages that build their content with JavaScript come out empty or partial.

Is the text selectable?

Yes. The PDF has real text, not a picture of the page, so it can be searched and copied.

Is my HTML uploaded?

No. It is converted in your browser.

Related tools