HTML to PDF Converter
WorkingConvert local UTF-8 HTML to a searchable vector PDF with headings, styles, lists, tables, links, embedded images and page controls. No upload or signup.
Convert local UTF-8 HTML to a searchable vector PDF with headings, styles, lists, tables, links, embedded images and page controls. No upload or signup.
HTML to PDF
WorkingThis tool is working for the representative inputs recorded in its tests. Processing happens locally; different files, settings and browsers can still have limits. This maps a safe document-oriented HTML/CSS subset; JavaScript, forms, remote resources, flexbox, grid, floats, absolute browser layout and arbitrary print CSS are not rendered. Only embedded PNG/JPEG data images and bundled Roboto are used. CJK, RTL scripts, emoji, custom fonts and unsupported image types need another renderer and are rejected or omitted with warnings. Representative Node and Edge fixtures passed, but every HTML producer, CSS combination, browser and low-memory device is not certified.
Choose a file to preview
Validated locally: file type, size and browser support are checked before anything runs
Preparing your file
Reading the file locally and checking that its type and size match what this tool expects. Nothing has been uploaded.
Laying out HTML as PDF
Builds a PDF from text, Markdown or HTML in the page. No WebAssembly and no worker, so producing a PDF stays as light as producing any other text format.
You can leave this tab open in the background — the conversion keeps running on your device, and progress is reported when you come back.
Conversion complete
Your converted file is ready to download.
Choose a file to preview
Run the tool to preview its result
The converted file was assembled in your browser and is released when you leave or reset this page
Something went wrong
The conversion could not be completed. Nothing was uploaded, and no partial file was saved.
This file or browser is not supported
The engine could not process this file in this browser. Nothing was converted or uploaded. Check this tool's limits and try a supported input.
You can use HTML to PDF to parse one UTF-8 HTML or HTM file into a sanitized document model, then create a searchable vector PDF in a browser Worker. This is not browser print: the renderer maps a supported set of headings, paragraphs, lists, tables, links, embedded images, and basic styles onto A4, US Letter, or A5 pages. It removes executable and hidden material and does not fetch remote styles, fonts, scripts, or images. Choose portrait or landscape, then judge the generated document rather than expecting a live web page or full CSS layout engine.
The measured page.html evidence source was a 282-byte HTML file.
The evidence output page.pdf occupied 19829 bytes and contained 1 page sized 595.28 by 841.89 points.
The reopened page reported rotation 0. Those dimensions and byte counts belong to the recorded headless input.
No. Script and other executable content is removed while the source is sanitized. The converter builds a document model rather than loading the file as an interactive web application.
No. External CSS references and URL-based resources are stripped, and the PDF generator denies URL access. Use supported embedded PNG or JPEG data when an image belongs in the document.
No. Browser print lays out a rendered web page; this tool maps a sanitized semantic subset into its own vector document model and ignores unsupported web-layout behavior.
You can select A4, US Letter, or A5 and set portrait or landscape orientation. The renderer uses those choices with fixed document margins.
It checks searchable multilingual text within the covered fonts, larger heading geometry, table-cell alignment, an embedded image, a safe link, a page break, and removal of unsafe or hidden content.
Last tested , reviewed by Usman Ali.