Convert HTML to PDF without uploads

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.

  1. Upload a local HTML file
  2. OléPDF removes active content and lays out safe document elements
  3. Download the self-contained PDF

What HTML to PDF does

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.

How to convert HTML to PDF

  1. Add one or more .html or .htm files. Other extensions are rejected on the spot.
  2. Press Convert to PDF. The tool parses the file, strips active and unsafe elements, resolves the styles from the document's own style blocks and paginates the content.
  3. Download the PDF, named after the original with the suffix _pdf and a timestamp. The document title becomes the PDF title.
  4. Several files with the 7-Day Pass or Pro: they are converted one after the other and delivered as a ZIP with one PDF each, plus a small manifest listing inputs and outputs.

What is supported and what is left out

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.

Privacy: nothing is fetched, nothing is uploaded

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.

Typical uses

Frequently asked questions

Is HTML to PDF free?

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.

Why are my images missing from the PDF?

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.

Does it apply my CSS?

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.

Can I convert a live web page by URL?

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.

Is the text in the PDF selectable?

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.

PDF Converter

All tools

Photos rather than PDFs? Try OléPIC, our image tools.