HTML → PDF

HTML to PDF

Paste markup or load an .html file. The converter keeps the document structure, writes real text, and verifies the result before offering the download.

The HTML is parsed inside this tab and never loaded as a page. Nothing is uploaded and no remote asset is fetched.

Short answer: load or paste HTML, press Create PDF, and download the result. The markup is parsed in this tab — no script runs, no remote asset loads — and the generated file is re-opened with pdf.js before the download link appears.

What is carried into the PDF

What is not carried into the PDF

Page CSS, web fonts, positioning, flexbox, grid, animated content, forms, iframes, video, audio, canvas and SVG. Those elements are skipped and named in the report under the result, rather than quietly disappearing.

HTML to PDF without a server

Most “HTML to PDF” services upload your document, run a headless browser and send back a file. This page does the opposite: the parser, the layout engine and the PDF writer all run in your tab, and the only bytes that leave the tab are the ones you download. That is also why the layout is a deliberate, predictable print style rather than a replica of your page.

HTML to PDF questions

How do I convert an HTML file to PDF?

Load the .html file or paste the markup, pick the page size and margins, and press Create PDF. The document is parsed in this tab, laid out as a one-column print document, and offered as a download only after pdf.js re-opens it and confirms the page count.

Will my CSS and web fonts be applied?

No. This is a structural conversion, not a browser print: page CSS, web fonts, floats, grid, flexbox and animations are not interpreted. Headings, paragraphs, lists, tables, quotes and inline emphasis keep their structure. If pixel-exact styling matters, open the page in your browser and use its print dialog instead.

Are scripts or trackers in the HTML executed?

No. The markup is parsed as a document object, never loaded as a page, so no script runs and no remote image, font or stylesheet is fetched. Script, style and embed tags are removed before anything is drawn.

Do links in the HTML stay clickable in the PDF?

Yes for absolute http, https and mailto links: each becomes a real link annotation over the text. Relative links and javascript: URLs are dropped, because a PDF has no page to resolve them against.

Why does a complex page look plain in the PDF?

Because the output is one column of real text. A page built from nested flexbox cards has no equivalent in a print document, so its content is carried over in reading order and its decoration is not. The converter says so instead of pretending a screenshot is a PDF.

What are the limits?

Up to 200,000 characters of HTML and 300 pages of output. Non-Latin scripts are outside the built-in PDF fonts: isolated characters are replaced and reported, and a mostly non-Latin document is refused rather than exported as question marks.

Related tools