HTML PDF Toolkit

Turn pasted HTML or an .html file into a PDF, right in your browser

  • 100% Free
  • Files stay private
  • Works in your browser
Try it now·HTML PDF Toolkit

0 characters · 0 lines

Page setup

Paper, margins and quality. The preview lays your HTML out at the page width, the way the PDF is made.

OrientationTall
MarginsBalanced · 8 mm around the content
QualityBalanced · 2× scale · JPEG 92%
Example pageExample

A4 · Portrait · 210 × 297 mm. Add HTML to see it on the page here. Dashed lines show the margins.

Runs in your browser: your HTML isn't uploaded to make the PDF, and nothing is kept. Each page is saved as a picture of your HTML, so its text can't be selected. External images need CORS to be included.
Add some HTML first.

How it works

  1. Paste or upload HTML

    Type or paste markup into the HTML source box, or switch to the Upload .html tab and drop in an .html file.

  2. Set layout and quality

    Choose the Page size, Orientation, Margins and Quality, then press Convert to PDF.

  3. Download the PDF

    Check the Pages and Size under PDF ready, then press Download PDF to save your HTML as a PDF.

Convert raw HTML or an uploaded .html file into a clean, multi-page PDF right in your browser: free, no sign-up, no watermark, and completely private.

What Is HTML to PDF?

HTML to PDF renders your markup exactly as a browser would and captures the result as a multi-page PDF document. You can paste HTML source directly or upload an .html file, then tune the page size, orientation, margins and render quality before downloading. Because the conversion happens entirely on your device, your HTML and any local assets never leave your computer. Nothing is uploaded to a server.

Who Benefits from This Tool

  • Developers: quickly turn an email template, report or invoice layout into a shareable PDF for review.
  • Designers: export static HTML mockups to PDF for client sign-off without extra software.
  • Marketers: convert landing-page or newsletter HTML into printable one-pagers and handouts.
  • Educators and students: save HTML notes, worksheets or study guides as portable PDFs.
  • Freelancers and small teams: generate quotes and invoices from HTML with no subscription or watermark.
  • Privacy-conscious users: convert sensitive documents locally, so nothing is transmitted online.

Key Features

  • Flexible input: paste HTML source, upload an .html file, import one from Google Drive, Dropbox or a link, or try the sample page.
  • Page size choices: A4, Letter, Legal, A3, A5 and Tabloid to match your target format.
  • Orientation control: switch between portrait and landscape.
  • Margin presets: none, narrow, normal or wide to frame your content.
  • Render quality presets: Draft, Standard or High to balance file size against sharpness.
  • Multi-page output: long content flows automatically across as many pages as needed.
  • Live page preview: see your HTML laid out at the page width, with the margins and the start of each new page marked and an estimated page count, before you convert.
  • Early checks: scripts, images with relative paths, external images whose server blocks cross-origin access, embedded frames and very long pages are flagged before you convert.
  • Progress and cancel: follow each step, from loading images to laying out pages, and stop the conversion at any time.
  • Page thumbnails: check every page of the finished PDF, then download it or continue with another PDF tool such as Compress PDF or Add Watermark.
  • Fully in-browser: conversion runs locally, so your files stay on your device.
  • Free and unrestricted: no account, no watermark and no page limits.

How to Use

  1. Paste your HTML into the editor, upload an .html file, or try the sample page.
  2. Pick a page size (A4, Letter, Legal, A3, A5 or Tabloid) and set the orientation.
  3. Choose a margin preset (none, narrow, normal or wide) to control spacing around the content.
  4. Select a render quality preset: Draft for speed, Standard for everyday use, or High for the sharpest result.
  5. Check the live preview: it marks where each new page starts and shows roughly how many pages you will get.
  6. Click Convert to PDF and follow the progress. You can cancel at any time.
  7. Check the page thumbnails, then download the PDF or continue with another PDF tool.

Common Use Cases

  • Turning an HTML invoice or quote into a PDF to send to a client.
  • Exporting an email or newsletter template for print or archiving.
  • Saving a static report or dashboard mockup as a shareable document.
  • Converting HTML resumes or portfolios into a fixed-layout PDF.
  • Producing printable worksheets, certificates or handouts from HTML.
  • Archiving a snippet of rendered web content in a portable format.

Tips and Best Practices

  • Match the page size to your final destination: A4 or Letter for documents, Tabloid or A3 for wide layouts.
  • Use the High quality preset for crisp text and graphics when the PDF will be printed; Draft is fine for quick previews.
  • Choose the narrow or none margin preset for full-bleed designs, and wide margins for readable text documents.
  • Embed images as data URIs or host them with CORS enabled so they render in the output.
  • Add explicit widths and print-friendly styles in your HTML so the layout captures predictably.
  • Watch the marked page breaks in the preview: if one cuts through a table or an image, try landscape, a larger page size or different margins.

Limitations and Notes

An uploaded .html file can be up to 10 MB. The PDF is produced by capturing the rendered page as an image, so the resulting text is not selectable or searchable and can't be copied from the file. External images will only appear if the hosting server allows cross-origin (CORS) access; otherwise they may be skipped. Scripts are removed and inline event handlers never run, so anything JavaScript would draw (charts, widgets) is missing, and embedded frames such as videos and maps come out blank. Long content is cut into page-height slices, so a line of text or an image can be split between two pages. Very large or complex documents take longer to render, the High quality preset produces larger files, and a very long page may be more than some browsers can draw at High quality. Everything runs locally in your browser, so your HTML and assets are never uploaded to make the PDF.

FAQs

HTML to PDF supports A4, Letter, Legal, A3, A5 and Tabloid page sizes, each in portrait or landscape orientation, so you can match almost any print or screen format.

The margin presets (none, narrow, normal and wide) control the whitespace framing your content, while the Draft, Standard and High render quality presets trade rendering speed and file size against sharpness. Use High for print and Draft for fast previews.

The tool renders your HTML and captures it as an image before assembling the PDF, which preserves the exact visual layout but means the text is not selectable, searchable or copyable in the final file.

Images loaded from other websites can only be captured if that server permits cross-origin (CORS) access. If an image is blocked, embed it as a data URI or host it somewhere with CORS enabled so it appears in the PDF.

Yes. The live preview lays your HTML out at the chosen page width, marks the margins and the point where each new page starts, and shows roughly how many pages the PDF will have. Change the page size, orientation or margins and the preview updates right away.

No. Scripts are removed and inline event handlers never run, in the preview or during conversion, so anything a script would add to the page won't appear in the PDF. The tool tells you when your HTML contains scripts.

No. Conversion happens entirely in your browser, so your pasted HTML, the files you pick from your device and any local assets never leave it. If you import a file from Google Drive, Dropbox or a link, it passes through our server on its way to your browser and is not saved.

Yes, it's completely free with no sign-up required, and the generated PDFs contain no watermarks or page limits.

More PDF Tools

Other tools in PDF Tools.

All PDF Tools