HTML to PDF
Save a hall ticket, an article or a receipt page as a PDF to read or print anytime.
PrivateNo uploadsRuns in your browserPaste HTML, load a page or open a file.
Make PDF saves the file straight away, with searchable text. For the sharpest text, use Print and pick Save as PDF.

Keep the page
Save any web page as a PDF.
Design work. Share a page as it looks today.
BeforeScreenshots in pieces
With sdevOne clean PDF

Team records
Keep a copy before the page changes.

Reading later
Save a long article to read on the train.
How to convert HTML to PDF
Add the HTML
Paste code into the editor, type a page address and press Load, or open an .html file.
Set the page
Pick the page size, orientation, margin and scale. The paged preview follows every change.
Make the PDF
Press Make PDF and download it, or press Print and choose Save as PDF for vector text.
Good to know
- A scale of 60% or 70% gives a web page its wide desktop layout on an A4 page.
- Add break-before: page to a heading in your HTML to start it on a new page.
- In pasted HTML, use full https:// addresses for images; relative ones only resolve for pages loaded by address.
- Scripts are removed before rendering, so pages you do not trust are safe to convert.
Where people use it
Save an article
Keep a web page as a PDF to read later or offline.
Turn an email template into a file
Paste the HTML and save it as a PDF to share.
Developers testing layouts
Preview how your HTML looks on A4 or Letter before printing.
Edit the result
Need it as a Word file after? Convert the PDF next.
PDF to Word
Why this one
You can paste raw HTML and see a print preview right away.
- Paste code, open an HTML file or load a web address.
- Preview before you save.
- Choose page size and margins.
What you can change
- Page size
- Margins
People find this page by searching
- html to pdf
- convert html to pdf online
- web page to pdf
- save website as pdf
- html code to pdf
- url to pdf
Cite this tool
- APA
sdev.in. (n.d.). HTML to PDF [Web tool]. https://www.sdev.in/tools/html-to-pdf
- MLA
"HTML to PDF." sdev.in, https://www.sdev.in/tools/html-to-pdf.
- Chicago
sdev.in. "HTML to PDF." https://www.sdev.in/tools/html-to-pdf.
- BibTeX
@misc{sdev-html-to-pdf, title = {HTML to PDF}, author = {{sdev.in}}, howpublished = {\url{https://www.sdev.in/tools/html-to-pdf}}, note = {Web tool} }
Questions people ask
How do I convert HTML to PDF?
Paste your HTML into the editor, load a page by its address, or open an .html file. The preview shows the pages as they will print; press Make PDF to download.
Why does a web page not load, or look different?
Many sites do not let other pages fetch them. The tool then tries public CORS proxies, and some sites block those too. Scripts never run, so anything a page builds with JavaScript is missing. If a page will not load, save it from your browser (Ctrl+S) and open the file.
Does it follow CSS page breaks?
Yes. break-before: page and break-after: page (and the older page-break-before and page-break-after) start a new page, and break-inside: avoid keeps a box together when it fits on one page. Elsewhere pages break between lines, images and table rows, and table headers repeat.
Can I select and search the text in the PDF?
Yes. Each page is an image with an invisible text layer, so search and copy work. Print, then Save as PDF uses your browser's own engine instead: vector text and working links, with the browser's page breaks.
Is my HTML uploaded?
No. Pasted HTML and opened files stay in your browser, and the PDF is built on your device with pdf-lib. When you load a page by its address, or your HTML uses images and stylesheets from other sites, those files are downloaded from that site, or through a public CORS proxy when the site does not allow direct access.