DevToolsHub Free · Fast · 100% in your browser

HTML to PDF

Convert HTML or Markdown into a PDF document.

Choose "Save as PDF" in the print dialog. Scripts in your HTML are not executed.

About this HTML to PDF converter

Turn HTML or Markdown into a clean PDF document for invoices, reports, receipts and documentation. Set the page size, orientation and margins with CSS @page rules and preview the result before exporting. Conversion uses your browser's own print engine, so CSS, web fonts and images render exactly as they do on screen.

How to use the HTML to PDF

  1. Paste HTML or Markdown.
  2. Choose page size, orientation and margins.
  3. Click Download PDF and select Save as PDF.

Example

<h1>Invoice</h1><table>...</table>  →  invoice.pdf

Frequently asked questions

Does JavaScript in my HTML run?

No. The document is rendered in a sandboxed frame with scripts disabled, so only HTML and CSS are used.

How do I add page breaks?

Use the CSS rule page-break-before: always (or break-before: page) on the element that should start a new page.

Is my data safe?

Yes. The tool runs entirely in your browser using WebAssembly. Nothing you type or upload is sent to a server, logged or stored.

Is it free?

Yes, completely free with no sign-up, no limits and no watermarks. It also works offline once the page has loaded.

An unhandled error has occurred. Reload ✕