Advertisements

headerup to 320x100 / 728x90

HTML to PDF

Render pasted HTML or a remote URL into a downloadable PDF

HTML to PDF

Document Workbench

Render pasted HTML or a remote URL into a downloadable PDF with print settings.

Setup
Use the steps below to prepare the document workflow.

How to use

  1. 1. Choose HTML mode to paste markup directly, or URL mode to render a live page.
  2. 2. Adjust paper size, margins, orientation, and print-background settings.
  3. 3. Generate the PDF, preview it, then download the output.

Paper size

Margin (mm)

Output
Generated PDF preview appears here.

No PDF output yet.

Configure the workflow on the left, run the action, and this panel will switch to preview and download mode.

Advertisements

content bottomup to 300x250

What is HTML to PDF

Last reviewed:

HTML (HyperText Markup Language) is the core markup language for web pages, defining structure and content that browsers render.

HTML to PDF Converter takes HTML source code or a public URL and renders the page with a headless Chromium engine to produce a PDF that matches the on-screen layout, including Google Fonts, images, SVGs, CSS grid, and flexbox.

Unlike print-to-PDF from the browser, this tool preserves link anchors, custom page size, margins, and the @page CSS rules so that quotes, invoices, reports, and landing-page exports come out looking the same on every device.

Why use it

  • Generate consistent, production-grade PDFs from a landing page or email template without spinning up a Puppeteer server.
  • Convert one-off HTML snippets (tables, receipts, dashboards) into a PDF your finance or legal team can sign.
  • Validate that a responsive page prints cleanly before you ship a Print CSS tweak to production.

Features

  • Renders HTML with full CSS3 support (flexbox, grid, custom fonts, SVG, media queries)
  • Page size: Letter, Legal, A3, A4, A5 + custom dimensions in mm, in, or px
  • Page margins, header/footer templates, and page numbers via CSS @page rules
  • Respects print-specific styles (@media print) so dashboards and articles render correctly
  • Outputs a multi-page, text-searchable PDF — links remain clickable in the exported file

How to use HTML to PDF

  1. Paste HTML or URL. Drop raw HTML markup into the editor, or paste a public URL — the tool fetches the page and inlines the CSS and assets.
  2. Choose page options. Pick Letter/A4 or a custom size, set margins, and optionally enable a header/footer template.
  3. Toggle background graphics. Enable 'Print background' if your CSS uses body backgrounds you want rendered into the PDF.
  4. Render and download. Click Convert. The tool renders the page with a headless browser and streams back a single PDF file.

Example (before/after)

HTML input

Paste your HTML input so it can be converted into PDF for your next step.

PDF output

Get PDF output converted from HTML that is ready to review, copy, or export into the next step of your workflow.

Common errors

Source format does not match the tool

Conversions fail when the pasted input is not actually in the expected source format.

Fix: Verify the source format first, then paste it into the correct converter.

Partial or inconsistent data

Broken rows, missing fields, or incomplete markup can block conversion.

Fix: Use a complete input sample with the structure intact before converting it.

Unexpected output assumptions

Different target formats can flatten, restructure, or serialize values differently.

Fix: Review the converted output and confirm it matches the target system before using it downstream.

FAQ

Does the HTML to PDF converter support custom web fonts?

Yes. Fonts loaded via @font-face or Google Fonts URLs are embedded into the PDF, so the rendered typography matches the screen. If a font fails to load, the tool falls back to the closest system font and notes the substitution in the output log.

Can I convert a password-protected or authenticated URL?

No — the renderer is a stateless headless browser that can only fetch public URLs. For pages behind a login, paste the HTML source directly (open the page, 'View Source', copy into the editor) or use our HTML to PDF API from inside your authenticated app.

Does the converter keep links and anchors clickable in the PDF?

Yes. <a href> elements become clickable hyperlinks in the PDF, and in-page anchors (#section) are preserved for internal navigation. Tables of contents built with <a href='#heading'> links work out of the box.

How large an HTML document can this tool render?

The renderer comfortably handles pages up to about 50 MB of HTML + inlined assets. Very large documents (100+ pages, many images) are split into chunked rendering to avoid browser memory caps — a progress indicator shows page-by-page status.

Will my HTML or credentials be stored on the server?

No. The headless browser renders the page in a disposable sandbox that's destroyed after every request. The HTML, the fetched assets, and the resulting PDF are held in memory only long enough to return the response, then deleted immediately.

Can I pick a specific page size for the PDF output?

Yes. Choose Letter, Legal, Tabloid, A3, A4, A5, or a custom size expressed in millimetres, inches, or pixels. The UI also exposes margin controls so the printed area leaves room for binding or letterhead.