Skip to tool

HTML to PDF

Convert web pages to PDF. Enter a URL or paste HTML code to generate a beautifully formatted PDF document.

FreeNo sign-upEncrypted upload, deleted right after processing

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

Any public pageReceipts, articles, booking confirmations — saved exactly as they look on screen.
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. 1
    Give it a URL or HTML

    Paste the full https:// address of the page you want captured, or upload/paste an .html file. Only HTTP and HTTPS links are accepted; local file paths and other protocols are rejected for safety.

  2. 2
    Let the browser render it

    Headless Chromium loads the page and waits for the network to go idle so images, web fonts and scripted content finish drawing before the snapshot is taken. Pages needing a login won't show member-only content, since the browser visits as a fresh guest.

  3. 3
    Download your A4 PDF

    The page is printed to A4 with backgrounds preserved and standard margins, then streamed back as webpage.pdf. Open it, rename it, or attach it straight to an email or upload form.

HTML to PDF in detail

HTML to PDF works by opening your page inside a real headless Chromium browser on our server, exactly the way Chrome's own "Print to PDF" does. When you paste a link, the engine navigates to it and waits until network activity goes idle, so lazy-loaded images, web fonts and CSS finish rendering before capture. When you upload or paste raw HTML instead, that markup is set as the page content and rendered the same way. It then prints to A4 with print backgrounds enabled and 20mm top/bottom, 15mm left/right margins, so colored headers and table shading survive instead of dropping to white. A concrete case: you complete an IRCTC ticket, a MahaRERA search result, a DigiLocker page or a bank NEFT confirmation, and the browser only shows it on screen with no download button. Open the page, feed its URL here, and you get a dated PDF receipt you can file or attach to an email. For India specifically this rescues booking confirmations, exam result pages and GST invoices rendered in-browser, including Devanagari (Hindi and Marathi) text, which Chromium shapes correctly. If Chromium is busy the server falls back to wkhtmltopdf or LibreOffice so the conversion still completes.

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

Save online booking receipts

Capture an IRCTC train ticket, RedBus or IndiGo confirmation, or a movie ticket page as a PDF receipt you can print at the counter or keep for reimbursement.

Archive exam results and admit cards

Board, university and competitive-exam result pages (UPSC, SSC, state boards) often vanish after the window closes — save the live result page as a dated PDF before it goes offline.

File invoices and statements

Turn a GST invoice, electricity bill or bank statement shown only in-browser into a PDF for your records, GST filing or an accountant.

Preserve a full article or blog post

Grab a news article, documentation page or recipe exactly as it looks, with layout and images baked in, so it reads the same offline months later.

Convert a hand-built HTML template

Designers and developers can paste raw HTML/CSS and get a pixel-faithful A4 PDF proof without opening a browser print dialog.

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 gives you a clean version. Paste a URL and it renders the page in a real browser engine, capturing the article exactly the way it looks, with the layout intact. 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 rendered at a real laptop screen size so the layout matches what you'd see when reading it.

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 and the renderer treats it the same as a webpage. You can include inline CSS and link out to public stylesheets and images.

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. There's nothing you can do other than copy the article text manually.

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. A timestamped PDF is harder to dispute than a screenshot.

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

URL mode runs against a server-side renderer because no browser can render arbitrary URLs from inside a sandbox. The URL and the rendered output sit on the server for the few seconds the rendering takes, then get cleaned up. The PDF that comes back is yours to keep.

Frequently Asked Questions

Can I convert any web page?

Any publicly accessible URL. Sites that require a login show the login screen instead of the content because the renderer can't sign in for you. A few sites block automated rendering as an anti-scraping measure and will refuse to render too. For everything else, paste the URL and you'll get a PDF in a few seconds.

Will images and CSS come through?

Yes. The renderer is a real browser engine, so it loads CSS, downloads images, runs JavaScript, and waits for the page to settle before capturing. The PDF looks like the web page you'd see in Chrome with the same window width.

Can I paste raw HTML instead of a URL?

Yes. Switch to the Paste HTML mode and the text area accepts your HTML. Inline CSS works, and you can reference external stylesheets and images by URL. Useful for previewing emails, generating PDFs from custom templates, or saving a snippet of HTML as a portable document.

What page size does the PDF use?

A4 by default, with standard half-inch margins. If you need US Letter or a custom size, the options panel lets you pick. The renderer adjusts the page width and reflows the content to fit.

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

Some sites detect reader-mode hints and reduce the clutter automatically. For others, you can paste the URL and accept that the PDF will include whatever the page shows. Browser extensions like reader-view in Firefox or Safari can give you a cleaner page first, which you can then print to PDF from the browser if you'd rather have manual control.

Can I convert a web page to PDF just from its link?

Yes. Paste the full https:// URL and the server opens that page in a headless Chromium browser, waits for it to finish loading, then prints it to A4. You don't need to save the HTML yourself — the link is enough, as long as the page is publicly reachable.

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

Yes. The converter renders with print backgrounds turned on, so colored headers, table shading and background images are preserved 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. The browser visits the URL as a fresh guest with no cookies or session, so it only sees the public version. For a logged-in page such as a bank statement or DigiLocker document, use your own browser's Print > Save as PDF, or copy the rendered HTML and paste it here instead.

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

Yes. Chromium shapes Devanagari and other Indian-language scripts properly, so a result page or invoice in Hindi or Marathi renders with correct conjuncts and matras rather than broken boxes.

What page size and margins does the output PDF use?

Every conversion is printed to A4 with 20mm top and bottom margins and 15mm left and right margins. This matches standard Indian printing and filing, so the PDF prints cleanly without content running off the edge.

Can I paste my own HTML code instead of a live URL?

Yes. Instead of a link you can supply raw HTML markup; the server loads it as page content and renders it through the same Chromium engine, which is handy for testing an email template or a hand-coded invoice layout.

Related Tools