Home › PDF Toolbox › HTML to PDF
🌐

HTML to PDF

Convert HTML files or pasted HTML to PDF.

✓ Free✓ No watermarkBasic
Advertisement
  1. 1Upload
  2. 2Settings
  3. 3Download

How to use HTML to PDF

Add your file (or type your content) using the box above.
Adjust the options if you want something different from the defaults.
Click the button, then download your result.

About HTML to PDF

HTML to PDF turns a web page you have saved, or HTML you paste in, into a PDF document. It is useful for archiving an article, printing a generated report or invoice template, or sharing the content of a page in a format anyone can open.

This free Basic version reads the structure of the page: headings, paragraphs, bold and italic text, links, lists, tables, preformatted code and embedded images. Scripts are ignored, and page styling such as CSS layouts, web fonts and background colours is not applied, so the result is a clean, readable document rather than a copy of how the page looks in a browser. HTML to PDF Pro is the best option when you need the full page styling.

How it works: the tool takes the HTML you provide and renders it into the pages of a PDF in your browser, applying the page content and styles it can see. It is useful for turning a snippet, an invoice template or a saved page into a portable document.

Step by step: 1) paste or add your HTML; 2) convert; 3) preview the PDF; 4) download. Keep layouts simple and check page breaks.

Realistic limits: it renders the HTML you supply, not a live website, so it cannot reach into protected pages, run your site's scripts, or log in. External images and fonts may be blocked or missing if they are not embedded. Very complex CSS, such as advanced grid, animations or print-specific rules, may look different from your browser. Long pages split across pages wherever the content falls.

Typical uses: producing an invoice or certificate from a template, saving formatted notes, or making a printable handout.

Writing HTML that converts well: use a simple structure of headings, paragraphs, lists and tables, with CSS in a style block. Set widths in relative units or a fixed page-friendly width. Avoid fixed-position elements, scripts and animations, which have no place in a printed page. Embed images as data URIs so they do not depend on outside servers.

Checking output: look at page breaks, particularly tables that cross pages and headings stranded at the bottom. Use CSS properties such as page-break-inside to avoid splitting rows. If fonts look different, specify common fonts or embed one. For documents you generate repeatedly, such as invoices, keep a tested template and change only the data.

Tips for better results

  • Use “Save page as → Web page, HTML only” in your browser and choose that file, or paste the HTML into the box.
  • Pictures must be embedded in the HTML (data URLs). Images loaded from the web are left out.
  • Pick A4 or US Letter to match where the PDF will be printed or filed.
  • Plain text? Text to PDF is simpler. Need a Word file? Try Word to PDF.
  • Use inline styles or embedded CSS and embed images as data URIs.
  • Use a fixed width layout that fits an A4 or Letter page.
  • Test a short sample before converting a long document.