How to Convert HTML to PDF Free Online (No Sign-up)

By ExactFile Editorial Team · Published August 25, 2026 · Updated September 1, 2026 · Fact-checked August 28, 2026

Expanded and re-verified against current tool behaviour and official portal specifications, Aug 28, 2026.

Converting HTML to PDF used to require installing software or paying for a subscription. Not anymore — you can do it right in your browser, for free, with full CSS support. This guide walks you through the whole process: what you need, how page setup affects your output, how to convert a web page you've saved to your computer, and what to do when the PDF doesn't look quite right.

HTML to PDF Converter

Turn any HTML file or snippet into a clean PDF with full CSS support — headings, colors, layout, images.

Open tool →

PDF to Word Converter

Convert a PDF to an editable Word (.

Open tool →

What you need

Just an HTML file (or even a snippet of HTML pasted into a text box). That's it. No installation, no account, no payment. The file can come from anywhere — a document you wrote yourself, a template you downloaded, or a page you saved from your browser.

Step-by-step: HTML to PDF conversion

  1. Go to the HTML to PDF converter — it loads instantly, no pop-ups or sign-up walls.

  2. Choose your input method — either upload an .html file, or paste raw HTML directly into the text box. Both produce the same result.

  3. Click Convert — the tool renders your HTML through a layout engine that understands CSS. Headings, colors, tables, bullet lists, and inline styles all carry through into the PDF.

  4. Download — the PDF is ready in seconds. It's generated in a private temp area and auto-deleted within 30 minutes.

Page setup options

Before you convert, it's worth thinking about how your content will sit on the page. A PDF has fixed dimensions, unlike a browser window, so a few small choices make a big difference to the result.

Page size

Most converters default to A4 (210 × 297 mm), which is standard in the UK and most of the world. If you're printing in the US, Letter (8.5 × 11 in) is the safer choice — it's slightly wider and shorter, so tables and wide images may fit better. If your HTML is designed as a single long page (like a receipt or a report), look for a "single page" or continuous option so the content isn't chopped into sheets.

Margins

Default margins are usually around 10–20 mm on each side. If your HTML already has its own padding (for example, an invoice template with a styled container), set the PDF margins to zero or a small value so you don't end up with double spacing. For documents meant to be printed and filed, keep at least 15 mm on the left for hole-punching.

Background colours

Here's the catch most people miss: many PDF engines omit background colours by default to save printer ink. If your design relies on a coloured header band or a shaded table row, check for a "print backgrounds" or "include backgrounds" option and switch it on. In CSS, you can also force it with -webkit-print-color-adjust: exact; on the elements that need colour.

Converting a saved web page

A common use case is archiving a web page: you press Ctrl+S (or Cmd+S on Mac) in your browser, save the page as HTML, and later want it as a PDF. Here's what to expect.

What works: The main text, headings, lists, and basic formatting usually survive. Saving as "Webpage, HTML Only" gives you a single clean file that's easy to upload to the converter.

What often breaks: Saving as "Webpage, Complete" creates an HTML file plus a folder of assets (images, CSS, JavaScript) linked with relative paths. When you upload just the HTML file, those links go nowhere — images disappear and styling may collapse. Other things that typically break:

For a faithful copy of a web page, your browser's own print-to-PDF (Ctrl+P → "Save as PDF") is often better, because it captures the fully rendered page. Use the online converter when you've edited the HTML, when you're working from a template, or when you want a cleaner, text-based result.

Does CSS work?

Yes. Inline style attributes, <style> blocks, and standard CSS properties all render correctly:

Are external resources loaded?

No — for your privacy and security, the converter blocks all external URLs. No images fetched from the web, no stylesheets loaded from CDNs, and no file:// paths accessed. If you need an image in the PDF, use a data URI:

<img src="data:image/png;base64,iVBORw0KGgo...">

This keeps the conversion fast and private. Nothing leaves your browser session except the HTML you provide. To embed an image this way, convert it to Base64 first — any free Base64 encoder will do it — then paste the resulting string into the src attribute as shown above.

Troubleshooting

Styling is missing or looks wrong

Almost always, this means the CSS lives in an external stylesheet (<link href="styles.css">) that couldn't be loaded. Fix: open the stylesheet, copy its contents, and paste them into a <style> block in the <head> of your HTML. Inline styles and <style> blocks always work.

Page breaks fall in bad places

A table split across two pages, or a heading stranded at the bottom of a sheet, is a classic PDF pagination problem. Control it with CSS: add page-break-inside: avoid; to tables and figures, and page-break-before: always; to elements (like chapter headings) that should start a new page.

Blank pages appear in the PDF

Usually caused by a large empty element — a container with a fixed height, extra margin at the end of the document, or a forced page break followed by little content. Remove trailing <br> tags and check for elements with heights larger than one page.

Images don't appear

Confirm the image isn't loaded from an external URL or a local file path. Embed it as a data URI instead, as described above.

Browser print vs online converter vs desktop software

Method Best for CSS support External images Cost
Browser print-to-PDF (Ctrl+P) Capturing live web pages exactly as displayed Full — uses the browser's own engine Yes, page is already loaded Free
Online converter (ExactFile) HTML files, templates, pasted snippets, quick jobs Standard CSS; external resources blocked Data URIs only Free
Desktop software (wkhtmltopdf, Acrobat, etc.) Batch jobs, automation, offline work, large files Varies by tool Varies; often configurable Free to $20+/month

In short: use the browser for live pages, an online converter for standalone HTML files and templates, and desktop software if you need to convert hundreds of files or work without an internet connection.

Use cases

Why use a free online converter?

Most paid tools charge $5–15/month for HTML-to-PDF conversion. But the underlying technology (a CSS-aware layout engine) is open source — there's no reason to pay for it. The ExactFile HTML to PDF tool is free with no daily limits, no sign-up, and files are auto-deleted in 30 minutes.

FAQ

Is the HTML to PDF converter really free?

Yes, completely. There's no sign-up, no daily limit, and no watermark on the output. Your uploaded file is stored in a private temporary area and automatically deleted within 30 minutes of conversion.

Why do my images disappear in the PDF?

The converter blocks all external URLs and local file paths for privacy, so images hosted on the web or referenced from your computer won't load. Embed images as Base64 data URIs directly in your HTML and they'll render correctly.

Can I convert a full web page I saved with Ctrl+S?

Yes, but save as "Webpage, HTML Only" rather than "Webpage, Complete" for the cleanest result. Content loaded by JavaScript (comments, infinite scroll) won't be included — for those pages, your browser's print-to-PDF is a better option.

How do I stop tables splitting across two pages?

Add page-break-inside: avoid; to the table's CSS. To force an element onto a new page, use page-break-before: always;. Both properties are supported by the layout engine.

What page size does the PDF use?

A4 (210 × 297 mm) is the common default. If you're printing in the US, choose Letter (8.5 × 11 in) where the option is available, as it's slightly wider and better suited to US printers.

Does the converter support custom fonts?

Standard font families and sizes work fine, but fonts loaded from external services like Google Fonts are blocked along with other external resources. Stick to common system fonts — Arial, Georgia, Times New Roman — for reliable results.

About the author

ExactFile Editorial Team — The ExactFile Editorial Team writes and maintains every guide on this site. Each article is checked against the tool it describes, and official photo/PDF specifications are re-verified against the issuing authority's published requirements before we mark a guide as up to date.

Read more about how we research, test, and verify every guide.