🖨️

HTML to PDF Converter

Render a public web page or raw HTML as PDF, PNG or JPG. Choose the page size, zoom, margins and other settings.

How to Use

1

Provide Content

Enter a public URL or paste raw HTML content that you want to render.

2

Choose Output Format

Select PDF for documents, PNG for lossless screenshots, or JPG for compressed images.

3

Customize and Render

Adjust page size, margins, zoom, and other options, then click Render to generate your output.

What the Result Means

Example: the result for https://example.com/ saved as an A4 PDF.

Content
https://example.com/
The address or HTML you entered, shortened here after 80 characters.
Output Format
PDF
PDF for a document with pages, PNG for a lossless image, JPG for a smaller image.
Document Title
Example
The document title you entered, shown only when you set one.
Page Size
A4
The paper size of a PDF: A3, A4, A5, Letter, Legal or Ledger. The default is A4.
Image Width
—
The width of the browser window used to draw the page, 50–4,000 pixels; the default is 1,024. It sets the width of a PNG or JPG and is shown only for those two formats.
Image Height
—
The height of a PNG or JPG, shown only when you set one (50–4,000 pixels).
Margin (mm)
10 mm
The empty border around the content, in millimeters. The default is 0.
Zoom Level
1×
How large the content is drawn, from 0.1 to 5; 1 is the original size.
Landscape Orientation
—
Turns the page sideways; shown with a check mark only when you select it.
Grayscale Output
—
Renders the result in shades of gray; shown with a check mark only when you select it.
Background Color
#ffffff
The color behind the content, shown only when you set one: transparent or a hex color such as #ffffff.

Rows marked — appear on the result screen only when you use that option. The file is not saved to your query history, so download it before you leave the page.

How HTML to PDF Converter Works

HTML to PDF Converter loads the address you enter, or the HTML you paste, in a browser engine and saves what it shows as a PDF document or as a PNG or JPG image. The content can be up to 100,000 characters.

The page must be public: pages behind a login, or content that appears only after a click, cannot be captured. For pages that load content with scripts, a render delay of up to 30 seconds gives them time before the capture.

Custom CSS lets you hide elements such as cookie banners or change fonts before the capture. Some sites block automated browsers; in that case the result can show an error page or a blank page.

Key Features

📄

PDF Generation

Convert web pages and HTML content to high-quality PDF documents with customizable page sizes.

🖼️

Screenshot Capture

Capture screenshots of web pages in PNG or JPG format.

🎨

Custom Styling

Inject custom CSS to modify the appearance of rendered content before conversion.

⚙️

Flexible Options

Control page size, margins, zoom level, orientation, and more for precise output.

HTML to PDF Converter Use Cases

🧾

Invoices & Reports

Turn an HTML invoice or report template into a PDF you can send or archive.

🗂️

Page Archives

Keep a copy of a page as it looks today, such as terms or a price list.

🖼️

Screenshots

Capture a page as a PNG or JPG for documentation, reviews or social posts.

🎨

Designers & Developers

Check how a page prints, or how it looks at a given width, before you publish it.

Related Tools

Tools you can use alongside HTML to PDF Converter.

HTTP Status Checker

Data

See a URL's HTTP status, server, redirects and page metadata.

Web Page Extractor

Developer

Open a page in a real headless browser to extract text, inspect HTTP headers and select elements with CSS selectors.

HTML Sanitizer

Developer

Turn untrusted HTML from a URL or pasted code into plain text or restricted HTML with one of five levels.

Frequently Asked Questions

You can enter a public URL to render a live web page, or paste raw HTML content directly.
Three formats: PDF (paginated documents), PNG (lossless screenshots), and JPG (compressed screenshots).
A3, A4, A5, Letter, Legal, and Ledger page sizes are available for PDF output.
The render delay waits a specified number of seconds before capturing the page, allowing time for dynamic content to load.
Yes, you can provide custom CSS in the advanced options to modify the appearance of the rendered page.