Skip to content

Convert HTML to PDF

Paste HTML (or open an .html file) and get a clean, paginated PDF of its content. No URL fetching.

Loading tool…

How it works

Email templates, exported notes, documentation pages and generated reports are often plain HTML. Paste the markup (or open a saved .html file) and the tool reads its structure (headings, paragraphs, bold and italic, links, lists, quotes, code blocks, tables, rules and images embedded as data URLs) and lays it out as a tidy PDF with page breaks in sensible places.

For your safety and privacy, the HTML is parsed as inert data: scripts never run, CSS is ignored and nothing is loaded from the internet, so remote images and web fonts are skipped. That also means the PDF will not match a styled web page; it is a clean document of the content. The tool does not fetch URLs.

What each HTML element becomes

HTMLIn the PDF
<h1> to <h6>Headings in decreasing sizes
<p>, <br>Paragraphs and line breaks
<b>, <strong>, <i>, <em>Bold and italic text
<a href>The link text (the address is not followed)
<ul>, <ol>, <li>Bulleted and numbered lists
<blockquote>, <pre>, <code>Quotes and monospaced code blocks
<table>A table fitted to the page width
<hr>A horizontal rule
<img src="data:...">The embedded image
<img src="https://...">, <script>, <style>, <iframe>Skipped, for privacy and safety

For an email template or newsletter, save it as .html from your email tool and open the file here; for a page as it looks in a browser, with its layout and fonts, the browser's own Print > Save as PDF is the right tool.

How to use it

  1. Paste HTML into the box, or open an .html file.
  2. Choose the page size, orientation, margins and font size.
  3. Click Create PDF.
  4. Download the PDF.

Frequently asked questions

Are my files uploaded?

No. The file is read and processed by your browser on your device; nothing is sent to a server. The PDF engine is downloaded from this site the first time you use a tool and then runs on your device.

Can I enter a web address?

No. Fetching pages would mean sending requests from your browser to other sites; paste the HTML instead, for example with "View source" or "Save page as".

Why does my CSS not apply?

Styles are ignored on purpose so any HTML gives a readable, printable document. For a styled copy of a web page, use your browser's Print > Save as PDF.

Are images included?

Images embedded as PNG or JPEG data URLs are included. Images linked from the web are skipped and counted in the result.

Is the text selectable?

Yes, text is real PDF text in embedded fonts: Carlito for Latin, Greek and Cyrillic, and IBM Plex Sans Arabic for Arabic, which is joined and set right to left.