PDF Tools
HTML to PDF
Convert HTML web pages to PDF. Free online tool — no upload, no sign-up, runs entirely in your browser.
See how to use this toolHTML to PDF
Upload or paste HTML and create a clean text-based PDF in your browser.
Page size
Margins
Scripts and styles are removed before conversion. The output is a clean text-based PDF.
Process files to see download results.
Privacy: PDF and image files are processed in your browser. Recommended limit: files under 100 MB or a few hundred pages; encrypted or scanned PDFs may need extra memory.
About HTML to PDF
ToolConv's HTML-to-PDF converter renders an HTML file or pasted markup into a PDF directly in your browser, using a client-side rendering engine that respects CSS print styles. Hand it a local .html file, an .htm archive, or raw markup pasted into the editor, and it produces a paginated PDF with your @page rules, page breaks, and print media styles honored.
Because rendering happens on your device, you can convert internal documentation, draft blog posts, or contract templates without sending them anywhere. The tool supports A4/Letter sizes, custom margins, header/footer injection, and clickable hyperlinks in the output PDF.
How to use it
- 1Upload an .html/.htm file, or paste raw HTML into the editor.
- 2Set page size, margins, and optional header/footer.
- 3Toggle 'respect print media CSS' if your styles use @media print.
- 4Click Convert to render the PDF locally.
- 5Download the paginated PDF.
When to use it
- ✓Archiving a blog post draft as a PDF for offline review.
- ✓Rendering an HTML invoice template into a PDF for emailing.
- ✓Producing a printable PDF from internal documentation written in HTML.
- ✓Snapshotting a contract template's rendered output before sending.
Features
- •Accepts file upload, pasted markup, or a fetched URL.
- •Honors @page rules, page-break properties, and print media CSS.
- •Custom margins and header/footer text injection.
- •Clickable hyperlinks preserved in the output PDF.
Related tools
Markdown to PDF
Convert Markdown documents to PDF. Free online tool — no upload, no sign-up, runs entirely in your browser.
Word to PDF
Convert Word documents to PDF. Free online tool — no upload, no sign-up, runs entirely in your browser.
PDF to Text
Extract text from PDF files. Free online tool — no upload, no sign-up, runs entirely in your browser.
Edit PDF
Add text, images, and annotations to PDF. Free online tool — no upload, no sign-up, runs entirely in your browser.
Unlock PDF
Remove password protection from PDF files. Free online tool — no upload, no sign-up, runs entirely in your browser.
HEIC to PDF
Convert HEIC/HEIF photos to PDF. Free online tool — no upload, no sign-up, runs entirely in your browser.
Compress PDF
Reduce an image-heavy PDF by rendering each page as a compressed image. Choose a level and compare the resulting file size.
Crop PDF
Crop PDF pages to remove unwanted margins. Free online tool — no upload, no sign-up, runs entirely in your browser.
FAQ
Can I convert a live website by URL?
Yes, for public URLs that allow cross-origin fetching. Sites behind logins, paywalls, or strict CORS policies may fail — for those, save the page as HTML and upload the file instead.
Is my HTML content uploaded?
No. Rendering to PDF happens in your browser; even URL fetching goes through your browser's fetch, not our server.
Does it support modern CSS like flexbox and grid?
Mostly yes — the rendering uses the browser's own engine, so flexbox, grid, and custom properties work. Some experimental CSS features may render differently than in the latest Chrome.
Will external images and fonts load?
Yes, if they're publicly accessible and allow cross-origin loading. Cross-origin images without CORS headers are rasterized but may taint the canvas; embed images as data URIs for guaranteed rendering.
Can I add page numbers to the PDF?
Yes. Use the header/footer fields to inject text; combined with @page CSS counter rules you get automatic page numbers in the footer of every page.
Why does my print stylesheet not apply?
Toggle 'respect print media CSS' on. Without it, the renderer uses screen styles; with it on, @media print rules take precedence just like a real print preview.