HTML to PDF Converter
Convert any URL, HTML code, or .html file to PDF — free, no sign-up
Convert HTML to PDF in three ways: paste a URL to convert any live webpage, paste raw HTML code directly, or upload an .html file. Choose between A4 and Letter page sizes, portrait or landscape orientation, and set custom margins. Perfect for saving web articles, invoices, reports, and any HTML content as a PDF.
Frequently Asked Questions
About HTML to PDF
Convert HTML to PDF in three ways: paste a URL to convert any live webpage, paste raw HTML code directly, or upload an .html file. Choose between A4 and Letter page sizes, portrait or landscape orientation, and set custom margins. Perfect for saving web articles, invoices, reports, and any HTML content as a PDF.
How to Use HTML to PDF
- Choose input method: URL, HTML code, or .html file
- Paste your URL or HTML, or upload your file
- Select page size, orientation, and margins
- Click Convert to PDF and download
Three ways to convert
- From URL: paste the address of any public web page, such as an article, a receipt page or online documentation.
- Paste HTML: paste HTML code, for example an invoice or report template you generate yourself.
- Upload .html: upload an HTML file saved on your computer.
How the page is rendered
The conversion runs in a real Chromium browser, the engine behind Google Chrome. Modern CSS such as flexbox, grid, web fonts, background colours and images renders the way it does when you use Print and Save as PDF in Chrome, including any print styles the page defines. The converter waits for the page to finish loading, for up to 30 seconds, before it creates the PDF.
Limits to know about
- Only public pages work. A page behind a login, paywall or bot check is captured as the login or check screen. For those, open the page in your own browser and use Print, then Save as PDF.
- Pages that keep loading content as you scroll may be cut off where the first load ends.
- In pasted or uploaded HTML, images and stylesheets with relative paths (like images/logo.png) cannot be found. Use full https:// addresses or embed the images.
- Page size is A4 or US Letter, portrait or landscape, with margins from 0 to 50 mm. If your HTML already has its own margins, set the margin to 0.
Learn More
You May Also Like
Word to PDF
Convert Word documents to PDF format with perfect formatting
Compress PDF
Reduce PDF file size without losing quality
Merge PDF
Combine multiple PDF files into one document
Watermark PDF
Add a text or logo watermark to all or chosen pages. Set position, opacity, color and rotation.