How to Convert HTML to PDF
Updated July 13, 2026
An invoice template, a formatted email, a report, a snippet of styled content — sometimes what you have is a chunk of HTML, and what you need is a shareable PDF.
Steps
- Open HTML to PDF and paste your HTML into the box.
- Click Convert to PDF.
- Download the paginated A4 PDF.
What “self-contained” means here
This tool renders your HTML the way a browser would, then paginates the result into A4 pages — but because it runs entirely client-side with no server fetching external resources on your behalf, the HTML needs to be self-contained. Inline styles or an embedded <style> block work well; external stylesheets, web fonts loaded from a CDN, and remotely-hosted images won’t load. If you need images in the output, embed them directly as data: URLs inside your HTML rather than linking to an external file.
Why it can’t fetch a URL for you
A tool that accepts any URL and fetches its content client-side would effectively let a web page make requests on your behalf from your browser — a real security and privacy risk, which is why browsers restrict this kind of cross-origin fetching by design. Instead, copy the page’s HTML source (or export it from whatever tool generated it) and paste that directly.
Notes
Because everything renders and converts locally, your content never touches a server — useful for drafts, internal documents, or anything not ready to share externally. Fidelity is good for self-contained markup but more limited than a full print engine for complex live sites; some advanced CSS may not render exactly as it would in a full browser print dialog. To convert a vector graphic instead of markup, use SVG to PDF; for plain text, use Text to PDF.