Free tool HTML to PDF: web pages and HTML code as a clean PDF
Paste a public URL, paste HTML, or upload an .html file. A Chromium browser in Cloudflare’s network renders it and prints a PDF with real, selectable text and clickable links. You choose the paper, margins and how wide the page is laid out, or ask for one long page with no breaks.
- URL or HTML code
- Paper, margins, layout width
- PDF download
Convert HTML to PDF
Enter a public URL or switch to HTML code, check the layout, then click Make PDF. Each PDF uses one of your free browser runs for the day.
Saved to My tools
Open the free tools page next time and it is right at the top under My tools (stored in this browser only).
You can also press Ctrl+D to bookmark this page in your browser.You can also press ⌘+D to bookmark this page in your browser.You can also tap your browser’s Share button (at the bottom in Safari) and choose Add Bookmark or Add to Home Screen.You can also open the ⋮ menu at the top right and tap ☆ to bookmark it, or choose Add to Home screen.You can also tap ··· at the top right and choose Favorite, or open it in your browser and bookmark it there.
View My toolsYour PDF appears here with a download button, the page count, the file size and a preview of the first pages.
What is sent, and to whom
- Nothing is requested when the page opens. When you click Make PDF, a Cloudflare Turnstile human check runs first (
challenges.cloudflare.com); most people never see it. - Your browser sends the URL, or the whole HTML you entered, with your layout settings to TapCub’s conversion service (
check.tapcub.com), which renders it in Cloudflare’s Browser Run in a fresh, isolated browser context. - The PDF comes straight back to your browser. The HTML and the PDF are not saved on our side. Logs keep the type of input, the domain for URLs, status, size and duration, not your HTML, the full URL or the file.
- A site you convert sees a visit from Cloudflare’s network, not from your IP address. Images and fonts linked in your HTML are fetched the same way.
- Limits: 2 a minute and 5 a day without signing in, shared with the website screenshot and cookie scanner tools.
Done here? Try these next
Use this tool often? Save it to My tools.Saved to My tools. Find it any time at the top of the free tools page. You can also press Ctrl+D to bookmark this page in your browser.You can also press ⌘+D to bookmark this page in your browser.You can also tap your browser’s Share button (at the bottom in Safari) and choose Add Bookmark or Add to Home Screen.You can also open the ⋮ menu at the top right and tap ☆ to bookmark it, or choose Add to Home screen.You can also tap ··· at the top right and choose Favorite, or open it in your browser and bookmark it there.
Problem or suggestion?Send feedbackChat with support
Version v1.0Updated Update history
Use it via API:web/pdf
What you get back
The PDF is printed by a real browser, so it behaves like “Save as PDF” in Chrome, with settings that are easier to control.
- URL, pasted HTML or an .html file
- A4, Letter, Legal, A3, A5 or one long page
- Rendered in Chromium, nothing stored

