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
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
Choose the page
Select A4, Letter, or Legal, portrait or landscape, and content padding from 0 to 200 pixels.
-
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
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
Split PDF
Split a PDF locally into single pages or exact page ranges, then download the ZIP in your browser. Supports files up to 20 MiB and 150 pages.
JPG to PDF Converter
Combine JPG images into a single PDF document with page size, orientation and margin controls for contracts, receipts and portfolios.
Compress PDF
Compress PDF files in your browser by re-rendering pages as smaller JPEG-based PDFs for easier sharing and uploading.
Merge PDF and Images
Combine PDFs plus JPG and PNG images into one PDF, reorder the uploaded files, and download the merged document from your browser.
PDF to Excel Converter
Detect regular tables in a text-based PDF and download local XLSX, CSV or TSV files. Review every table before export. Limit: 20 MiB and 150 pages.
PNG to PDF Converter
Combine PNG screenshots, scans, or design exports into one PDF. Choose A4 or Letter pages, orientation, and margins before downloading.
Tool available in other languages
- HTML till PDF-omvandlare [SV]
- محول HTML إلى PDF [AR]
- Convertisseur HTML en PDF [FR]
- Konverter HTML ke PDF [ID]
- HTML-zu-PDF-Konverter [DE]
- HTML을 PDF로 변환 [KO]
- HTML naar PDF converter [NL]
- HTML を PDF に変換 [JA]
- ตัวแปลง HTML เป็น PDF [TH]
- Konwerter HTML na PDF [PL]
- Convertidor de HTML a PDF [ES]
- Trình chuyển HTML sang PDF [VI]
- Conversor de HTML para PDF [PT]
- Convertitore HTML a PDF [IT]
- Конвертер HTML в PDF [RU]
- HTML'den PDF'ye Dönüştürücü [TR]
- HTML 转 PDF 转换器 [ZH]