Step-by-step guide

How to convert HTML to PDF

A web page is fluid; paper is fixed. HTML to PDF decides where the page breaks, how wide the viewport is and whether the site’s print stylesheet applies. Those choices explain most of the difference between a clean PDF and a cut-off mess.

Step by step

  1. 1

    Set the options

    Adjust html content, web addresses (one per line), screen size and page size. Every field has a sensible default, so you can usually run the tool straight away.

  2. 2

    Paste the markup

    Give a web address or paste HTML. External stylesheets need to be reachable from this server, so inline the CSS if the page is not public.

  3. 3

    Run it and download

    Press HTML to PDF and the page shows progress while it works. When it finishes you get a download link — nothing is emailed and nothing is stored longer than it needs to be.

HTML source or a web address

Paste the markup when you control the content and want the conversion to work without a live site. Use a public URL when the page is already published. Pages behind a login or a firewall cannot be fetched by the converter; save the HTML and paste it instead.

Screen width, paper size and margins

The screen size controls the CSS viewport, which changes how the page reflows. A 1200px view usually matches a desktop browser; use the mobile width when you specifically want the phone layout. Then choose A4, Letter or another sheet and a margin. “One long page” keeps the design continuous; fixed pages are easier to print.

Print styles, ads and popups

Turn on the print stylesheet when the site provides one; it often hides navigation and expands content. Ad and popup blocking reduce clutter but can also hide legitimate content, so check the result. “Show URL and date” is useful for archival copies of a page that may change.

Check links and page breaks

Open the PDF and check where pages break, especially through tables and code blocks. Click a link and confirm it still points to the right address. For a long article, check the last page and the page count; a missing footer often means the final section ran past the chosen page height.

Good habits for HTML to PDF

  • Images are placed one per page at their natural size.
  • Office formats keep their basic styling; embedded fonts are substituted if the file is missing.
  • For a web address, inline the CSS if the page is not publicly reachable.

Common questions

Is this tool free?

Yes. Every tool on this site is free to use, with no sign-up, no watermark and no daily task limit.

Do I need to install anything?

No. The tools run in your browser and are processed by this server.

What happens to my files?

They are stored under an unguessable id and swept automatically after a couple of hours. Nothing is shared or indexed.

Does it work on a phone?

Yes. The page pickers and editors are built for touch, so dragging, rotating and selecting pages all work without a mouse.

What does HTML to PDF do exactly?

Paste HTML markup or give a web address to convert into PDF.

Can I convert a page that requires a login?

No. The converter cannot sign in for you. Save the page’s HTML and paste the markup, or export the page from your browser first.

Why is the PDF layout different from my browser?

The screen width and print stylesheet determine the reflow. Try a different viewport width and enable the print stylesheet.

Can I convert several URLs at once?

Enter one URL per line. The output combines the pages in order; check the page breaks between sites.

Open HTML to PDF All PDF guides

More tool information

What the other tools do

Word to PDF

Converts Word, Excel, PowerPoint and OpenDocument files into PDF with their layout, fonts and page breaks carried across by a real office engine rather than a text scrape.

JPG to PDF

Combines photos and scans into one PDF, one image per page, in the order you arrange. Page size, orientation and margin are yours to set, and “fit to image” keeps the original proportions.

Split by pages

Splits a document by page ranges you write yourself — one group per line. Each group becomes its own file, named from a pattern such as [BASENAME]-[CURRENTPAGE].

Rename

Names the file from its own contents: the first lines of text on the first page become the name, following a pattern of [TEXT1], [TEXT2] and [BASENAME].

Keep reading

Related Blog Posts

More PDF tools