Workspace / HTML to PDF

HTML to PDF

Convert HTML to PDF from a self-contained .html file on your computer. Scripts and outside links are blocked, and nothing is sent to a server.

Office to PDFOn your device
Choose a file

Single HTML file · .html, .htm, .xhtml. Single-file HTML conversion removes scripts and styles and does not load remote resources.

No file uploadsPowered by your deviceFree. No sign-up.
Convert to PDF · 100% Local Browser Execution

HTML to PDF in your browser

Turn a local HTML file into paginated PDF pages in your desktop browser, without sending its contents to a remote rendering service. To keep things safe and private, scripts, stylesheets, and links to outside resources are removed before conversion.

  • Converts local HTML files with no uploads.
  • Blocks scripts and outside network requests.
  • Runs in an isolated worker on your desktop.
  • Works best for simple, well-structured reports, invoices, and text.

How to use HTML to PDF

  1. Prepare an .html file that doesn’t link to any outside URLs or files.
  2. Choose the file in a desktop browser and let the converter start.
  3. Download the PDF and review the simplified layout.

Technical notes & limits

  • Rejects outside resource URLs and removes all JavaScript and CSS, including <style> blocks and inline styles.
  • Needs a desktop browser with SharedArrayBuffer and about 1 GB of free memory.

Why styles and scripts are removed

HTML files from unknown sources can hide scripts, tracking pixels, or styles that leak data. To make sure nothing reaches the network, we reject files that point to outside URLs and remove <script>, <style>, linked stylesheets, and inline styles before conversion.

How to prepare your HTML

Since styling is stripped, build your page with plain structure: <h1>–<h3> headings, <p> paragraphs, <table> grids, and <ul>/<ol> lists. If you need images, embed them as data: URIs.

Frequently asked questions

Can I paste a live website URL to convert to PDF?

No. It only accepts self-contained .html files from your device, and it blocks all outside network requests.

Why did my custom CSS layout disappear in the exported PDF?

For safety, all scripts, stylesheets, and inline styles are removed before conversion. The PDF is built from the page’s plain structure.

Are data URI images allowed inside the HTML file?

Yes. Content embedded in the file is fine. Any http://, https://, or protocol-relative link to an outside resource is rejected.