Convert HTML to PDF — Free, In Your Browser

Drop a .html file or paste raw HTML — download a clean PDF. No upload, no signup, no watermark.

The free HTML to PDF converter that runs 100% in your browser. Pick page size (Letter, A4, A3, A5, Legal, Tabloid), orientation, margins, and choose whether to honour the page's @media print stylesheet. Works for .html files, .htm files, Chrome HTML Documents, raw markup pasted from your code editor, and anything else a browser can render.

Drop an HTML file here

or

No upload needed. Everything runs 100% locally in your browser.

How to Convert HTML to PDF in Your Browser — 4 Steps

1. Drop an .html file or paste HTML

Drag a .html / .htm file onto the dropzone, or click the Paste HTML tab and paste your markup. The file or text loads into your browser — nothing gets uploaded to any server.

2. Pick page size + orientation

Choose between Letter, A4, A3, A5, Legal, or Tabloid. Set portrait or landscape. Tweak the margin if your design needs more breathing room. The default 0.5-inch margin matches Word, Pages, and Google Docs.

3. Choose stylesheet mode

By default we honour any @media print stylesheets in your HTML — so a page already styled for printing comes out exactly as designed. Tick "Use screen CSS" if you want the screen layout instead, useful when your print stylesheet hides nav/sidebar but you want to capture the full screen view.

4. Convert and download

Click Convert. The HTML renders inside an off-screen iframe, html2canvas snapshots each page-height tile, and pdf-lib assembles the final PDF — all locally. Click Download, or open it straight in the full PDF Edit editor to add text, sign, or merge.

Why Use This HTML to PDF Converter?

100% Local Conversion

Your HTML never leaves your device. Sejda, FreeConvert, Adobe, iLovePDF, PDFCrowd, and Smallpdf all upload the HTML to their servers before handing back a PDF. We render in your browser using html2canvas + pdf-lib — there's no server-side copy because we don't have a server for your files.

Paste HTML directly

Most converters require a file or a URL. Ours has a Paste HTML tab — copy markup straight from your editor, an email source view, or a templating-engine render preview, and convert it without saving to disk first.

Custom page geometry

Letter, A4, A3, A5, Legal, Tabloid. Portrait or landscape. Adjustable margins. We meet the page size your downstream workflow expects, instead of forcing one default.

Print CSS aware

If your HTML has an @media print stylesheet (which most production CSS does), we honour it — links get inline URLs, navigation hides, body widens to the page. The same way Chrome's File → Print → Save as PDF behaves.

Real CSS3 fidelity

We use the browser's own layout engine — flexbox, grid, gradients, transforms, custom properties, blend modes all render correctly because there's no third-party renderer to mistranslate them. Server-side converters often substitute approximations.

Free, no signup, no limit

No account, no email, no captcha, no credit card, no daily quota, no file-size cap, no watermark. Convert as many HTML files as you want. Ad-supported so it stays free for everyone.

HTML to PDF vs Sejda, FreeConvert, DocRaptor, Adobe

Feature PDF Edit Sejda FreeConvert DocRaptor Adobe
HTML uploaded to a server?No — 100% localYesYesYes (paid API)Yes
Account required?NeverFree tier limitedFree tier limitedAPI key requiredYes
Paste HTML directly?YesNo (file only)No (file only)Yes (API)No
Custom page size?Yes (6 sizes)YesLimitedYesYes
Print CSS supported?YesYesPartialYesYes
File-size limit?None200 pages1 GBPer planPer plan
Daily limit?None3 tasks/hourTier-basedPer planNone
Watermark on output?NoFree tier: yesFree tier: some toolsNoNo
Works offline after load?YesNoNoNo (server)Yes (desktop)

When the HTML you're converting contains anything sensitive — internal reports, billing summaries, customer data, draft contracts — the difference between local and server-side processing is the difference between "your data crossed a third party" and "your data never left your machine". For server-side automation at scale (a backend that needs to generate PDFs from rendered templates) DocRaptor or wkhtmltopdf are still the standard. For everyone else, local is the right answer.

