How the conversion works
Toolvity loads your HTML into a hidden, sandboxed frame inside your own browser and lets the browser lay it out exactly as it would on screen, at the width of your chosen paper. It then reads where every line of text, picture, background and border ended up and draws them into a PDF.
Text is drawn with built-in sans-serif, serif and monospace fonts that match the shapes and widths of the originals closely, and each line is fitted to the width the browser measured. That keeps the layout faithful while the text stays searchable. Emoji and scripts the built-in fonts don’t cover, such as Chinese, Arabic or Hindi, are captured from the browser’s own rendering as sharp images instead, so they still look right.
The tall result is then cut into pages. Toolvity looks for a break point where no line of text or image would be sliced, and follows page-break-before, break-after and break-inside: avoid if your HTML uses them.
What to expect
- Scripts never run. The frame has scripting switched off, so pages that build their content with JavaScript show only their static HTML. Inline event handlers and links that run code are removed.
- Relative paths can’t be found. A single .html file doesn’t include the images and stylesheets next to it on your disk. Embed images as data: URLs, use full https:// addresses, or add a base href tag.
- Online files load only if their server allows it. Images, fonts and stylesheets on other websites are fetched by your browser like any web page. Pictures can only be copied into the PDF when the server permits it; otherwise they’re skipped and the result tells you how many.
- Simplified effects. Shadows, filters, rotations and blend modes aren’t reproduced, and text appears in the closest built-in font rather than a custom web font.
Wide layouts, such as a fixed 800-pixel email template, are scaled down to fit the paper. Lowering the Scale setting lays the page out wider before it’s fitted, which often gives a better result for desktop-style pages.
Good uses for HTML to PDF
Save an HTML email, receipt or invoice as a PDF for your records. Turn an exported report, a static documentation page or a snippet you’ve written into a document you can share or print. Designers and developers can paste a template and check how it paginates on A4 or Letter in a few seconds.
Writing in Markdown instead? Markdown to PDF handles it directly. To combine the result with other files, use Merge PDF, and Compress PDF if it needs to be smaller.
Private by default
Your HTML is processed entirely on your device and never sent to Toolvity. If you’d rather the page doesn’t contact any other website either, turn off Load online images & fonts and only the content inside your HTML is used.