← Back to all tools

HTML to PDF

Turn a saved HTML file into a PDF. Choose the paper size, direction and margins, keep or drop backgrounds, and follow the print styles.

Our free HTML to PDF converter turns a saved web page into a PDF. Pick the paper size, upright or sideways pages, and the margins, and choose whether background colours and images are printed. Scripts are never run, and anything the page would load from other websites is left out, so the result depends only on what is inside your file.

How to Convert an HTML File to PDF Online

  1. 1

    Add your HTML files

    Drop one or more .html files on the page, or choose them from your device.

  2. 2

    Choose the page

    Set the paper size, direction and margins. Open More options to follow the print styles the page defines for printing.

  3. 3

    Convert and download

    Press Convert and download the PDF. Your files are deleted from our servers within 30 minutes.

Why Use the File Tools Online HTML to PDF Converter

🧾

Convert in Seconds

Convert html to pdf without opening a browser print dialog or a code editor first.

⚑

Fast Results

Upload, convert, and download in moments, no long processing wait.

πŸ–₯️

Nothing to Install

Use this html to pdf converter online without downloading an app, a plugin, or a print-to-PDF driver.

πŸ“±

Works on Any Device

Convert an html file to pdf on a laptop, desktop, or phone using nothing more than a web browser.

πŸ”’

Files Handled Securely

Your file is processed over HTTPS and automatically deleted from our servers within 30 minutes.

πŸ’Έ

Free to Use

A free online html to pdf converter, with no cost, no trial limit, and no forced watermark.

Will My Formatting Be Preserved?

Headings, paragraphs, lists, tables, colours, fonts that are installed on the server, and images stored inside the file all come through. The page is drawn the way an older browser would draw it, so classic layouts convert well while very new CSS such as grid layouts may not match what you see in Chrome.

Scripts do not run, so text that a script adds after the page loads will be missing. Style sheets, fonts and pictures that sit on other websites or in other files are not fetched. For the best result, save the page as a single file with its pictures embedded as data, or inline the CSS.

Common Uses for Converting HTML to PDF

Converting an HTML file to PDF comes up whenever a web page or web based document needs to become a fixed, shareable file instead, whether that html document to pdf conversion is a one-off task or something you find yourself doing regularly.

  • Saving a Web Page for Offline ReadingTurn an .html file into a PDF you can open without a browser or internet connection.
  • Archiving a Finished Web PageConvert an .html file into a stable, fixed format for long term record keeping.
  • Sharing a Report Built as HTMLSend a PDF instead of a raw HTML file to someone who just wants to read it.
  • Printing a Web Page or HTML DocumentGet an .html file into a page based format that prints cleanly.
  • Submitting a Document Where PDF Is RequiredMeet a form or submission requirement that expects a PDF, not an HTML file.
  • Generating a PDF From a Template or ExportTurn an HTML export from another tool into a PDF anyone can open.
  • Converting an Email or Newsletter ExportTurn an HTML email or newsletter document into a PDF for archiving or forwarding.
  • Turning Documentation Into a Downloadable GuideConvert an HTML document into a single downloadable PDF instead of a page that only lives online.

What Is an HTML File?

HTML, short for HyperText Markup Language, is the language web pages are written in, an .html file describes the structure of a page, headings, paragraphs, links, images, and how it should be styled, using CSS, and possibly made interactive, using JavaScript, when opened in a browser. An .html file on your own computer behaves a lot like a small, self-contained web page, opening it in a browser shows you basically what a visitor would see, minus anything that depends on a live server. Converting it to PDF takes that browser rendered layout and freezes it onto fixed pages, so the result looks the same no matter who opens it or what browser, or whether they have a browser at all, they are using.

Can I Convert PDF to HTML Instead?

Yes. If you have a PDF and want the reverse, pulling its content out as HTML, use PDF to HTML, a separate, dedicated tool confirmed to use PyMuPDF to produce clean, semantic HTML, headings and paragraphs rather than a pixel-for-pixel image, from a PDF. It is not the same tool running backward, it is built specifically for that direction and that output.

Does This Tool Convert a Live Web Page, or Just an HTML File?

Just an HTML file. The tool cannot fetch a page from its web address, so there is no place to paste a URL. If your HTML lives on a website, save the page as an .html file first (most browsers offer this from the page menu), then upload that file. Images and styles that the page loads from the internet may not be included, so a page saved as a single file works best.

