Free HTML to PDF
Convert HTML into a PDF document: paste code or open an .html file, see it as pages, and save it with the page size and margins you choose. Scripts are removed for safety.
Runs on your device
What to do next
How to use HTML to PDF
- 1
Paste HTML or open an .html file.
- 2
Choose page size, margins and font.
- 3
Select Make PDF, or print to PDF with your browser.
HTML to PDF converts HTML code or an .html file into a PDF document, with the page size and margins you choose. Styles in the HTML are kept; scripts are removed for safety.
Everything happens in your browser.
Web pages
To save a page from the internet, open it and use your browser’s Print, choosing Save as PDF. To adjust it first, save the page as HTML and open the file here.
Best results
Simple layouts with headings, paragraphs, tables and images convert best. Very wide layouts are squeezed to the page width, so choose Narrow margins for them.
- Turn HTML or Markdown notes into a tidy PDF.
- Save generated reports as printable documents.
- The file is opened and processed by your browser on your own device. It is never uploaded, so no server, including ours, ever receives a copy.
- Your HTML is laid out in the page and saved as PDF on your device; scripts in the HTML aren’t run.
- Images are missing
- Images on other websites may block loading. Use images from the same site or embedded images.
Questions
Can I convert a whole web page by its address?
Not by address. Open the page, use your browser’s Print and choose Save as PDF, or save the page as .html and open it here.
Are my styles kept?
Yes, styles inside the HTML are used. Scripts and embedded frames are removed.
Something not working, or a question that isn’t here? Tell us about it
Related tools
More PDF tools
See all 45- PDF to WordPopularEditable .docx, even from scans
- PDF to ExcelNewTables from a PDF into Excel
- PDF to PowerPointNewEvery page as a slide
- PDF to ImagesSave each page as JPG or PNG
- PDF to JPGNewEvery page as a JPG image
- PDF to PNGNewPages as sharp PNG images
- PDF to TextNewAll the text of a PDF as .txt
- PDF to CSVPull tables out into a spreadsheet