Skip to content

HTML to PDF

Paste HTML or open an .html file and turn it into a clean PDF with headings, lists, tables and links.

Paste HTML code, or plain text. Web addresses (URLs) can't be fetched; paste the page's code instead.

Up to 10 MB.

Simplified layout: headings, paragraphs, lists, tables, links, bold and italic, and simple inline styles come across. Style sheets, web fonts, scripts and page layouts (columns, flex, grid) don't. For a pixel-perfect copy of a web page, use your browser's Print › Save as PDF.

Nothing you enter leaves your device. Everything runs in your browser.

How to use it

  1. Paste HTML code or plain text into the "HTML" box, or press "Open .html file".
  2. Pick the "Page size" (A4, Letter or Legal) and "Orientation".
  3. Press "Convert to PDF".
  4. Download the PDF and open it to check the layout.

Examples

An emailed invoice
Input
invoice.html with a heading, a table and a list
Output
invoice.pdf with the table and list kept
Plain text notes
Input
Two paragraphs of text pasted with no tags
Output
page.pdf with two paragraphs
A page with web images
Input
HTML with
Output
PDF without those images, and a note explaining why

What comes across

The HTML is read and laid out as a document. Headings, paragraphs, line breaks, bold, italic and underline, links, bulleted and numbered lists, tables with borders, block quotes and simple inline styles such as style=”color:#0a7a55″ or text alignment come across. Pictures are included when they’re embedded in the HTML as PNG or JPG data (data:image/png;base64,…). The page title becomes the PDF’s title.

Scripts, style sheets, web fonts and page layouts made with CSS columns, flexbox or grid are not applied, so the result looks like a clean document rather than the original web page. Text uses the built-in Roboto font, which covers Latin, Greek and Cyrillic letters but not Urdu, Hindi, Arabic or Chinese yet.

No web addresses

The tool doesn’t fetch pages or files from the internet: everything stays in your browser, and other websites don’t allow their pages to be read this way anyway. So you can’t type a URL; paste the page’s HTML instead. For the same reason, pictures linked from other sites are left out, and the message tells you how many. To save a live web page exactly as it looks, open it and use your browser’s Print › Save as PDF.

Good uses

  • Saving an HTML email receipt, booking or invoice as a PDF for your records.
  • Turning notes or a snippet of formatted text into a printable page.
  • Making a quick PDF from HTML that your own app or template produced.
  • Printing a formatted snippet, such as a table copied from a web page.

If you paste plain text with no tags, it’s treated as text: blank lines start new paragraphs and single line breaks are kept. Files up to 10 MB can be opened. Your HTML is opened and processed in your browser, so it is never uploaded to a server.

Frequently asked questions

Can I convert a website by its URL?

No. The tool doesn't fetch web pages. Paste the page's HTML, or open the page and use your browser's Print › Save as PDF for an exact copy.

Why doesn't my CSS styling show?

Style sheets and layouts like flexbox and grid aren't applied. Simple inline styles such as colours, bold and alignment do come across.

Why were my images left out?

Images linked from other websites can't be fetched. Embed them as PNG or JPG data URLs to include them.

Can I convert plain text?

Yes. Paste it and press "Convert to PDF"; blank lines become paragraph breaks.

Is my HTML sent anywhere?

No. It's converted in your browser and stays on your device.

Guides

See all PDF & Image

Can’t find the tool you need?

Tell us what you’re looking for. We add new tools every month, and the most requested ones come first.

Request a tool