No Software to Install: Convert HTML to PDF Online

Converting an HTML file to PDF by hand usually means opening it in a browser and using its print to PDF option, or installing a dedicated conversion program, just to get a usable result. HTML to PDF on File Tools Online skips that step entirely. There is nothing to download and nothing to install, whether you are on Windows, Mac, Android, or iPhone, you upload your .html file directly in your browser and get your PDF back.

Tips for Best Results

  • Save the page as one file. Use a save option that embeds pictures and styles, such as a single-file extension.
  • Turn on the print styles for articles, so menus and adverts drop out the way they do when you print.
  • Turn off backgrounds to save ink and keep dark pages readable on paper.
  • Check scripted content. Anything that appears only after a script runs will not be in the PDF.
  • Keep the original file. You can change the page settings and run again.

Works on Windows, Mac, and Mobile

Because HTML to PDF is used through your web browser, it works the same way regardless of your device or operating system. Convert an .html file to PDF on a Windows PC, a Mac, an Android phone, or an iPhone without installing anything, even if the device does not have a code editor or dedicated conversion program installed. A tablet or Chromebook works just as well, since the only requirement is a modern web browser, not a particular operating system or developer tool.

Guides and How-Tos

Step-by-step articles that go deeper than this page.

Frequently Asked Questions

What does this tool do?

It converts an HTML file, .html, you upload into a PDF document.

Will my formatting be preserved?

Headings, text, lists, tables, colours and embedded images carry over. Layouts built with newer CSS, such as grid, may differ from what a current browser shows, and content added by scripts is not included.

What is an HTML file?

HTML stands for HyperText Markup Language, the language web pages are written in, describing a page's structure and, together with CSS and JavaScript, its style and behavior in a browser.

Can I convert PDF to HTML instead?

Yes, use PDF to HTML, a separate tool confirmed to use PyMuPDF to produce clean, semantic HTML from a PDF.

Does this tool work with a live web page URL, or only a saved HTML file?

Only a saved HTML file. The tool cannot fetch a page from its web address. Save the page as an .html file first, then upload that.

Will JavaScript on my page still work after conversion?

No. Scripts are never run, and a PDF is a fixed document anyway. Only the content and layout present in the HTML file itself are converted.

Which file formats can I convert with this tool?

Files with the .html extension are the expected input. For a Word document, use Word to PDF instead.

Is there a free way to convert HTML to PDF online?

Yes. Upload your file to HTML to PDF and download the result, there is no cost to use it.

Do I need software installed?

No. Upload your file and convert it directly in your browser, no software installation required.

Can I use this on Windows, Mac, or my phone?

Yes. The tool runs in your browser, so it works the same way on Windows, Mac, Android, and iPhone without installing anything.

Can I convert more than one HTML file at once?

Yes. Add as many .html files as you like. Each becomes its own PDF and you can download them together as a ZIP.

Is my file kept private?

Your file is processed over HTTPS and automatically deleted from our servers within 30 minutes.

What happens to images and styles stored on other websites?

They are left out. For safety the converter does not fetch anything from outside your file. Pictures stored inside the HTML as data are kept, and so are styles written in the file itself.

About the File Tools Online HTML to PDF Converter

File Tools Online is a collection of free, browser based tools for working with audio, video, PDF, and document files, built for people who need a quick, reliable result without installing software. HTML to PDF is one part of a larger set of document tools, so if PDF is not quite the final format you need, PDF to HTML covers the reverse direction with a confirmed PyMuPDF based engine.

Web pages and HTML documents don't always travel well outside a browser, so it is common to hit a moment where an .html file needs to become something more universally viewable or printable, particularly for archiving a finished page, sharing a report built in HTML, or submitting a document somewhere that specifically expects a PDF. Browser based conversion skips opening a print dialog or installing a dedicated tool just to get one file into PDF.

As with the other tools in the toolkit, files are handled over HTTPS and removed from our servers automatically within 30 minutes, so there is nothing left behind to manage or clean up after you get your result.

A free html to pdf converter is often enough on its own for a single page, but if you are converting HTML files regularly, as part of a recurring export or reporting workflow, it is worth keeping an eye on how consistently your specific layouts come through, and adjusting your source HTML's styling if a particular pattern, like a wide table or a fixed-position element, does not translate well onto a paginated PDF.

This page is also available in French: FranΓ§ais.