HTML Converter

HTML to PDF Converter

Paste HTML or upload an .html file and turn it into a PDF, as clean text or with the exact page layout.

Preview

How to convert HTML to PDF

  1. Paste your HTML, or switch to Upload .html file.
  2. Check the live preview and choose page size, orientation and margins.
  3. Click Download PDF for a clean, text-based PDF, or Exact layout to keep your CSS design (pick "Save as PDF" in the print dialog).

Two ways to convert

Download PDFExact layout
TextReal, selectable textReal, selectable text
CSS design, colors, columnsSimplified to clean formattingKept as rendered
Headings, lists, tables, links✓✓
ImagesEmbedded (data URI) PNG/JPGAny that load in the preview
Best forDocuments, articles, reportsDesigned pages, invoices, receipts

Safe by design

Your HTML is converted in your own browser. Scripts and event handlers are stripped before the preview, so pasted code can't run or track you.

Frequently asked questions

What's the difference between the two buttons?
Download PDF rebuilds your content (headings, text, lists, tables, links, images) into a clean PDF with real, selectable text — great for documents and articles. Exact layout opens your browser's print dialog, which renders the HTML with all its CSS; choose "Save as PDF" as the printer. Use it when the precise design matters.
Can I convert a website by URL?
Browsers don't allow one site to download another site's pages, so paste the page's HTML instead (right-click → View page source → copy), or save the page as an .html file and upload it. For a quick copy of any page you're viewing, press Ctrl+P (Cmd+P on Mac) and choose Save as PDF.
Is my HTML uploaded?
No. Everything is converted in your browser. Scripts in your HTML are removed for safety and never run.
Why are some images missing?
In Download PDF mode, only images embedded as data (PNG or JPG data URIs) can be included; images linked from other websites are blocked by browser security. Exact layout mode can show linked images that load normally.