HTML to PDF
Runs in browserConvert HTML files or code to professional PDFs.
Drop your file here, or click to browse
Or upload an .html file
- 1
Your HTML is loaded in an isolated frame
Pasted HTML or an uploaded .html file is placed in a hidden frame on this page. CSS in the HTML applies. Images from other websites only appear if those sites allow cross-origin loading. Your file never leaves this tab, and nothing is sent to a server.
- 2
Laid out like a printed page
The content is placed in a hidden, isolated page that is exactly A4 wide (210 mm) with clean document styles: readable type, table borders, and images scaled to fit.
- 3
Split into pages without cutting lines
Page breaks are placed in the gaps between lines of text, so no line, image, or short table row is sliced in half. Explicit page breaks in the source are kept.
- 4
Painted into the PDF
Each page is drawn to a high-resolution image (2×) and placed on an A4 page with top and bottom margins. The text in the result is part of the image, so it can't be selected or searched.
More in PDF Tools
See all 25Images to PDF
Convert JPG, PNG images to PDF. Batch convert multiple images.
Invert PDF Colors
Invert page colors for dark-mode reading — processed locally in your browser.
Markdown to PDF
Convert Markdown documents to beautifully formatted PDFs.
Merge PDF
Combine multiple PDFs into one file — order preserved, processed locally.