HTML to PDF

Turn a chunk of HTML into a PDF — paste your markup or upload an .html file, choose the page size, and download. Everything renders in your browser.

Paste HTML (or upload an .html file) and download it as a PDF — rendered entirely in your browser.

Best-effort raster rendering. External images, fonts and stylesheets aren’t fetched (nothing leaves your browser), scripts are ignored, and the text in the PDF isn’t selectable.

How to Convert HTML to PDF

Three steps, all in your browser.

1

Add your HTML

Paste HTML into the box, or upload an .html file to load its contents.

2

Choose the page

Pick A4 or Letter and portrait or landscape.

3

Create and download

Click Create PDF to render the HTML and download a multi-page PDF.

Converting a different source? Word to PDF handles .docx, Excel to PDF handles spreadsheets, TXT to PDF handles plain text, and Image to PDF turns pictures into pages.

What this converter does and does not do

The HTML is rendered to a picture of the page and that picture is placed in the PDF. That single fact explains every limitation below.

HTML to PDF behaviour
AspectBehaviour
InputHTML pasted into the box, or an uploaded .html file
Fetching a live URLNot supported — nothing is requested from the network
External images and stylesheetsNot fetched; only what is in the markup is drawn
Output textA raster snapshot, so the text is not selectable
JavaScript in the sourceNot executed
Best suited toSelf-contained markup with inline styles

Frequently Asked Questions

How do I convert HTML to a PDF?
Paste your HTML into the box (or upload an .html file), choose A4 or Letter and an orientation, then click Create PDF. The markup is rendered in your browser and downloaded as a PDF. The capture is a raster snapshot, so text in the PDF is a picture rather than selectable characters.
Why doesn’t my PDF look exactly like the web page?
This tool takes a raster snapshot of the rendered HTML, so it captures layout and styling but the PDF text isn’t selectable. External images, fonts and stylesheets aren’t fetched because nothing leaves your browser, and scripts are ignored. For best results, inline your CSS.
Can it make multiple pages?
Yes — tall content spills onto multiple pages. It is split across as many pages as needed at the size and orientation you choose. Page size is A4 or Letter, in portrait or landscape.
Is my HTML uploaded anywhere?
No — your HTML stays on your device. Rendering happens entirely in your browser with html2canvas and jsPDF. Nothing is uploaded — closing the tab clears everything.

Last updated: