Skip to content
PDFERBeta
All guides

How to convert HTML to PDF

To convert HTML to PDF, open the HTML to PDF tool, then either upload an .html file or paste your markup — PDFER sanitizes and renders it to a PDF in your browser, with nothing uploaded.

Upload or paste

Upload a saved .html file, or paste raw markup directly. The HTML is sanitized before rendering, so scripts and unsafe tags are stripped.

Markdown instead?

If you're starting from Markdown rather than HTML, use Markdown to PDF, which handles headings, lists, and emphasis directly.

Tools mentioned in this guide

Frequently asked

Is external CSS or JavaScript executed?
The markup is sanitized before rendering — unsafe tags and scripts are removed — and everything runs locally in your browser.
Can I paste markup instead of uploading a file?
Yes. Switch to the paste mode and drop your HTML straight in.

Related guides