HTML to PDF

HTML to PDF

Convert HTML files to PDF with full styling preserved.

Upload .html files or paste code
CSS styles preserved
Images rendered
Clean PDF output
HTMLHTM

HTML to PDF at a glance

The essentials before you convert.

Price
Free, with no watermark. No sign-up needed. A free account converts up to 3 HTML files or links at once.
Input
HTML files, pasted code or a link. Upload .html, .htm or .xhtml files, paste HTML code, or enter a web address.
You get
A PDF rendered by a real browser. Modern CSS, web fonts and JavaScript are supported. Pages are A4 with 15 mm margins.
Limits
1 file up to 80 MB without an account. With a free account: 3 files at once, 80 MB each, 120 MB in total. Pasted code converts one page at a time.
Works on
Any browser, nothing to install. Windows, Mac, Linux, Chromebook, iPhone and Android.
Privacy
Rendered on our server, then deleted. Each page loads in an isolated browser; files are removed automatically within one hour.

How to convert HTML to PDF

1
Pick your input mode: paste a URL, upload one or several .html files from your device or cloud (Google Drive, Dropbox, OneDrive), or paste raw HTML code directly.
2
For an uploaded .html file, a code preview of your HTML source appears in the sidebar so you can confirm you picked the right file before converting.
3
Click Convert to PDF. A real Chromium browser renders the page, so fonts, images, CSS styling, JavaScript-rendered content, and links are all preserved in the final document.
4
Download your PDF, save it back to the cloud, or send it straight into another tool like Merge or Sign.

Why use our HTML to PDF converter

Three input modes
Paste a URL, upload one or more .html files, or paste raw HTML code - whichever is closest to your source.
URL to PDF
Drop in any public webpage URL and we render it cleanly, including CSS, images, and web fonts.
.html file upload
Convert local HTML files complete with their styling - useful for offline mockups and exported templates.
Raw HTML paste
Developer-friendly: paste HTML and CSS directly to test markup or generate documents from code snippets.
Real browser (Chromium) rendering
Every mode renders in a real headless Chromium engine, so the PDF matches what a modern browser shows.
Modern CSS & JS
Full flexbox and grid, web fonts, and JavaScript-rendered content all come through - powered by the Chromium engine.
Code preview
Uploading an .html file shows a preview of its source code in the sidebar, so you can confirm the right file before converting.
Batch processing
File uploads and URLs run in batch - up to 3 at once with a free account (80 MB each, 120 MB total). Each becomes its own clean PDF.
Cloud import
Pull .html files from Google Drive, Dropbox, or OneDrive without a local download step.
Workflow chaining
Send the resulting PDF straight into Merge, Compress, Sign, or any other tool without re-uploading.
Free, no watermark
No watermark on the PDF, no signup needed for single jobs, no per-day cap on conversions.

Frequently asked questions

How do I convert an HTML file to PDF for free?

Upload your .html file in the box above, or switch to pasting code or entering a link, and convert. You download a PDF of the rendered page. It's free, with no watermark and no sign-up.

Can I paste HTML code and get a PDF?

Yes. Choose HTML code, paste your markup including any CSS in style tags, and convert. It's handy for invoices, reports and templates you generate yourself.

Does it support CSS, web fonts and JavaScript?

Yes. Pages are rendered by Chromium, the engine behind Chrome, so flexbox, grid, web fonts and JavaScript work as they do in a modern browser. Scripts run before the PDF is captured, so charts and dynamic content appear.

Why are the images missing from my PDF?

Images and stylesheets on the web, linked with full https addresses, load normally. Files referenced from your own computer, such as images in a local folder, can't be reached by our server. Use full web addresses or embed images directly in the HTML as data URIs.

How do I convert a saved Chrome HTML document or an HTML invoice to PDF?

Upload the .html file you saved or received, such as an e-mail receipt or an electronic invoice, and convert it. If it shows images from the web, they load as long as they're still online.

Can I convert a web page link to PDF?

Yes. Choose From URL and paste the address. For saving web pages there is also a dedicated tool, Web Page to PDF, with more page-size options.

What page size and margins does the PDF use?

HTML files and pasted code are converted to A4 pages with 15 mm margins. Long pages flow onto as many pages as needed. Use CSS such as page-break-before to control where pages break.

Can I save HTML as PDF on iPhone or Android?

Yes. Open this page in Safari or Chrome, upload the HTML file or paste the code, and convert. The PDF is saved to your downloads; no app is needed.

Can I convert several HTML files at once?

With a free account you can convert up to 3 HTML files or 3 links at once (files 80 MB each, 120 MB in total). Each becomes its own PDF, and you can download them all together.

Can I convert pages on localhost or my company intranet?

No. For security, our server only loads public web addresses; private, local and internal network addresses are blocked. Save the page as an .html file and upload it instead.

Is the PDF editable?

The PDF keeps the page's layout and text, so the text can be selected and searched. To change wording afterwards, open it in Editly, or edit the HTML and convert again.

Are my files kept private?

Yes. Files are sent over an encrypted HTTPS connection, rendered in an isolated browser on our server and deleted automatically within one hour. They aren't shared with anyone or used to train AI.

Use our other tools

EditlyEditlyMerge PDFMerge PDFSplit PDFSplit PDFCompress PDFCompress PDFSign PDFSign PDFScan PDFScan PDFTranslate PDFTranslate PDFPassport PhotoPassport PhotoQR Code GeneratorQR Code GeneratorWeb Page to PDFWeb Page to PDFPDF to WordPDF to WordWord to PDFWord to PDFPDF to JPGPDF to JPGJPG to PDFJPG to PDFPDF to PPTPDF to PPTPPT to PDFPPT to PDFPDF to ExcelPDF to ExcelExcel to PDFExcel to PDFProtect PDFProtect PDFUnlock PDFUnlock PDFRotate PDFRotate PDFCrop PDFCrop PDFDelete PagesDelete PagesOrganize PDFOrganize PDFRedact PDFRedact PDFWatermark PDFWatermark PDFOCR PDFOCR PDFPage NumbersPage NumbersCompress ImageCompress ImageConvert to JPGConvert to JPGRemove BackgroundRemove BackgroundWatermark ImageWatermark ImageChat with PDFChat with PDFAI CV OptimizerAI CV Optimizer