Free tools that run in your browser. Use any tool without an account.

Favourites Cart
Sign in
Join free

HTML to PDF

  • Free
  • Runs in your browser
  • No account needed

FreeToolr turns pasted or selected HTML files into downloadable PDFs in your browser. Choose quick rebuild for clean selectable text, or print view for CSS. For example, a 210 mm by 297 mm A4 page fits standard documents.

Your text stays on this device.

The PDF button rebuilds the page from its structure (headings, paragraphs, lists, tables, links, code and data: images) in a clean layout: CSS styling, colours, columns and web fonts are not copied. For a copy that looks like the page, use "Print or save as PDF" and pick "Save as PDF". Scripts never run and nothing is loaded from the web.

Runs in your browser. Your files and values are not sent to us. Report a problem
Advertisement

About HTML to PDF

HTML to PDF turns HTML that you paste or select from your device into a downloadable PDF. You can use it for invoices, receipts, notes, reports, code samples, or saved document content. The quick option rebuilds headings, paragraphs, lists, tables, links, code, and embedded images as real text in a clean layout. It leaves out CSS styling, colours, columns, and web fonts. The print option opens your browser's print view, so the PDF can use the HTML's CSS. Scripts do not run, and the tool does not load files, images, or stylesheets from the web. Your HTML stays in your browser, and the PDF downloads directly to your device. This gives you a local option for private files and two useful output styles. It does not convert a live website from its address.

How to use it

  1. 1Paste your HTML into the editor, or select an HTML file from your device.
  2. 2Choose Quick PDF for a clean text rebuild, or choose Print to use the browser print view.
  3. 3Review the result in the selected PDF workflow.
  4. 4Download the PDF directly to your device.
Advertisement

Worked example

Input: <h1>Invoice 1042</h1><p>Total: $125.00</p>. With Quick PDF, the result contains the heading Invoice 1042 and the text Total: $125.00 as selectable PDF text in a clean layout. CSS colours and web fonts are not included.

How it works

Turns pasted or uploaded HTML into a PDF in two waysThe quick PDF rebuilds the page from its structure (headings, paragraphs, lists, tables, links, code and embedded data: images) as real text in a clean layout, but does not keep CSS styling, colours, columns or web fontsThe print option opens the HTML in the browser's print view to save as PDF with its CSSScripts never run and nothing is loaded from the web, so linked images and stylesheets are left outIt does not convert a live website from its addressRuns in the browser: files are never uploadedResults download straight to the device

Source: WHATWG HTML rendering and printing modelW3C CSS Paged Media Level 3W3C CSS Values and Units. Last checked 4 November 2026.

What it is good for

  • Keep rebuilt text selectable and easier to search.
  • Use a local browser workflow for private HTML files.
  • Choose clean text output or browser print styling.
  • Quick PDF does not keep CSS styling, colours, columns, or web fonts.
  • Scripts and web resources do not run or load, so linked images and stylesheets are left out.
Advertisement

Questions people ask

Can I convert an HTML file without uploading it?

Yes. Select the file in your browser, and FreeToolr reads it locally. The file is never sent to a server.

Does the quick PDF keep my CSS?

No. Quick PDF rebuilds the HTML structure as real text. It does not keep CSS styling, colours, columns, or web fonts.

How does the print option handle CSS?

Print opens the HTML in your browser's print view. This lets the PDF use the HTML's CSS, subject to the browser's print rendering.

Why are my linked images or stylesheets missing?

The tool does not load anything from the web. Embedded images can be included, but linked images and stylesheets are left out.

Does JavaScript run during conversion?

No. Scripts never run, so content that requires JavaScript may not appear in the PDF.

Can I convert a webpage by entering its URL?

No. This tool does not convert a live website from its address. Paste the HTML or select an HTML file instead.

Will the PDF text be selectable?

Quick PDF rebuilds headings, paragraphs, lists, tables, links, code, and embedded images as real text. The exact text behaviour of print output depends on the browser's PDF process.

Help keep every tool free

FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.

Advertisement
Advertisement