Turn a local .html or .htm file into a PDF with selectable text, headings, lists, tables and embedded PNG/JPG images. Active content is removed and network resources are never fetched.
100% private: everything runs on your computer, your files never leave your device.
HTML to PDF converts a local .html or .htm file into a PDF with real, selectable text: headings, paragraphs, lists, tables, quotes, code blocks and the images embedded in the file. It reads the markup with the browser's own parser, applies the styles found inside the document and lays the content out on A4 pages with a local PDF library. Nothing is uploaded, nothing is fetched and no script inside the HTML is ever executed.
It suits saved web pages, exported reports, email messages saved as HTML, documentation generated by a build, or any content you produce as HTML and want to hand over as a stable PDF. It is deliberately not a browser screenshot: it is a document converter that keeps the text as text, which makes the result searchable and light.
The layout engine understands a practical subset of HTML and CSS rather than the whole web platform. Pages are A4 with a 24 point margin, body text is 11 points, and fonts are the standard PDF families, sans, serif and monospace, chosen from the font family declared in the document. Text in Greek, Cyrillic, Hebrew or Japanese is covered by embedded fonts loaded from OléPDF's own domain.
The HTML is parsed into an inert document that is never attached to the page, so no script runs and no resource request is made, not even for an image or a font declared in the file. The PDF is written in memory by a library running in your browser tab. Your file is never uploaded and no third-party host is contacted. The only network traffic is OléPDF's own code and, if needed, its embedded fonts, both from its own domain.
For that reason the tool is also a safe way to open an HTML file you do not fully trust: whatever it contains, only the safe document elements end up in the PDF.
Yes. Converting one file at a time is free and unlimited, with no account and no watermark. Batch conversion of several files requires the 7-Day Pass or Pro.
Only images embedded in the HTML as base64 PNG or JPEG are kept. Images referenced by a URL or a file path are never fetched, for privacy. Embed them as data URIs before converting.
It applies the styles found in style blocks and inline attributes, within a practical subset: no external stylesheets, no ID selectors, no hover or pseudo-elements. Complex web layouts are simplified; grids and flex rows become tables or single paragraphs.
No. The tool only reads local files and never fetches anything. Save the page from your browser as an HTML file first, ideally with images embedded.
Yes. The content is laid out as real text with standard fonts, so it can be searched, selected and copied, and the file stays small.