HTML to PDF Converter

Basic HTML and inline CSS are rendered locally. Scripts, forms, embedded pages, external resources, and active attributes are removed before rendering.

/ 100,000

Turn a self-contained HTML snippet into a PDF without sending its source to a server. This converter is useful for simple invoices, notes, tables, and reports that use standard HTML with basic inline styling. The browser sanitizes the markup, renders it as an image, and places that image across one or more PDF pages.

How to convert HTML to PDF

  1. 1

    Paste the HTML

    Enter up to 100,000 characters of self-contained markup. Scripts, forms, embedded pages, images, external resources, and active attributes are removed.

  2. 2

    Choose the page

    Select A4, Letter, or Legal, portrait or landscape, and content padding from 0 to 200 pixels.

  3. 3

    Review the limits

    Confirm the settings and remember that the result is a raster PDF, not a browser print or text-based PDF.

  4. 4

    Generate and download

    The browser creates the PDF locally and exposes a download only in the current tab.

What this HTML renderer supports

The converter supports common text and layout elements such as headings, paragraphs, lists, tables, quotations, and semantic containers. It keeps a conservative set of inline CSS properties for colors, typography, spacing, borders, dimensions, and basic alignment.

Output characteristics

Setting Available choices
Page size A4, Letter, Legal
Orientation Portrait, landscape
Content padding 0 to 200 px
Source length Up to 100,000 characters
PDF content Raster image split across pages

The browser first builds a sanitized, off-screen document. html2canvas then creates a visual representation of that document, and jsPDF embeds the resulting JPEG image into PDF pages. Because this is a visual capture rather than a print engine, output can differ from normal browser rendering.

Deliberate limits

  • External images, stylesheets, fonts, frames, and other network resources are removed.
  • <script>, forms, SVG, canvas, media, and event-handler attributes are removed.
  • <style> blocks, @media print, @page, page-break hints, headers, footers, and page numbers are not supported.
  • Links remain visible as text but are not clickable PDF annotations.
  • Text is drawn into an image, so it is not searchable or selectable.

For complex production documents that need accessible text, live links, exact print CSS, custom fonts, or repeated headers, use a dedicated HTML print engine and review its security and data-handling policy.

Frequently Asked Questions

No. The HTML is processed in the browser and the generated PDF is held in a temporary browser URL. In the four-step flow, the draft can be kept in session storage for up to 30 minutes so it survives navigation between steps.

No. This converter is not a Chromium print service. It removes style blocks and renders a safe subset of inline CSS as a tall image that is then split across PDF pages.

No. Links can appear as visible text, but the PDF contains raster images rather than text objects or link annotations.

Network-loaded and active resources are removed deliberately to prevent the pasted HTML from contacting third parties or executing in the page. Use self-contained text, tables, and basic inline CSS.

Related Tools

Tool available in other languages