Skip to main content

PDF Tools

HTML to PDF

Convert HTML web pages to PDF. Free online tool — no upload, no sign-up, runs entirely in your browser.

See how to use this tool

HTML to PDF

Upload or paste HTML and create a clean text-based PDF in your browser.

Page size

Margins

Scripts and styles are removed before conversion. The output is a clean text-based PDF.

Process files to see download results.

Privacy: PDF and image files are processed in your browser. Recommended limit: files under 100 MB or a few hundred pages; encrypted or scanned PDFs may need extra memory.

About HTML to PDF

ToolConv's HTML-to-PDF converter renders an HTML file or pasted markup into a PDF directly in your browser, using a client-side rendering engine that respects CSS print styles. Hand it a local .html file, an .htm archive, or raw markup pasted into the editor, and it produces a paginated PDF with your @page rules, page breaks, and print media styles honored.

Because rendering happens on your device, you can convert internal documentation, draft blog posts, or contract templates without sending them anywhere. The tool supports A4/Letter sizes, custom margins, header/footer injection, and clickable hyperlinks in the output PDF.

How to use it

  1. 1Upload an .html/.htm file, or paste raw HTML into the editor.
  2. 2Set page size, margins, and optional header/footer.
  3. 3Toggle 'respect print media CSS' if your styles use @media print.
  4. 4Click Convert to render the PDF locally.
  5. 5Download the paginated PDF.

When to use it

  • ✓Archiving a blog post draft as a PDF for offline review.
  • ✓Rendering an HTML invoice template into a PDF for emailing.
  • ✓Producing a printable PDF from internal documentation written in HTML.
  • ✓Snapshotting a contract template's rendered output before sending.

Features

  • •Accepts file upload, pasted markup, or a fetched URL.
  • •Honors @page rules, page-break properties, and print media CSS.
  • •Custom margins and header/footer text injection.
  • •Clickable hyperlinks preserved in the output PDF.

Related tools

FAQ

Can I convert a live website by URL?

Yes, for public URLs that allow cross-origin fetching. Sites behind logins, paywalls, or strict CORS policies may fail — for those, save the page as HTML and upload the file instead.

Is my HTML content uploaded?

No. Rendering to PDF happens in your browser; even URL fetching goes through your browser's fetch, not our server.

Does it support modern CSS like flexbox and grid?

Mostly yes — the rendering uses the browser's own engine, so flexbox, grid, and custom properties work. Some experimental CSS features may render differently than in the latest Chrome.

Will external images and fonts load?

Yes, if they're publicly accessible and allow cross-origin loading. Cross-origin images without CORS headers are rasterized but may taint the canvas; embed images as data URIs for guaranteed rendering.

Can I add page numbers to the PDF?

Yes. Use the header/footer fields to inject text; combined with @page CSS counter rules you get automatic page numbers in the footer of every page.

Why does my print stylesheet not apply?

Toggle 'respect print media CSS' on. Without it, the renderer uses screen styles; with it on, @media print rules take precedence just like a real print preview.