Convert HTML to PDF
Paste HTML, upload an .html file or load a web page, preview it, and convert the HTML to PDF with the paper size and margins you want.
HTML source
Page settings
Use 1024px or 1280px for websites designed for desktop screens; they are scaled down to fit the page.
Preview
Scripts offSafe preview
Scripts never run; pasted and uploaded HTML stays in your browser.
Two output options
A direct download with selectable text, or your browser's exact print engine.
Your paper settings
A4, Letter or Legal, portrait or landscape, with adjustable margins.
Two ways to make the PDF
Download PDF builds the file in your browser with selectable text and clickable links, which suits invoices, emails, articles and simple pages. Print / Save as PDF opens your browser's print dialog with your paper and margins already set, and gives the most faithful copy of every font, background and image.
How to use it
- 1Paste HTML, upload an .html file, or enter a web address and load it.
- 2Check the preview and choose paper, orientation, margins and layout width.
- 3Click Download PDF, or Print / Save as PDF for your browser's own PDF engine.
When to use HTML to PDF
- Saving an HTML invoice, receipt or email template as a PDF to send or archive.
- Keeping an offline copy of an article or documentation page.
- Checking how a page you're building looks on paper.
Page settings explained
Paper can be A4, Letter or Legal, in portrait or landscape, with no, small or normal margins. Layout width sets how wide the page is drawn before it's fitted to the paper: Page uses the paper width, while 1024px or 1280px lays a website out the way a laptop shows it and then scales it down.
Page breaks, print styles and fonts
The two buttons treat your CSS differently. Download PDF lays the page out with its screen styles and cuts it into pages itself, moving the cut so it never runs through a line of text. It ignores CSS page-break rules and draws text in Helvetica, Times or Courier, whichever is closest to your font.
Print / Save as PDF uses the page's @media print styles, so a site that hides its menu and ads for printing comes out cleaner. It also follows break-before, break-after and break-inside, keeps your web fonts, and in current browsers prints background colours without you having to tick "Background graphics".
Writing HTML that converts cleanly
- Put the CSS in a <style> block or inline. Pasted code has no web address, so relative links to stylesheets and images such as "css/invoice.css" can't be found; use full https:// addresses or data: images.
- Scripts are removed before the preview, so fill in totals, dates and table rows before the HTML reaches this page rather than with JavaScript.
- For an invoice that needs a fixed page break, add break-before: page to the element and use Print / Save as PDF.
- Give tables a set width, or use Layout width Page, so wide tables don't get scaled down to tiny text.
Loading a page by its address
- Our server fetches only the page's HTML, up to 1 MB, and waits at most 8 seconds for it. Nothing is stored, and each visitor can load up to 20 pages a minute.
- Images, stylesheets and fonts are then loaded by your own browser straight from that website, as when you visit it, so the site sees a normal visit from you.
- Relative links are turned into full addresses so they still work in the PDF, and images that a site loads lazily are swapped in where the page marks them in the usual way.
- Pasted or uploaded HTML, up to 5 MB, never leaves your device. In the direct download, CSS background images, ::before/::after content and images from sites that block sharing can be missing; Print / Save as PDF shows them.
Related tools
What Our Users Say
Real feedback from people using WeblixTools, checked by our team before it appears.
Frequently Asked Questions
Is my HTML uploaded?
Pasted code and uploaded .html files stay in your browser. When you load a page by its address, our server fetches that public page for you and passes it straight back; nothing is stored.
Why does the page look different from the live site?
Scripts are switched off for safety, so content that a site builds with JavaScript (some menus, lazy-loaded images, single-page apps) may be missing. Static pages, articles, invoices and emails convert well.
What's the difference between Download PDF and Print?
Download PDF creates the file directly in your browser with selectable text and working links. Print uses your browser's built-in PDF engine, which reproduces every font, background and image exactly, but you choose Save as PDF in the print dialog yourself.
Can it convert pages that need a login?
No. Our server can only fetch public pages. For a page behind a login, open it in your browser, save it as an .html file or copy its source, then upload or paste it here.
Is text in Urdu, Arabic or Chinese supported?
Yes. In the direct download, text in scripts the built-in PDF fonts don't cover is drawn as sharp images so it displays correctly. For fully selectable text in those languages, use Print / Save as PDF.
Is it free?
Yes, and there's no sign-up. Loading pages by address has a per-minute limit so nobody can use our server to hammer other sites; pasting and uploading HTML only have the 5 MB size limit.