HTML to PDF Converter

Turn a saved web page or HTML file into a PDF. Headings, text formatting, lists, tables, embedded pictures and links are kept. Scripts and remote files are never run or downloaded, and your file is never uploaded.

How to convert HTML to PDF

  1. Drop an .html file on the box above (for example a page saved with "Save page as", or an HTML export).
  2. Choose page size, margins and font. For non-Latin text choose the Browser print engine.
  3. Press Convert to PDF and download.

What is kept

Headings, paragraphs, bold/italic/underline, inline colours, lists, tables, pre-formatted code, block quotes, embedded (data URL) pictures, links and the page title.

Limitations

CSS layouts (columns, flexbox, positioned boxes), web fonts and backgrounds are not reproduced: the content is laid out as a clean document. Pictures linked from other websites are left out, because the converter never downloads files from other sites. To print a page exactly as a browser shows it, open it in the browser and use Print → Save as PDF.

Private: your file never leaves your device

Most online converters upload your file to their servers. This one doesn't: the conversion runs inside your browser with JavaScript, so contracts, CVs, bank statements and company spreadsheets stay on your computer or phone. The only downloads are the open-source converter libraries themselves (from the cdnjs CDN), the first time you use them. There is no server-side conversion on this site, so nothing is ever sent anywhere, and nothing is kept after you close the page.

Frequently asked questions

Can I convert a web page by URL?

No. Converting a URL would mean fetching it through a server. Save the page as an HTML file (Ctrl+S) and convert that.

Are scripts in the HTML file run?

No. The file is cleaned (sanitised) and only its content is used.

Why are some images missing?

Images that point to other websites aren't downloaded (privacy). Images embedded in the file are kept; "Save page as → Webpage, Single File" in some browsers embeds them.

More conversions

The same converter handles Word, PDF, ODT, RTF, TXT, HTML, Markdown, EPUB, Excel, CSV, JSON and PowerPoint files: drop any of them above, or see all supported formats. Related: Markdown to PDF, DOCX to PDF.

Privacy and browser support

Privacy and processing

Your text and files are processed in this browser tab and never uploaded. The first time you use it, the page downloads the open-source libraries a conversion needs (mammoth, SheetJS, JSZip, pdf-lib, PDF.js, marked, DOMPurify) from cdnjs.cloudflare.com, a public code CDN. Only the library file is downloaded; nothing you enter is sent.

Settings and saved work stay in this browser only. The privacy policy lists everything the site stores and lets you delete it.

Browser support

Works in current Chrome, Edge, Firefox and Safari. Very large files need plenty of memory, so on phones keep files to a few tens of MB.

After your first visit the site can keep an offline copy, so this page also works without a connection.