Skip to content

HTML to PDF

Upload an HTML file or paste the code, and get a printable, searchable PDF made in your browser. Headings become bookmarks and links stay clickable.

10 free uses left today
Everything happens in your browser; nothing is uploaded to a server.
  • ✓ Free
  • ✓ No sign-up
  • ✓ Nothing uploaded

Next step

What to do next

How to use it

  1. Pick the HTML file tab and drop your .html file, or paste your markup on the Paste code tab.
  2. If the HTML points to local images, add those image files too.
  3. Choose page size, orientation and base font size.
  4. Click Convert to PDF.
  5. The PDF downloads automatically, and the preview shows its first pages.
Try it now

What HTML to PDF is good for

HTML to PDF helps when web content needs to be sent, archived or printed: an article you saved, an email template, a report exported from an internal tool, or documentation you wrote yourself. A PDF looks the same on every device and doesn't depend on the page staying online.

Kitpebble reads the structure of your HTML and lays out headings, paragraphs, lists and tables into proper pages. Text stays real text, so it's selectable and searchable, and the whole conversion runs in your browser.

Why there's no URL box

Plenty of people want to paste a link. A browser-based tool can't do that: browser security rules (CORS) stop one site from downloading and reading another site's pages. Services that offer it fetch the page on their own servers, and we don't send anything to a server.

The workaround takes ten seconds:

  1. Open the page in your browser.
  2. Save it with Ctrl+S (Cmd+S on a Mac) as "Web page, HTML only".
  3. Upload the saved file here.

Or view the page source (Ctrl+U), copy it and paste it on the Paste code tab. If you want a page exactly as it looks on screen, your browser's Print → Save as PDF is also a good option.

What carries over

  • Structure: headings h1–h6, paragraphs, line breaks, blockquotes, code blocks, horizontal rules, definition lists.
  • Lists: numbered and bulleted, nested, with start and type (a, i, A).
  • Tables: header rows, colspan and rowspan, background colors, alignment. Header rows repeat on every page a table runs onto.
  • Formatting from inline styles and simple <style> rules (element, class, ID): bold, italic, underline, colors, sizes, alignment, indents.
  • Images: embedded data: images, image files you add (matched by file name), and, if you allow it, images fetched straight from the web.
  • Links: web links are clickable; on-page anchors like #section jump to the right page.
  • Page breaks from page-break-before and break-before.

Page size can be Letter, A4 or A5, portrait or landscape, with optional page numbers.

Limits worth knowing

This is a document converter, not a full browser engine:

  • JavaScript doesn't run. Content that a script loads won't be in the saved HTML; use Print → Save as PDF for those pages.
  • Complex layouts (multi-column, flexbox, grid, floats) become a simple top-to-bottom flow. Single-column, borderless layout tables are unwrapped.
  • Complex CSS selectors such as div > p:first-child are ignored.
  • Fonts: the PDF uses DejaVu Sans; web fonts don't carry over.
  • Web images download only if their server allows it. If one fails, save it and add it next to the HTML.
  • Video, audio, form fields and inline SVG are left out, and you'll get a note saying so.

For example, a 300-row inventory table exported from an internal tool comes out as landscape Letter pages with a repeating header row and page numbers in a few seconds.

Frequently asked questions

Can I convert a web page by its URL?

No. Browser security rules (CORS) block reading another site's pages. Save the page with Ctrl+S as HTML and upload it, or paste its source code.

Is my HTML uploaded anywhere?

No. The conversion runs in your browser. The only network requests are for web images, if you allow it, and your browser fetches those straight from their own servers.

Why is an image missing?

It either points to a local file you didn't add, or its server blocks downloads. Add the image file next to the HTML with the same file name.

Will the PDF look exactly like the web page?

Content and basic formatting carry over, but multi-column, flexbox and grid layouts become a simple flow, and the font is DejaVu Sans.

Do links stay clickable?

Yes, both web links and on-page anchors work in the PDF.

Last updated: November 13, 2026

Recommended

Similar tools

If HTML to PDF helped, you may need these too.

See all in category →

People also use