HTML to PDF

Convert HTML to PDF from a saved page or pasted code, with tables, images and clickable links intact.

  • Files or pasted code
  • Clickable links
  • No upload
Select HTML files or drop them anywhere on this page HTML, HTM, XHTML and its images - up to 20 files - 100 MB per batch

Your markup is converted on this device.

How to convert HTML to PDF

  1. Add the page and its images

    Drop the HTML with its image files, or paste markup into the options.

  2. Set paper and text size

    Pick A4 or Letter, a margin preset and body text from 9 to 12 point.

  3. Read the result screen

    Press Convert to PDF; it counts any remote image or style it skipped.

Convert HTML to PDF with links that still click

Links that open in any reader

Every anchor becomes a real PDF link, and Keep links clickable switches them off for a printed copy.

Your images, found by name

Drop the image folder with the page and each src is matched to its file, wherever it sat.

A screen layout made printable

Page size, margins and 9 to 12 point body text turn a scrolling layout into a clean column on paper.

Free vs Premium

Free

$0No credit card

  • 1 operation every 12 hours, no account needed
  • 2 operations every 12 hours with a free account
  • 20 files or 100 MB per batch
  • No watermark on any PDF
Create a free account You're on the free plan Included in your plan
CartHacker Premium

Loading your pricea month, billed yearly

a year, or month to month Save

Your price, in your currency and with your local tax, is shown at checkout.

  • Everything in Free, plus:
  • Unlimited operations on all 39 PDF tools
  • 100 files or 500 MB per batch
Also in CartHacker Premium
  • 50 trust badges, shown in 30 languages
  • 180 days of Core Web Vitals history
  • Create and track up to 200 QR codes
  • No ads anywhere on CartHacker
  • Read new guides 2 weeks earlier
  • New tools included as they launch
See CartHacker Premium Full refund within 14 days. Cancel anytime. Your Premium plan is active

FAQ

Can I convert a live website by pasting a URL?

No: fetching a URL would mean our server requests the page for you, and this converter keeps the whole job on your device. Save the page with Save Page As, or copy the part you need, and convert that.

Why are images missing from my PDF?

Those images point at a remote server, and the converter fetches nothing from the internet. Drop the image files in with the HTML and they appear, matched by file name.

Which CSS does it understand?

Fonts, colors, backgrounds, alignment, margins, padding, indents, line height, lists and page breaks, set through type, class and id selectors. Flexbox, Grid, floats and positioning aren't implemented, and skipped rules are counted on the result screen.

Can I paste HTML instead of dropping a file?

Yes, the text field in the options takes a full document or a bare fragment, which is wrapped for you. Pasted code wins over a dropped file, so you can test one snippet after another.

Which fonts does the PDF use?

Liberation Sans, Serif and Mono, which match the letter widths of Arial, Times New Roman and Courier New. Your CSS font list is read in order and mapped to the first of the three it names.

More PDF tools

Also free for online stores: a speed test and trust badges

Find the apps that slow your store, by name and in milliseconds, and show your shipping, returns and checkout promises under Add to cart.

Store Speed Test

Which app is slowing your store down?

Paste any page and get its three Core Web Vitals, the apps costing time, like Klaviyo or Judge.me, and the Shopify or WooCommerce fix.

  • 1 free test a day, no sign-up
  • 5 a day on a free account
  • Google's Lighthouse engine

Trust Seals & Badges

Do shoppers hesitate at Add to cart?

Show the promises that settle doubts, from free shipping to a money-back guarantee, right under the Add to cart button. One line in your theme, or the free WordPress plugin.

  • 8 badges in 2 styles, free
  • Premium: 50 badges, 30 languages
  • View counts from the first shopper
Build my trust badges
QR Code Generator

Change the link after printing and count the scans. 5 tracked codes on a free account, static codes unlimited.