Loading tool…
Setting up your workspace on this device.
Convert HTML to PDF format.
Loading tool…
Setting up your workspace on this device.
Advertisement
HTML to PDF turns your own HTML and CSS into a PDF using the browser’s print engine. Paste markup into the HTML box and styles into the CSS box, give the document a title, and check the live preview, or switch to View code to see the full page the tool assembles. Press Open print view and choose Save as PDF in the print dialog to get the file. You can also download the combined page as an .html file or copy it. Everything is assembled and previewed in your browser, so nothing is uploaded.
Add HTML and CSS
Paste your markup into HTML content and any styles into CSS styles, or press Load sample to start from an example.
Check the preview
The live document preview renders the page; View code shows the full HTML that will be printed.
Save as PDF
Press Open print view, then choose Save as PDF as the destination in your browser’s print dialog.
No. The tool works with HTML you paste in. To save a live web page, open it and use your browser’s own Print option with Save as PDF.
Add print rules in the CSS box, for example @page { margin: 20mm; } for margins and break-before: page; on an element that should start a new page.
Browsers usually leave out background colours and images when printing. Turn on Background graphics in the print dialog, or add print-color-adjust: exact; to your CSS.
Yes. HTML to PDF is completely free, with no account, no paywall, and no usage limits.
No. HTML to PDF works instantly in any modern web browser — there is no software to install, no extension, and no sign-up.