HTML to PDF
Convert web pages and HTML to PDF
or drop here
Or paste HTML directly
Max file size: 50 MB
Drag to reorder · ↻ to rotate · × to delete
All pages removed — at least one must remain.
Dashed boxes mark text detected on this page — click one to edit it. Edited text covers the original when you save.
Page / — drag your signature to move it, use the corner handles to resize, the top handle to rotate · applies to all pages · applies to this page only
pages · Red dot shows where the number will appear
pages · Dot shows watermark position
Converting URL to PDF:
Upload exactly 2 PDFs: the first is the original, the second is the modified version.
HTML to PDF done!
Rate this tool
Thanks for your feedback!
/ 5 · ratings
Extracted Text Preview
Continue to...
How can you thank us? Spread the word!
Please share the tool to inspire more productive people!
How to use HTML to PDF
Upload
Select or drag & drop your file into the upload area above.
Configure
Adjust any settings shown in the options panel.
Download
Click the process button and download your file instantly.
Frequently Asked Questions
About HTML to PDF
This tool renders your HTML using mPDF, a PHP library purpose-built for turning HTML/CSS into PDF documents. It's worth being precise about what that means: mPDF is not a browser. It does not execute JavaScript at all, and its CSS support — while solid for standard document layout: text styling, tables, borders, background colors, web fonts, page breaks — does not reliably cover modern layout systems like flexbox or CSS grid the way a real browser engine does. If your HTML relies on JS to render content or on flexbox/grid for its layout, expect the output to differ from what you see in Chrome or Firefox.
Where mPDF is genuinely strong is exactly the kind of document this tool is aimed at: static, content-focused HTML like invoices, reports, email templates, and documentation pages built with conventional block/table layout. Upload an HTML file or paste HTML code directly — either way, external stylesheets and images referenced by URL are fetched during conversion, so keep in mind that publicly inaccessible or authenticated resources won't load.
Key Features
- Upload an HTML file or paste HTML code directly into the converter
- Solid support for standard CSS: text styling, tables, borders, backgrounds, web fonts, page breaks
- No JavaScript execution — content that requires JS to render will be missing from the output
- Limited support for flexbox and CSS grid — best suited to conventional block/table-based layouts
- External stylesheets and images fetched by URL during conversion
Tips for Best Results
- 1 If your page uses JavaScript to load or render content, that content won't appear in the PDF — this tool doesn't execute JS. Render to static HTML first if you need that content included.
- 2 Stick to standard block and table layouts rather than flexbox or CSS grid for predictable results.
- 3 For best results, include all CSS inline or in a <style> block rather than linking to external stylesheets that may require authentication.
Related Guides & Tips
How to Convert PDF to Excel Without Retyping Data
Trapped data in a PDF table? Learn how to convert PDF files to editable Excel spreadsheets in seconds, keeping rows, columns, and structure intact.
How to Convert PDF to PowerPoint (Editable Slides)
Need to edit a PDF presentation? Learn how to convert PDF files to fully editable PowerPoint slides while keeping layouts, images, and text intact.
How to Convert PDF to JPG Images (Every Method)
Need a PDF as an image? Learn how to convert any PDF page to a high-quality JPG, PNG, or image file for sharing, embedding, or archiving.
Report a Problem
Report sent!
Thank you for helping us improve.