Text stays text
Words can be selected, searched and copied, and links stay clickable. It is not a picture of the page, so the file is usually small and sharp at any zoom.
Pages and file size
The result card shows both, with a preview of the first pages. If the last page holds only a footer, lower the zoom by 5–10% or narrow the margins and make it again.
Status and final address
For URLs, HTTP 200 means the page loaded. 403 or 429 usually means automated browsers were refused. A different final address means there was a redirect.
Warnings
Blocked images or fonts, a page that never finished loading, or output cut at 200 pages are listed under the result, so you know before you send the file.
The page is opened logged out and without cookies, from Cloudflare’s network. Cookie banners, region pop-ups and sign-in walls appear in the PDF as a first-time visitor would see them.
Three steps
No extension and no software to install.
-
1
Give it a page or code
Paste a public URL, or switch to HTML code and paste, upload or drop an .html file. The sample invoice shows what the output looks like.
-
2
Set the layout
Pick paper and margins. Use Layout width to decide whether a responsive page prints in its laptop, desktop or phone design.
-
3
Make the PDF
Check the preview and page count, adjust zoom or margins if a page breaks badly, then download.
Layout width decides how a page looks on paper
Paper is narrower than a computer screen. Chromium lays the page out at a chosen width in CSS pixels, then scales that layout down (or up) to the printable area.
- Printable width = paper width minus both margins. 1 mm is about 3.78 CSS pixels, so Letter with 10 mm margins has 740 px
- Printed scale = printable width ÷ layout width × your zoom. Chromium allows 10% to 200%
- Pasted HTML defaults to “Match paper” and print styles, which suits invoices and reports. URLs default to a 1024 px layout and screen styles, which keeps most sites in their desktop design
- With a chosen paper size, your paper and margins override any @page rule in the CSS. Choose “From the page’s @page” to let the document decide
- One long page keeps the chosen layout width and makes the paper as tall as the content; sections that fill exactly one screen are held at that height
| Layout width | Page laid out at | Printed at | 16 px text becomes |
|---|---|---|---|
| Match paper | 740 px | 100% | about 12 pt |
| Laptop | 1,024 px | 72% | about 8.7 pt |
| Desktop | 1,366 px | 54% | about 6.5 pt |
| Tablet | 820 px | 90% | about 10.8 pt |
| Phone | 390 px | 190% | about 22.8 pt |
Saving a 5,000 px tall page
Suppose a page is 5,000 CSS pixels tall when laid out 1,024 px wide. Here is the arithmetic for US Letter with 10 mm margins.
| Setting | Calculation | Result |
|---|---|---|
| Letter portrait, Laptop width | Printable height 259.4 mm ≈ 980 px; at 72% one sheet holds about 1,356 px | 5,000 ÷ 1,356 ≈ 3.7, so 4 pages |
| Letter landscape, Laptop width | Printable area 980 × 740 px; at 96% one sheet holds about 773 px | 5,000 ÷ 773 ≈ 6.5, so 7 pages, with larger text |
| One long page, Laptop width | Width 1,024 px + two 10 mm margins; height 5,000 px + margins | One page of about 291 × 1,344 mm |
Real page counts can be a little higher: Chromium moves images, table rows and blocks marked “break-inside: avoid” to the next page instead of cutting them.
When the PDF is not what you expected
Most surprises come from the page being opened fresh, by a browser that cannot see your computer.
Converting a page behind a login
The browser has no session, so you get the sign-in page. Save that page as an .html file and upload it, or use Print in your own browser.
Relative image paths in pasted HTML
There is no folder or base address, so “img/logo.png” cannot be found. Use a full https:// address or embed the image as a data: URI.
Expecting scripts in pasted HTML
Scripts are switched off for pasted and uploaded HTML. Render charts to images or inline SVG first, or publish the page and convert its URL.
Wide tables cut off on the right
Choose landscape, pick a wider layout so the page is scaled down, or lower the zoom.
How your own pages are seen
A PDF shows one rendering. TapCub shows which screens your visitors actually use and how each page performs for them.
Screen sizes in the audience report
Visitors are grouped into nine CSS width ranges, from under 375 to 2560 and up. Click a range to filter every other report by it.
Learn moreWeb Vitals per page
Core Web Vitals (LCP, INP, CLS) at the 75th percentile by page, with the slowest pages and templates first.
Learn moreAutomated browsers counted apart
Five detection layers, from user agent and headless traces to hosting networks and request rate, split crawlers and scrapers from people. Mistakes can be marked as human.
Learn moreWhat is free, and what happens after the limit
Each use of this tool runs on our servers or an AI model, so it has a daily free allowance. Everyday use normally stays within it.
Without signing in
Counted per network (IP address), with a daily free allowance that resets the next day.
Signed in (free account)
Counted per account, with 3× the daily free allowance, wherever you connect from.
Tools membership
Plus and Pro members have practically no limit, only a ceiling that stops abuse.
After the limit
You can choose to continue with a few tool credits per use: you see the amount first and nothing is taken unless you agree, and failed uses are free. Or wait until tomorrow. Nothing is charged automatically.
HTML to PDF questions
Still have a question?
Chat with the team behind TapCub — we usually reply within a few hours on business days.
How do I convert a web page to PDF?
Paste its address above, pick a paper size and click Make PDF. The page is opened in a browser on our side, printed, and sent back as a file you can download. For pages only you can see, upload the saved HTML or use your browser’s Print → Save as PDF.
Why are background colors or images missing?
Check that “Print backgrounds” is ticked. If it is, the page may be hiding them in its print styles: switch Page styles to “Screen styles”. In your own HTML, “print-color-adjust: exact” keeps colors as written.
How do I control where pages break?
In your CSS, use “break-before: page” to start a new page and “break-inside: avoid” on table rows, cards or figures that should stay whole. Set “@page { size: A4; margin: 15mm }” and choose “From the page’s @page” to fix paper and margins in the document itself.
Can I turn a whole page into one long PDF page?
Yes. Choose “One long page” as the paper size. The width follows the layout you pick and the height follows the content. A single PDF page cannot be taller than about 5 m here, so very long pages are split.
Why does the PDF look different from my screen?
The layout width may select a tablet or phone design, print styles may be on, and the browser is logged out, without cookies and in another location. Try the Desktop width with screen styles.
Are Chinese, Japanese, Korean characters and emoji supported?
The rendering browser has Noto CJK and color emoji fonts installed, so they print. Other fonts load if your page links them with a full https:// address or embeds them.
Is my HTML stored, and how big can it be?
It is not saved: it is rendered in memory and the browser context is closed afterwards. HTML can be up to 2 MB, and the PDF up to 20 MB and 200 pages.
How many PDFs can I make?
Without signing in, 2 a minute and 5 a day per IP address, shared with the website screenshot and cookie scanner. A failed attempt on an unreachable page still counts. Signed-in accounts get more.
Is this tool working for you?
Rate it, or tell us what went wrong and what you’d like improved. A person reads every message, and frequent requests go into the next update.
Need help right now?
Chat with our support team, best for urgent problems; you can leave a message when we are offline.
Chat with supportUpdate history
New features, fixes and data refreshes for this tool, newest first.
-
· v1.0
LaunchedFirst release.
Missing something or found an error? Tell us — requests that come up often go into the next update. All tool updates
Recommend this tool in an article or on your site
This tool is free to cite and share. Copy the URL or link below into your article, tutorial or resource page; to write a review, embed a tool or partner with us, get in touch.
https://tapcub.com/tools/html-to-pdf<a href="https://tapcub.com/tools/html-to-pdf">HTML to PDF - TapCub</a>Finish the file
Once you have the PDF, these tools run on the file itself.