# Convert HTML to PDF

> Free online html to pdf. Convert HTML content or web pages to PDF documents with styling preserved.

Live tool: https://lofttools.com/tools/pdf-tools/html-to-pdf

Category: PDF & Documents

## How it works

1. **Enter HTML** — Paste your HTML code or open an HTML file
2. **Preview** — Preview the rendered output before conversion
3. **Download** — Download your PDF file instantly

## FAQ

### Are CSS styles preserved?

Yes. Inline and embedded CSS styles are rendered in the output PDF.

### Does this preserve bookmarks and form fields?

The output is a new PDF generated from your HTML. Bookmarks come from H1–H3 headings; there are no form fields unless your HTML included them.

### What PDF versions are supported?

The output is generated as PDF 1.7. There is no input PDF version to consider.

## Privacy

This tool runs entirely in the browser. Files are not uploaded to a server. They never leave the user's device.

## More

- All tools: https://lofttools.com/tools
- Category: https://lofttools.com/tools/pdf-tools
- LLM index: https://lofttools.com/llms.txt
