HTML to PDF
Convert any web URL into a clean PDF.
or click to browse — supports PDF files up to 100MB
How to use
- 1 Drop or click to upload your file
- 2 Adjust options if shown
- 3 Click Run Tool
- 4 Download your result instantly
- ✓ Files up to 1GB
- ✓ Unlimited jobs/hour
- ✓ Batch processing
- ✓ Priority support
Files are processed securely and permanently deleted within 1 hour. We never store, read, or share your documents.
Why this works
Convert an HTML file (.html or .htm) into a PDF \u2014 useful for archiving web pages you\u2019ve saved locally, generating reports from HTML templates, or sharing styled content as a fixed document.
HTML and PDF serve adjacent jobs: HTML is for live, interactive content that adapts to the viewer\u2019s device; PDF is for fixed, paginated content that looks the same to every recipient. Converting HTML to PDF is the right call when: you\u2019ve saved a web page locally and want it as a permanent record; you\u2019ve generated an HTML report (from a script, a templating tool, or a dashboard export) and need to share it as a single file; you need to print HTML content with reliable pagination that the browser\u2019s print dialog won\u2019t give you cleanly.
Drop in your .html or .htm file. Linked resources \u2014 CSS, images, fonts \u2014 are loaded if they\u2019re embedded inline (via `<style>` tags, data URLs, base64 image attributes) or referenced by absolute URLs to publicly accessible sources. Resources referenced by relative paths to other local files won\u2019t resolve, because we can\u2019t see your local filesystem. For an HTML page with linked CSS or images, save the page as \u201cHTML, Complete\u201d in your browser (which embeds resources) or use \u201cSave as MHTML\u201d and convert that instead.
Layout: the converter renders your HTML as a browser would, paginated at standard letter or A4 page size. Pages break at sensible content boundaries where possible \u2014 we won\u2019t split a single paragraph across pages, and tables generally stay intact. CSS `@media print` rules are honoured, so any print-specific styling in your HTML (hiding navigation, expanding link URLs, adjusting font sizes) takes effect in the PDF.
What doesn\u2019t convert: interactive content (forms, hovers, JavaScript-driven animations), embedded video and audio (a static frame is used if available), real-time data fetched by JS at page load. The output is a snapshot of what your HTML renders to at conversion time.
For producing PDFs from web pages programmatically (e.g. generating invoices from an HTML template), the typical pattern is: render the HTML server-side with your template values, save to a temp file, run through HTML to PDF, deliver to the user. Our API (in development) will support this flow natively without the temp file.
How it works
-
1Upload your HTML fileDrop your .html or .htm file into the upload box. Embedded CSS and images convert cleanly; externally-linked relative paths won\u2019t resolve.
-
2Save complete pages for best resultsIf your HTML uses linked stylesheets or images, save the page as \u201cHTML, Complete\u201d (or MHTML) in your browser so resources are embedded inline.
-
3Run the conversionPress Convert. Most pages convert in 3\u20136 seconds; complex pages with many images take a few seconds longer.
-
4Download the PDFYou\u2019ll get a paginated PDF that looks like your HTML did in print preview, with sensible page breaks and embedded fonts.
Real-world uses
Developers
Generate styled PDF reports from HTML templates with company branding, charts, and tables.
Bloggers
Archive a published post as a PDF for offline reading or sharing.
Researchers
Save documentation pages or scraped web content as permanent PDF records.
Marketing teams
Convert an HTML newsletter into a PDF for legal/compliance archival.
Common questions
Will CSS styling be preserved?
Yes \u2014 CSS embedded via `<style>` tags or linked from absolute URLs renders in the PDF. CSS `@media print` rules are honoured, so print-specific styling (hidden navigation, expanded link URLs) applies to the output.
What about images and fonts?
Inline (data URL, base64) and absolute-URL resources load and render. Relative-path resources (linking to other local files) won\u2019t resolve. For best results, save the source as \u201cHTML, Complete\u201d in your browser or save as MHTML \u2014 both embed resources.
Will JavaScript run?
JavaScript executes during rendering, but the PDF captures a single snapshot \u2014 interactive behaviours (hovers, click handlers, animations) don\u2019t survive into the PDF. Data fetched by JS at load time does appear in the PDF as static content.
Can I convert a webpage from a URL?
Not directly in this tool \u2014 we accept HTML files, not URLs. Workflow: save the webpage to a local HTML file (browser \u2192 File \u2192 Save Page As \u2192 HTML, Complete), then upload that. The forthcoming PDFRun API will accept URLs directly.
Will my output have page numbers?
Not by default \u2014 the output reflects your HTML\u2019s own pagination behaviour. To add page numbers, run the output through the Page Numbers tool, or add CSS `@page` rules with `@bottom-center { content: counter(page) }` to your source HTML.
What page size does it use?
Letter (US) by default, with the page size detectable from any CSS `@page` rule in your source. For A4 output, add `@page { size: A4 }` to your stylesheet before converting.