FREE · PDF TOOLS
HTML to PDF Converter.
Convert your own HTML and CSS (grid, flexbox, tables) to a PDF with selectable text and working links, on A4, Letter, A5 or Legal paper.
Loading…
Steps to use HTML to PDF Converter
Paste HTML or open an .html file, check the preview, choose paper and margins, then create and download the PDF.
How HTML to PDF Converter processes your input
The HTML is sanitized with DOMPurify, laid out in a hidden frame and written as a vector PDF; long pages are split between lines.
HTML to PDF Converter: worked example
An invoice made with HTML and a CSS grid becomes a one-page A4 PDF with the same layout and clickable links.
Convert your HTML and CSS to PDF
- Paste your HTML or open an .html file, then check the preview.
- Choose the paper size (A4, Letter, A5 or Legal) and the margins.
- Create the PDF and download it.
Example: an invoice built with HTML and a CSS grid becomes a one-page A4 PDF with the same layout and clickable links. CSS grid, flexbox and tables are laid out by your browser, and the PDF keeps the text selectable.
Security and limits
- The HTML is sanitized first: scripts, forms and frames are removed, so pasted code cannot run.
- Images and fonts from other websites load only if you allow it. The tool does not fetch web pages from a URL: paste the HTML itself.
- Long pages are split between lines, up to 500 pages.
- Writing in Markdown instead? Use Markdown to PDF. To clean or tidy your code first, try the HTML formatter.
Questions about HTML to PDF Converter
Can I convert a website by its address?
No. The tool converts HTML you paste or open; it does not download pages from the web.
Will my JavaScript run?
No. Scripts are removed for safety. Paste the final HTML, as it should appear on paper.
Is my HTML uploaded?
No. The layout and PDF are made in your browser.
Is HTML to PDF Converter free, and do I need an account?
Yes. This tool is free to use in your browser without an account. Processing takes place on your device.
What are the limits and what should I check?
Scripts, forms and frames are removed; images and fonts from other websites load only if you allow it. URLs are not fetched. Up to 500 pages. Review the downloaded document, especially page order and watermarks.
Is my input sent to a server?
Your input is processed in your browser and is not uploaded by this tool. Files and pasted text are cleared when the page is refreshed. Normal website requests are still required to load the page and its libraries. Read the privacy explanation.