4 Ways to Save a Webpage as PDF (Without Uploading)

  1. 1. Browser print-to-PDF (best for the page you're already looking at).

    Chrome / Edge: Ctrl+P → Destination: Save as PDF. Safari: File → Export as PDF. Firefox: Ctrl+P → Save to PDF. Produces a native text-layer PDF, fully local, no install. Drawback: only works for the page currently loaded — and only the visible viewport stylesheet, no per-conversion options.

  2. 2. Save the page locally first, then convert.

    Chrome: ⋮ → Save as → Webpage Complete. You get a .html file plus an assets folder with images/CSS. Drop the .html into our converter. Works for any number of pages, any page size, repeatable. Best for batch / scripted exports.

  3. 3. Read mode + browser print.

    Safari Reader, Edge Immersive Reader, or Firefox Reader View strip the page down to the article, then File → Print → PDF. Cleaner output for blog posts and articles that have lots of nav/ads. Limited to article-style pages.

  4. 4. Our HTML to PDF converter (best for custom geometry + paste workflow).

    Drop the .html file (or paste markup) here, pick page size, orientation, margin, and stylesheet mode. Best when you need page geometry control, repeatable batch conversion, or you're converting markup that isn't currently rendered in any browser tab.

Every one of these is local — no upload anywhere — and we think that's the right baseline for any "save webpage as PDF" workflow.

How to Print HTML as PDF Using Your Browser

Chrome / Edge / Brave / Opera

Open the .html file in the browser (drag it onto a tab). Press Ctrl + P (Windows) or ⌘ + P (Mac). In the Destination dropdown, choose Save as PDF. Click Save. The PDF saves to your downloads folder. Drawback: you only get the page's screen layout (or its print stylesheet if it has one), no custom page geometry or margins beyond what the print dialog exposes.

Firefox

Open the .html. Press Ctrl + P → set Destination to Save to PDF. Firefox supports per-page margin and orientation overrides in the print dialog.

Safari (Mac)

Open the .html. File → Export as PDF. Or use File → Print → PDF dropdown → Save as PDF. Safari respects @media print rules in the source.

When to use our converter instead

Three scenarios where browser print falls short: (1) you want a specific page size like A3 or Tabloid that's not in the print dialog; (2) you want to convert raw HTML markup you've copied from a code editor without saving it to disk first — paste it into our Paste HTML tab and convert directly; (3) you want a repeatable batch workflow with the same page geometry every time.

Chrome HTML Document to PDF — What's a .chml File?

"Chrome HTML Document" is the name Windows uses in Explorer for any .html or .htm file when Chrome is set as your default browser — it's not a special format, it's just a regular HTML file. To convert one to PDF: drop it onto our converter (it'll be detected as .html), or right-click the file in Explorer → Open with → Chrome → Ctrl+P → Save as PDF. If the file extension shows as .chml or .chrome instead of .html, rename it to .html first (View → File name extensions in Explorer to enable visible extensions). Our converter accepts the .html, .htm, and .xhtml file extensions natively.

Same advice for "Microsoft Edge HTML Document" (Edge default), "Firefox HTML Document" (Firefox default), and "Safari HTML Document" (Safari default) — they're all just .html files relabelled by the OS to match the user's default browser. Drop any of them on our converter and they'll work.

Who Converts HTML to PDF?

Developers exporting reports

Server templates render HTML for analytics dashboards, billing summaries, audit logs. Drop the rendered HTML into the converter to ship a PDF artifact without standing up wkhtmltopdf or Puppeteer.

Designers archiving prototypes

HTML/CSS prototypes get a PDF snapshot for client review. Custom page size matches the prototype's layout target — A3 for posters, A5 for booklets.

Email teams previewing campaigns

Paste the rendered email HTML, generate a PDF, send it to legal/brand for sign-off without forwarding live HTML.

Educators sharing course material

Lecture notes published as HTML get a PDF version for offline reading or LMS upload. Reflowable layout + clean print CSS = no manual formatting.

Content teams archiving articles

Save published web articles as PDFs for offline reading lists, briefing packs, or client-deliverable PDFs. Works on any device that has a browser.

Anyone signing a webpage

Convert the page to PDF here, then open in the editor and sign — useful for terms of service screenshots, account confirmation pages, or anything you need to attach to a record.

HTML vs PDF — When to Use Each

AspectHTMLPDF
Primary purposeDisplay + interaction in a browserDistribution + print fidelity
Layout reflowResponsive — adapts to viewportFixed — same on every device
EditingSource code editableLocked once produced (annotations possible)
File sizeTiny markup + linked assetsSelf-contained, larger
SearchabilityNative text everywhereNative (text-layer PDFs) or none (rasters)
Email-friendlyRenders inline in webmailUniversal attachment
Print fidelityDepends on browser + print CSSIdentical across renderers
FormsHTML form elements + JSAcroForm fields
SignaturesNone (e-sign service required)Native (PAdES, PKCS#7)
Best forWeb pages, apps, dashboardsReports, contracts, archives, print

Use HTML for anything that lives in a browser; convert to PDF the moment you need to distribute, print, or archive a snapshot.

Frequently Asked Questions

How do I convert HTML to PDF?

Drop a .html file onto the page above (or paste raw HTML into the Paste HTML tab), choose page size and orientation, then click Convert. The PDF saves to your device. No account, no upload, no watermark, no daily limit.

How do I save HTML as PDF?

Two paths: (1) Use our converter — drop the .html file or paste the markup, click Convert, save the PDF. Best when you want custom page size, repeatable output, or you're working with raw markup you haven't saved yet. (2) Use your browser's built-in print dialog — open the .html in Chrome / Edge / Safari / Firefox, press Ctrl + P (⌘ + P on Mac), set Destination to "Save as PDF", click Save. Best for the page you're already looking at.

How do I change HTML to PDF?

Same as saving HTML as PDF — drop the .html file on our converter or print it from your browser to "Save as PDF". The result is a .pdf file you can email, sign, or print.

How do I convert an HTML file to PDF for free?

Drop the .html file on this page above (or paste markup into the Paste HTML tab), choose page size and orientation, click Convert. The PDF saves to your device. No account, no upload, no watermark.

Is this HTML to PDF converter really free?

Yes, 100% free forever. No trial, no premium tier, no per-file charge, no daily quota. Ad-supported.

Do I need an account?

No. No signup, no email, no login. Every tool works on the first click.

Is my HTML uploaded?

No. The conversion happens entirely in your browser via html2canvas + pdf-lib. Your HTML never touches our servers.

Can I paste HTML instead of uploading a file?

Yes. Click Paste HTML, paste your markup (full document or just a body fragment), and click Convert pasted HTML.

Can I convert a webpage URL to PDF?

Not directly — browser CORS rules block fetching arbitrary URLs from page JavaScript. Save the webpage as a .html first (Chrome: ⋮ → Save as → Webpage Complete) then drop it here. Or use Chrome's File → Print → Save as PDF for the page you're already looking at.

What page sizes are supported?

Letter, A4, A3, A5, Legal, and Tabloid (Ledger). Both portrait and landscape.

Is the text in the output PDF searchable?

نه — اوس مهال رسمیزه شوی: د سرچینې سره لیدنۍ یو‌شان خو انتخاب‌وړ نه دی. د انتخاب‌وړ متن لپاره د Chrome File → Print → Save as PDF د هغه مخ کې وکاروئ چې تاسو یې رینډر کوئ.

Will the @media print stylesheet be honored?

Yes by default. Tick "Use screen CSS" to ignore print styles and capture the screen layout instead.

Will fonts and CSS render correctly?

Yes for system fonts and self-hosted web fonts that load before conversion (we wait for document.fonts.ready). All modern CSS3 — flexbox, grid, gradients, transforms, custom properties — renders faithfully because we use the browser's own layout engine.

Is there a file-size limit?

No artificial limit. Memory is the only ceiling — modern laptops handle multi-MB HTML files easily.

Is there a daily conversion limit?

No. Convert as many HTML files as you want, as often as you want.

Does it work on mobile?

Yes. iPhone Safari, iPad, Android Chrome — any modern mobile browser.

Does it work offline?

Yes after the first page load — html2canvas + pdf-lib are cached in your browser.

Does the output have a watermark?

No. Clean output, every time.

How is this different from Puppeteer / wkhtmltopdf?

Same idea — render HTML in a browser, capture as PDF — but server-side. Ours runs in your own browser so there's no server-side copy of your HTML. For backend automation at scale you still want Puppeteer, wkhtmltopdf, or DocRaptor.

Can I edit the PDF after converting?

Yes. Click Open in editor on the download screen.

What is the best HTML to PDF converter?

For privacy-first workflows and zero signup friction, we believe pdfedit.com is the best — see the comparison table above. For server-side automation, DocRaptor or wkhtmltopdf. For exporting the page currently in your browser, Chrome's built-in Save as PDF.

About this tool: PDF Edit is built by a small independent team who were tired of PDF tools that required accounts, watermarked outputs, and uploaded files to servers we didn't control. Every other free HTML-to-PDF converter we surveyed — Sejda, FreeConvert, Adobe, iLovePDF, PDFCrowd, Smallpdf — sends your HTML to a remote server before handing back a PDF. Our converter runs 100% inside your browser. Your HTML never leaves your device, there's no file limit, no signup, no watermark. Free forever, ad-supported. The conversion engine is the same v2/js/pdf/HtmlToPdf.js module our main editor uses when you drop a .html onto it — one source of truth, identical behavior across every surface.