What HTML to PDF does
Paste HTML or upload an .html file and the tool produces a PDF with selectable text from the document's content: headings, paragraphs, lists, tables, code, block quotes, emphasis and embedded images. It reads the HTML's structure rather than rendering its CSS, so the output is a clean text document, not a screenshot of a styled web page. That makes it the right tool for saving an article, an email, a generated report or a template's content as a document — and the wrong one for capturing a page's visual design. Everything runs in your browser; the HTML is not sent to a server.
Structure conversion vs page rendering
| This tool | Browser 'Print to PDF' / headless Chrome | |
|---|---|---|
| Reads | The HTML element tree | The fully rendered page with CSS |
| Output | Text document in standard fonts | Pixel-faithful page |
| Layout, colours, fonts | Not applied | Applied |
| Scripts, remote images, web fonts | Ignored | Loaded |
| Text selectable | Yes | Yes |
| Best for | Content: articles, emails, reports, docs | Design: invoices with branding, marketing pages |
For a design-faithful PDF of a page you can open, use the browser's own Print → Save as PDF; it is free and exact.
Supported elements
h1–h6,p,br,hrul,ol,liwith nestingstrong/b,em/i,code,preblockquote(indented)table— each row becomes a line of cells separated by barsimgwith a data-URL source (PNG or JPEG)a— link text is kept; the URL is not made clickable
script, style, nav, header, footer and hidden elements are skipped so that a saved web page yields its article, not its menus.
Common uses
- Archiving an article or blog post as readable text without the site's chrome.
- Converting an HTML email (saved from a mail client) into a PDF for records.
- Turning an HTML report produced by a script or a test runner into a shareable document.
- Producing a PDF from HTML on a device with no browser print dialogue (some kiosks and embedded views).
- Converting documentation exported as HTML into a single portable file.
Tips for better output
- Paste only the fragment you want (the
articleelement) if the page has sidebars the skip rules do not catch. - Inline images as data URLs before converting; a quick way is the Image to Base64 tool on this site.
- Wide tables are joined with bars and wrapped — for many columns, use the spreadsheet tools instead.
- Characters outside Western Latin are not drawable with the standard fonts; use browser printing for those languages.