HTML to PDF Converter

Save any web page, HTML file, MHTML archive or snippet of code as a clean PDF - with proper page sizes, margins, backgrounds and page numbers. Need it as Markdown or plain text? That works too. Prefer a picture of the page? Try Website Screenshot.

Try:

Public pages only. The page opens in a real Chrome browser, so most modern sites render well. Pages behind a login? Save them as MHTML and upload.

Output

Rendered in a private, temporary Chrome session. Your output is deleted right after you download it.

How to Convert HTML to PDF

  1. Pick your source. Paste a web page address, upload HTML or MHTML files, or paste HTML code.
  2. Choose the output. Keep PDF, or switch to Markdown or plain text.
  3. Set up the pages. Choose paper size, orientation, margins, backgrounds, page numbers and an optional header or footer.
  4. Convert and download. Press Convert, check the page count and size, then download the file or a ZIP of several.

Saving a long article to read offline? Use A5 with Narrow margins - it reads beautifully on a phone or e-reader.

URL, File or Paste - Which Should You Use?

All three end in the same Chrome print engine, but they suit different jobs.

SourceBest forGood to know
Web pageArticles, docs, receipts on public sitesScripts run, so modern sites render. No logins.
MHTML filePages behind a login, exact snapshotsSave with Ctrl+S as "Webpage, Single File".
HTML file or pasteInvoices, emails, reports you generateCSS and public images work, scripts are not run.

Just want to look at an HTML file without converting it? Open it in the HTML Viewer.

Print-Ready PDFs from HTML

Building invoices or reports in HTML? A few CSS rules give you full control.

Page breaks

Add break-before: page to a heading to start it on a new page, and break-inside: avoid to keep tables and cards together.

Colours

Backgrounds are skipped unless you switch them on. Turn on Background colours and images for coloured table headers and banners.

Print vs screen

Styles inside @media print apply by default. Switch on Screen layout to ignore them and print the on-screen design.

Tips and Related Tools

  • Too many pages? Lower the scale to 80% or use Landscape for wide tables.
  • Need an image of the page? The Website Screenshot tool captures it as PNG or JPG.
  • Combining several pages? Upload them together, then join the PDFs with Merge PDF.
  • Office documents convert best with Word to PDF and Excel to PDF.
  • File too big to email? Shrink it with Compress PDF.

Frequently Asked Questions

Choose Web page, paste the address (for example https://example.com/article) and press Convert to PDF. The page is opened in a real Chrome browser on our server and printed to PDF with your paper size, margins and page numbers.

Want a picture of the page instead? Try the Website Screenshot tool.

Yes. Paste markup into Paste HTML, or upload up to 20 .html, .htm, .mhtml or .mht files at once. CSS in the file, inline images and images from public web addresses are included.

For safety, scripts inside uploaded or pasted HTML are not run - static HTML and CSS render fully. If your page builds its content with JavaScript, publish it and use the Web page option.

MHTML (.mhtml or .mht) is a whole web page saved as one file - the HTML plus its pictures and styles. In Chrome or Edge press Ctrl+S (Cmd+S on a Mac) and choose Webpage, Single File.

Upload it here and the pictures and styles inside it are used, so the PDF looks like the page you saved - even pages behind a login.

Many sites have a special print style that hides menus, ads and backgrounds. Switch Layout to Screen to print what you see on screen, and turn on Background colours and images.

Pages that need a login, show cookie walls or load content only after you click cannot be captured from their address - save them as MHTML in your browser and upload that file.

Yes. Page numbers ("1 / 5") are on by default at the bottom of every page. Under Header and footer you can add your own text, such as a company name or "Draft", at the top and bottom.

Yes. Pick Markdown to keep headings, lists, links and bold text in a format that works in GitHub, Notion and most note apps, or Plain text for just the words.

Need text from a scanned page or picture instead? Use Image to Text.

Local and private addresses (localhost, 192.168.x.x and similar), pages that need a login, and very large pages over 8 MB. Only http and https addresses on the standard web ports work.

This keeps the converter safe for everyone. For pages behind a login, save them as MHTML and upload the file.

Your file or code is sent over HTTPS, rendered in a private temporary folder that is deleted right away, and the PDF is deleted as soon as your browser has downloaded it. Anything left behind is removed automatically within 4 hours.

Guides & Tutorials

All 14 guides
Comparison PNG vs JPG: Which Image Format Should You Actually Use? Read the guide Optimization How to Reduce Image File Size Without Losing Quality Read the guide Guide Complete ICO File Guide: Understanding, Opening & Converting Icon Files Read the guide