HTML to PDF
Convert an HTML file into a clean, paginated PDF with selectable text.
Drop your document here, or click to select
HTML, HTM · Max 100MB
Turn HTML documents into paginated PDFs
HTML flows; PDF pages don't. Converting an HTML file to PDF freezes a document that renders differently on every screen into fixed pages that print, archive and share identically everywhere. The conversion runs server-side through LibreOffice's web-document engine, and the output keeps real, selectable text — not a screenshot.
What this tool is best at
Document-shaped HTML: exported reports, invoices from billing systems, email receipts saved as HTML, documentation pages, anything built from headings, paragraphs, tables and inline styles. Tables paginate with their rows intact, anchor links stay clickable, and content breaks across A4-style pages the way printing would break it.
What it is not
It is not a headless browser. JavaScript does not execute, web fonts and complex CSS grid/flex layouts may simplify, and images referenced by URL are not fetched — only the single file you upload is processed (images embedded as data URIs convert fine). Two practical consequences:
- For a pixel-perfect capture of a live, styled web page, your browser's own Print → "Save as PDF" is the right tool — it renders with the full browser engine.
- For clean, archival, text-first output from an HTML document, this converter is faster and produces a smaller file with selectable text.
Getting the best result
- Save the page as "Webpage, HTML Only" (Ctrl+S in any browser) — the single-file variant this tool expects.
- Inline any critical images as data URIs, or accept that remote images will be skipped.
- Convert, then adjust downstream: [Resize PDF](/resize-pdf) for a different paper size, [Number Pages](/number-pages) for pagination, [Merge PDF](/) to combine several converted documents.
Related conversions
Word, Excel and PowerPoint files have dedicated converters at [Word to PDF](/word-to-pdf), [Excel to PDF](/excel-to-pdf) and [PowerPoint to PDF](/powerpoint-to-pdf) — and [Office to PDF](/office-to-pdf) accepts all of them in one place. Files up to 100 MB, transferred over HTTPS and deleted after processing.
How it works
- Save your web page or HTML document as an .html file.
- Upload it or drag it onto the upload area.
- Click Convert to PDF and wait a few seconds for the render.
- Download a paginated PDF with selectable text.
Frequently Asked Questions
Can I convert a live web page by its URL?
Not directly — this tool converts an HTML file you upload. To capture a live page, save it from your browser first (Ctrl+S → "Webpage, HTML Only") and upload that file. For a pixel-perfect copy of a complex page, your browser's own Print → Save as PDF is often the better tool; this converter shines for HTML documents, reports and exports.
How is the HTML rendered — will it look like it does in my browser?
Rendering runs through LibreOffice's web-document engine, which handles document-style HTML (headings, paragraphs, tables, inline styles) well. It is not a full modern browser: complex CSS layouts, JavaScript-generated content and web fonts may simplify. Text stays real, selectable text in the PDF.
What happens to images referenced by the HTML?
Images embedded as data URIs convert reliably. Images referenced by external URLs or relative paths may be missing, since only the single .html file you upload is processed — inline critical images before converting.
Do hyperlinks survive the conversion?
Yes — anchor links in the HTML come through as clickable links in the PDF, so tables of contents and external references keep working.
How does pagination work — HTML has no pages?
Content flows onto A4-style pages, breaking at natural block boundaries, similar to printing the document. Long tables split across pages with their rows intact. To control the paper size afterward, run the result through Resize PDF.
