HTML to PDF
Paste your HTML (with inline or <style> CSS), preview it, then download it as a PDF or use your browser’s print dialog for the sharpest result.
Which button should I use?
Print / Save as PDF uses your browser’s own print engine: the text stays sharp and selectable, links keep working, and the file is small. In the print dialog choose “Save as PDF”. Download PDF captures the page as an image and slices it into pages — quick and one-click, but the text isn’t selectable and files are larger. Either way, external stylesheets and images from other websites may not load; put your CSS in a <style> block and use inline or embedded images. This tool converts HTML you paste — it can’t fetch a live web page from a URL.
About the HTML to PDF
HTML to PDF turns HTML and CSS that you paste into a PDF document. You see a live preview, choose page size, orientation and margins, and then download a PDF or use your browser's print dialogue to save one. It is useful for invoices, resumes, certificates, reports and any layout you design in code.
The tool offers two routes. Download PDF renders the preview to an image-based PDF in your browser, which is convenient but not selectable as text. Print / Save as PDF uses the browser's own print engine, which gives the best quality, selectable text and proper page breaks, and is usually the better choice for text documents. Fonts and images should be available to the page; remote images may be blocked by the source site.
How to use it
- Paste or write HTML with inline CSS, or press Load sample to see an example.
- Choose page size, orientation and margin.
- Check the preview.
- Press Download PDF, or choose Print / Save as PDF for best quality.
Tips and good to know
- Use CSS page-break rules to control where pages end.
- Prefer system fonts or embed font data for predictable output.
- For long documents choose the print option.
Frequently asked questions
Why is the downloaded text not selectable?
The download button renders an image of the page; the print route keeps text.
Can I use external CSS?
Inline the styles for the most reliable result.
Is my HTML uploaded?
No, everything stays in your browser.