HTML to PDF — save a web page, HTML file or code as PDF
Save a web page as PDF from its address, or convert an HTML file or pasted code. Choose A4 or Letter, orientation, margins and backgrounds.
Public websites only. Our server opens the page without your cookies or logins, so pages behind a sign-in will show their login screen.
Choose an HTML file
or drop it here
HTML, HTM · up to 1.5 MB · images and styles must use full web addresses
Scripts run for a few seconds before the PDF is made.0 KB / 1.5 MB
Uploading…
Large files can take up to a minute to convert.
Uploaded over an encrypted connection, converted on our server and deleted immediately after.
How to use HTML to PDF
Enter a web page address (URL), choose an HTML file or paste HTML code.
Pick the page size, orientation, margins and whether to include backgrounds.
Click Convert to PDF — the page is rendered on our secure server.
Download the PDF.
What you get
- Three inputs: website URL, HTML file or pasted HTML code
- A4 or US Letter, portrait or landscape
- Margins: none, small (10 mm) or normal (20 mm)
- Optional background colors and images
- Rendered by a real Chrome browser on our server; files deleted right after
On this page
URL vs HTML file vs pasted code
| Input | Use it for | Good to know |
|---|---|---|
| Website URL | Articles, receipts, public pages, documentation | Our server opens that address in a headless Chrome browser, waits for it to load and prints it to PDF. Public pages only. |
| HTML file | Saved pages, email templates, reports exported from software | Up to 1.5 MB. Images and stylesheets must use full web addresses (https://…), because files next to it on your computer are not uploaded. |
| Paste code | Invoices or certificates generated by your own code, quick tests | A full page or just a fragment. Scripts run for a few seconds before the PDF is made. |
Pages are printed the way Chrome prints them, which means a site's print stylesheet applies: many sites hide menus, ads and footers when printing, so the PDF is often cleaner than the screen. Keep Include background colors and images ticked to keep colored boxes and banners; untick it for a plain, ink-friendly document. Use landscape for wide tables and dashboards.
Pages behind a login
Our server opens the page without your cookies, sessions or passwords, so anything behind a sign-in — online banking, your email, a course portal, an order page in your account — shows its login screen instead of your content. That is deliberate: we never ask for or use your login.
For those pages, use your own browser while you are signed in:
- Open the page, press Ctrl + P (⌘ + P on Mac) and choose Save as PDF as the destination. This keeps everything on your device.
- Or save the page as HTML (Ctrl + S → Webpage, HTML only) and upload the file here — remember that images with relative paths may not appear.
For security, addresses that point to private or internal networks (like localhost or 192.168.x.x) are blocked, including when a public page redirects to them.
Save a web page as PDF on iPhone, Android and Chrome
Every modern browser can already save a page as PDF, and we would rather you know that. Use the built-in way for pages you are signed in to, and this tool when you want consistent page size and margins, a page that is awkward to print, or HTML code rather than a live page.
iPhone and iPad (Safari)
Tap the share icon, then Options at the top of the share sheet and choose PDF, then Save to Files. Alternatively, choose Print from the share sheet and share the preview as a PDF. On recent iOS versions, a full-page screenshot (take a screenshot, tap the preview, choose Full Page) can also be saved as PDF.
Android (Chrome)
Tap ⋮ → Share → Print, set the printer to Save as PDF and tap the PDF button. Some Android versions show Print directly in the ⋮ menu.
Chrome, Edge and Firefox on a computer
Press Ctrl + P (⌘ + P), choose Save as PDF (or Microsoft Print to PDF on Windows), and under More settings set the paper size, margins and background graphics.
With this tool on a phone, just paste the address into the URL box — no print dialog needed.
After converting
- Long article or many pages? Keep only what you need with Split PDF, or make the file smaller with Compress PDF.
- Collect several pages into one document with Merge PDF — for example, a set of receipts or research sources.
- Mark a saved page as a draft or internal copy with Watermark PDF.
- Need to fix a typo in the result? Edit PDF changes existing text without converting anything.
See every format we convert, and which conversions run on the server, on the PDF converter page.
How your page and files are handled
HTML to PDF runs on our server because it needs a full browser engine. When you enter a URL, the website sees a visit from our server, not from you. Uploaded HTML files and pasted code are sent over HTTPS. The finished PDF and any uploaded HTML are deleted from our server immediately after the conversion; we do not keep copies. There is no public API for this tool — it is designed for people converting pages one at a time.
Questions & answers
How do I save a web page as a PDF?
Paste the page address into the Website URL box, choose the page size and margins, click Convert to PDF and download the file. Our server opens that address, loads it like a browser and turns it into a PDF. For pages you are signed in to, use your browser's Print → Save as PDF instead.
Can I convert pages that need a login?
No. Our server cannot use your login, so pages behind a sign-in or paywall show their login screen instead. Open the page in your own browser while signed in and use Print → Save as PDF, or save it as an HTML file and convert the file here (images with relative paths may be missing).
Why does the PDF look different from the page?
The PDF is printed, not screenshotted, so the site's print styles apply: menus and ads are often hidden and the layout adapts to A4 or Letter width. Images that load only when you scroll may be missing, and cookie banners can appear. Try landscape, turn backgrounds on or off, or use your browser's Print → Save as PDF for comparison.
Is there an API?
No. HTML to PDF is a free tool for converting pages one at a time in the browser; there is no public API for automated or bulk conversion. If you need to convert many pages programmatically, a dedicated HTML-to-PDF API service or a headless browser library in your own code is the right choice.
How large can an HTML file be?
Uploaded HTML files and pasted code can be up to 1.5 MB. Images, fonts and stylesheets are not counted, because they must be loaded from full web addresses (https://…); local files referenced by relative paths are not available to our server.
Are files stored?
No. HTML files and code are uploaded over HTTPS, converted and deleted immediately after the conversion, and the finished PDF is deleted from our server immediately after the conversion as well. When you convert a URL, the website sees a visit from our server, not from you.
Does it work on my phone or tablet?
Yes. PDFEditPoint is built mobile-first and works in Safari, Chrome, Edge and Firefox on iPhone, iPad, Android, Windows, macOS and Linux — no app to install.
How long do you keep my files?
Not at all. HTML to PDF uploads your file over an encrypted HTTPS connection, converts it on our server and deletes it immediately after the conversion (at the latest within one hour if a conversion fails). We only log the time, the tool used and your IP address to prevent abuse. Files you choose to save to an account are deleted automatically after your plan's storage period — 7 days on the Free plan.
Is there a limit?
Free use has a fair daily limit to keep the service fast for everyone. Creating a free account raises it, and the Pro plan raises it much further.
Last reviewed by the PDFEditPoint Editorial Team.
More PDF tools
All 26 PDF toolsJPG to PDF
Turn JPG and PNG images into a single PDF document.
Word to PDF
Convert DOC and DOCX documents into a PDF that looks the same everywhere.
PowerPoint to PDF
Convert PPT and PPTX presentations into a PDF.
Edit PDF
Change existing text, add text, images, shapes, highlights and whiteout.
Sign PDF
Sign yourself or request legally binding e-signatures by email.
Fill PDF Form
Fill in any PDF form and add checkmarks, dates and signatures.
Merge PDF
Combine several PDFs into one document in the order you want.
Split PDF
Extract pages or split a PDF into several smaller files.