HTML to PDF

100% free & online — drop an .html file here (with its images & CSS) or paste your code.

Loading HTML…
HTML to PDF / HTML
Creating PDF…
0%
PDF created
— pages · —
STEP-BY-STEP

How to convert HTML to PDF

Turn HTML into a PDF in three steps. No signup, no installs.

01
UPLOAD
Add your HTML

Upload an .html file (plus its images and CSS), import it from Google Drive or Dropbox, or paste HTML code.

02
SET UP
Choose the page layout

Pick A4, Letter or Legal, portrait or landscape, margins and screen width. Smart page breaks keep lines of text whole, and the page preview updates live.

03
DOWNLOAD
Download your PDF

Click Convert to PDF and download a PDF that looks exactly like your page — colours, fonts, images and layout included.

ABOUT THIS TOOL

Convert HTML to PDF Online — Free & Private

Invoices, reports, email templates, receipts, certificates and saved web pages are often built in HTML — but clients, schools and offices usually want a PDF. A PDF looks the same on every device, prints cleanly and can’t be accidentally edited.

This free HTML to PDF converter turns an .html file or pasted HTML code into a PDF right in your browser. Your CSS styles, colours, web fonts, tables and images are kept, and you can choose A4, Letter or Legal pages, portrait or landscape, margins, and whether the layout is rendered at page, tablet or desktop width.

Long pages are split across as many pages as needed, and smart page breaks move each break into blank space so lines of text aren’t cut in half. You can also use CSS page-break-before or break-before: page to start a new page exactly where you want. For a version with selectable text, use the built-in Print → Save as PDF option.

Everything runs on your device, so your HTML is never uploaded to a server, and scripts in the page are never run. It’s 100% free online, with no signup, no watermark and no daily limit.

WHY CHOOSE US

Why Use Our HTML to PDF Converter?

Accurate, private and free — no app, no upload, no watermark.

Never Uploaded

Your HTML is converted locally in your browser and scripts are never run — safe for private documents.

Keeps Your Design

CSS, colours, web fonts, tables and images come through just as they look on screen.

File or Code

Upload an .html file with its images and CSS, or simply paste HTML code and convert.

Smart Page Breaks

Long pages split cleanly between lines, and CSS page-break rules are respected.

A4, Letter or Legal

Portrait or landscape, three margin sizes, and page, tablet or desktop layout widths.

Works on Any Device

iPhone, Android, Mac, Windows — turn HTML into a PDF without installing anything.

EXPLORE MORE

Related PDF tools

Free, browser-based, and built the same way as HTML to PDF.

COMMON QUESTIONS

Frequently Asked Questions

Yes. There's no signup, no trial and no watermark on your PDF, and no daily limit on how many pages you convert.

No. Your HTML is converted locally in your browser and never leaves your device. Scripts in the page are never run, so it's also safe to convert code you didn't write.

No. This HTML to PDF converter works 100% online in any modern browser — Chrome, Safari, Edge or Firefox on Windows, Mac, iPhone and Android. There's nothing to download and no account to create.

Upload your .html file (select its images and CSS files too), or paste your HTML code. Choose page size, orientation and margins, check the preview, then click Convert to PDF and download.

Yes. Styles in <style> tags, linked CSS files you upload, web fonts such as Google Fonts, and images are all kept. Images on other websites appear if that site allows it; otherwise upload them with your HTML.

Smart page breaks move each break into blank space so text lines aren't cut. To force a new page, add page-break-before: always or break-before: page to an element in your CSS.

Yes. The standard download is a pixel-perfect PDF. For a PDF with selectable, searchable text, click "Print → Save as PDF" and choose Save as PDF in your browser's print dialog.

This tool converts HTML files and code. To convert a live web page, save it from your browser (Ctrl+S or Cmd+S, "Webpage, complete") and upload the .html file with its folder, or open the page and use your browser's Print → Save as PDF.

Still have questions? Contact support →