# HTML to PDF

> Convert pasted HTML or uploaded HTML files into PDFs locally with page size, orientation, margin, and print-background controls plus clear CSS and media limitations.

Canonical: https://helpers.aibrush.co/en/html-to-pdf

## Pasted or uploaded HTML

The converter accepts HTML text or .html files, extracts readable structure locally, and writes a text-first PDF without fetching external URLs.

## Transparent CSS limits

Complex layout, external stylesheets, custom fonts, scripts, forms, and media are not fully rendered. The preview shows warnings instead of claiming browser-print fidelity.

## How to convert HTML to PDF

1. **Add HTML** — Paste HTML or upload an .html or .htm file.
2. **Preview** — Review readable blocks and limitations.
3. **Configure** — Choose page size, orientation, margins, and background handling.
4. **Download** — Create and save the PDF locally.

## HTML to PDF FAQ

### Does this fetch a URL?

No. URL-to-PDF would require fetching the page, so this local tool only accepts pasted HTML or uploaded HTML files.

### Will CSS match browser print exactly?

No. This converter is text-first and shows CSS, media, font, and layout limitations in the preview.

### Does my HTML upload to a server?

No. HTML parsing and PDF creation run locally in your browser worker.
