Skip to tool

HTML to PDF

Convert web pages to PDF. Enter a web address or paste HTML code and get an A4 PDF of the page.

Free No sign-up Encrypted upload, deleted once the result is sent

Works with public pages. Pages behind a login, or sites that block automated browsers, may not render.

Any public pageReceipts, articles, booking confirmations — laid out on A4 pages, with common pop-ups and cookie banners hidden.
Your own HTMLPaste code or upload an .html file, with its CSS styling applied.
Nothing keptPages are rendered on our server and deleted as soon as your PDF is sent.

How to convert a web page to PDF

  1. Give it a URL or HTML

    Paste the address of the page you want to capture (https:// is added if you leave it out), or switch to the HTML code tab and paste your code or upload an .html file of up to 5 MB. Only http:// and https:// addresses are accepted; file paths and other kinds of link are rejected.

  2. Our server renders the page

    Headless Chromium, the same engine as Chrome, opens the page in a 1440 × 900 desktop window and waits until network activity has almost stopped (for pasted code, until everything it links to has loaded). It then scrolls down the page so lazy-loaded images load, and gives web fonts and images up to five more seconds to finish.

  3. Download your A4 PDF

    The page is printed on A4 with its background colours kept. No margin is added, so backgrounds run right to the edges of the sheet. The PDF downloads straight away, named after the page address (or “html-document” for pasted code), and is deleted from our server as soon as it has been sent.

HTML to PDF in detail

HTML to PDF opens your page in headless Chromium on our server, the same rendering engine as Chrome. When you paste a link, the browser loads it in a 1440 × 900 desktop window, waits until network activity has almost stopped and then gives the page two more seconds; if the page comes back almost empty, the tool waits and reloads it once. When you paste HTML or upload an .html file, your code becomes the page and the browser waits until everything it links to has loaded. Pasted code has no web address of its own, so the stylesheets, images and fonts it uses need full web addresses, such as https://example.com/style.css. In both modes the tool then scrolls down the page so lazy-loaded images load, gives web fonts and images up to five more seconds, and prints the page on A4 with background colours kept. The result is not the same as Chrome's own Print to PDF: the page's screen styles are used rather than its print stylesheet, common cookie banners, chat widgets and full-screen pop-ups are hidden, headers that stay pinned to the top of the screen are printed once instead of on every page, embedded YouTube and Vimeo videos become a thumbnail with a link, and other embedded frames become plain links. No page margin is added, so backgrounds run to the edges of the sheet, and the layout is redrawn for the width of the paper, so a responsive site may switch to its narrower, tablet-style layout. A concrete case: a government office posts a notice, a tender or a merit list in Hindi or Marathi as an ordinary web page rather than a PDF, and you want a copy before it is changed or taken down. Paste its address here and you get an A4 PDF you can file or attach to an email.

If you save several booking or invoice pages separately, you can merge them into one file so a whole trip or month sits in a single PDF. Pages heavy with images can produce a large PDF, so compress the PDF before emailing it or uploading it to a portal with a size cap. When your source is a document rather than a web page, turn a Word invoice into PDF instead of converting HTML. For a long archived article that runs to many pages, add page numbers so the printout stays in order.

When people use it

Keep a receipt from a “view online” link

If an order, ticket or payment email includes a link that opens the receipt without signing in, paste that link here and keep the receipt as a PDF for reimbursement or your records.

Archive public notices and merit lists

Exam notices, merit lists and result announcements published as ordinary web pages can be changed or taken down later. Save the page as a PDF while it is still online.

Turn HTML invoices into PDFs

If your billing or shop software produces invoices as HTML, paste the code or upload the .html file and get an A4 PDF for your records, GST filing or your accountant.

Preserve a full article or blog post

Grab a news article, documentation page or recipe with its text, images and styling, so you can read it offline months later even if the page changes.

Convert a hand-built HTML template

Designers and developers can paste raw HTML and CSS and get an A4 PDF proof without opening a print dialog. Screen styles are used, not @media print rules, and the page has no margin, so build the white space you want into your own CSS.

About HTML to PDF

Saving a webpage as a PDF from the browser's File menu usually works, but the result is hit or miss. The print stylesheet might be different from what you saw. Sidebars and ads land in the PDF when you only wanted the article. Long articles get cut at awkward places.

HTML to PDF works differently. Paste a URL and it renders the page in a real browser engine with the page's screen styles rather than its print stylesheet, keeps background colours, and tries not to split paragraphs, images or table rows across pages. Ads and sidebars still come through. You can also paste raw HTML if you've got a snippet you want to PDF rather than a public URL.

Two input modes

URL mode is for any public webpage. You paste the link, the renderer loads the page (including its CSS, fonts, images, and any deferred-loading content), then captures it as a PDF. The page is loaded the way a desktop browser would load it, then printed on A4, where the layout is redrawn for the width of the paper.

Raw HTML mode is for snippets. Maybe you've drafted a marketing email in HTML and you want a PDF preview. Or you want to print a custom invoice template. Drop the HTML in the text area, or upload an .html file, and the renderer treats it the same as a webpage. You can include inline CSS and link out to public stylesheets and images by their full web addresses.

What renders well

Plain text articles. News stories, blog posts, documentation pages. These convert to PDF cleanly and the result reads like a print article.

Designed pages with images and custom typography. Web fonts load, images render at full resolution, and CSS Grid or Flexbox layouts hold their shape.

Interactive content that has a static fallback. A chart that loads with JavaScript will render in its loaded state if you give the page enough time, which the tool does by default.

What doesn't work

Pages behind a login. The renderer can't sign in for you, so anything behind authentication will show the login page or a 401 error. You need a publicly accessible URL.

Pages that detect headless browsers and refuse to render. A few sites do this aggressively to prevent scraping. If that happens, open the page in your own browser and print it to PDF from there.

Single-page applications that load entirely on the client and never settle. Most do settle within a few seconds, which is enough for the renderer, but pathological cases that keep rendering in a loop won't capture cleanly.

Real reasons to use it

Saving an article for offline reading. Especially long-form journalism or documentation that you want to read on a flight without depending on the publisher's website staying up.

Archiving a webpage as evidence. Researchers, journalists, and lawyers often need a record of what a page said on a specific date. The PDF's properties record when it was made, but no date or web address is printed on its pages, so keep a note of both.

Sharing a draft of an unpublished post. Send the raw HTML through the tool and you've got a PDF to email reviewers without needing to host the page first.

Generating printable invoices, reports, or letters from an HTML template. Faster than building a layout in Word and easier to maintain if you already have CSS skills.

Privacy

Both modes run on our server, because a browser can't render arbitrary web addresses from inside a web page's sandbox. The address or HTML you give us is sent over HTTPS, rendered on our server and deleted as soon as the PDF has been sent back to you; if a job is interrupted, a background clean-up deletes what is left within an hour. When you convert a link, the website sees a visit from our server, not from your device. The PDF that comes back is yours to keep.

Frequently Asked Questions

Can I convert any web page?

Any page with a public http:// or https:// address. A few sites detect automated browsers and send back an error or a security check instead of the page; if a page comes back almost empty, the tool waits and reloads it once, but some sites still refuse. The page is opened from our server in France, so a site that only lets in visitors from India won't load. A short page takes a few seconds; a long page full of images, such as a news site's front page, can take 15 seconds or more. The whole page goes into the PDF, across as many A4 pages as it needs.

Will images and CSS come through?

Yes. The renderer is headless Chromium, the same engine as Chrome, so it loads stylesheets, web fonts and images and runs the page's JavaScript before capturing. It opens the page in a 1440-pixel-wide window, but the PDF is laid out for the width of an A4 sheet, so a responsive site may use its narrower, tablet-style layout rather than its wide desktop one.

Can I paste raw HTML instead of a URL?

Yes. Switch to the HTML code tab and paste your HTML, or upload an .html file of up to 5 MB. Inline CSS works, and stylesheets and images load from full web addresses such as https://example.com/style.css; relative links like /css/style.css can't be found, because pasted code has no web address of its own. Useful for previewing emails, generating PDFs from custom templates, or saving a snippet of HTML as a portable document.

Can I save a long-form article without ads and navigation?

Not directly. The tool hides common cookie-consent banners, chat widgets and full-screen pop-ups, and shows sticky headers once instead of on every page, but ads, menus and sidebars stay in the PDF. For a cleaner copy, open the page in reader view in Firefox or Safari and print to PDF from the browser instead, or paste just the article's HTML into the HTML code tab.

Will the PDF keep background colours and images from the page?

Yes. The converter prints with backgrounds turned on, so coloured headers, table shading and background images are kept instead of being stripped to white the way a normal browser print often does.

Can it capture a page that needs me to log in, like my bank or DigiLocker?

No. Every conversion starts a brand-new browser with no cookies or saved sign-ins, so a members-only address shows its login page or an error instead of your account. To keep a copy of a logged-in page such as a bank statement or a DigiLocker document, open it in your own browser and choose Print, then Save as PDF — that copy is made on your device and never reaches our server.

Does it handle Hindi and Marathi (Devanagari) text correctly?

Yes. The server has fonts for Devanagari and for other Indian scripts such as Tamil, Bengali and Gujarati, and Chromium joins the letters properly, so Hindi or Marathi text comes out with correct conjuncts and matras rather than broken boxes.

What page size and margins does the output PDF use?

Every PDF is A4, in portrait unless the page's own CSS asks for landscape. The tool adds no margin, so backgrounds run to the edges of the sheet: @page margins in the page's own CSS are overridden and the body's margin is set to zero, and only the page's own padding keeps text away from the edge. A different paper size in the page's CSS, such as US Letter, is placed on an A4 sheet instead. There is no options panel, so for another paper size or white margins, print from your own browser.

Related Tools