HTML to PDF

Convert HTML code or an .html file to PDF: live preview, page size, orientation and margins. Scripts never run. In your browser.

Turn HTML — an email template, an invoice, a report or a saved web page — into a PDF. Paste the code or open an .html file, check the live preview, choose the page size and margins, and save.

The HTML is shown in a locked-down preview where scripts never run, and nothing is uploaded.

How to use HTML to PDF

  1. Paste your HTML code, or click “Open .html file”.
  2. Check the live preview; choose page size, orientation and margins.
  3. Click “Download PDF”, or “Print → Save as PDF” for selectable text.
  4. Save your PDF.

Features

  • Live preview while you type.
  • A4 or US Letter, portrait or landscape, three margin sizes.
  • Inline CSS and images (data URLs and public image links) supported.
  • Safe: scripts in the HTML never run.
  • No upload, no sign-up, no watermark.

Frequently asked questions

Can I enter a website address?

No — a tool that runs in your browser can't download other websites. Save the page in your browser (File → Save page as… → Web page, HTML only), then open that file here.

Why don't some images appear?

Images with relative paths, or from sites that don't allow it, can't be loaded. Use full image addresses (https://…) or images embedded as data URLs.

Is JavaScript in my HTML run?

No. For safety, the preview never runs scripts, so content created by JavaScript won't appear.

Is my HTML uploaded?

No. It is rendered and converted by your own browser.

Related tools