HTML to PDF
Turn pasted HTML or an .html file into a multi-page A4 PDF in your browser. No upload, no account, no watermark.
Paste your HTML
0 characters • 0 B • Limit 2 MB
Pages are pictures of your HTML, so text in the PDF isn't selectable or searchable. Scripts, frames, forms, event handlers, and unsafe links are removed, and pictures hosted elsewhere are dropped, so nothing runs and no outside file is fetched. Inline styles and embedded pictures work best. Web fonts usually fall back to system fonts. Documents up to about 14 pages render in one go.
How to use HTML to PDF
Paste or upload your HTML
Type or paste your markup, or upload an .html file up to 2 MB. A full document works, and so does a bare fragment.
Check how it will look
Your HTML renders at A4 width, 794 pixels across, using fonts on your device. Inline styles carry over, so the PDF matches what you see.
Download the PDF
Click convert and a multi-page PDF downloads at once, sliced into A4 pages. Up to about 14 pages render in one go.
How HTML to PDF works
You paste HTML, the tool draws it in a hidden box sized to A4 width, 794 pixels across, then slices that drawing into A4 pages for a PDF. The drawing uses html2canvas at scale 1, so the PDF shows your page as a browser lays it out, inline styles, colours and tables intact. Nothing is sent anywhere: the HTML, the render and the finished PDF all stay on your device.
That picture-based approach has real limits. Each page is a PNG image, so the text cannot be selected or searched, and a long document tops out at about 14 pages, since browsers cap one canvas at 16,384 pixels tall. Scripts never run, linked stylesheets are dropped, web fonts fall back to Arial, and outside images usually render blank unless their host allows cross-origin reads. Embedding images in the HTML sidesteps that last one.
It fits everyday jobs. A freelancer can turn a plain HTML invoice into a PDF for a client, a teacher can save a worksheet or revision notes, and a job seeker can convert an HTML resume into an A4 file for a portal. Keep it under 2 MB and split anything past 14 pages at a heading.
Why use this tool?
- Turns web pages, invoices, receipts and notes into PDFs fast.
- Inline styles and colours carry over to the finished PDF.
- Nothing is uploaded. The render runs on your own device.
- Free to use, no account, no watermark on the output.
- Splits long documents into clean A4 pages.
Good to know
- Each PDF page is a picture of your rendered HTML, so text in the PDF cannot be selected, copied or searched.
- Pictures on other sites usually come out blank unless that site allows cross-origin reads. Embed images in the HTML and they always show up.
- Scripts and linked stylesheets are stripped before rendering, and web fonts fall back to Arial.
- HTML over 2 MB is refused, and documents past about 14 pages need splitting at a heading first.
Good for
- Send an HTML invoice to a client as a tidy A4 PDF.
- Save a web worksheet or a set of class notes for offline reading.
- Turn a simple HTML resume into a PDF for a job portal that asks for one.
- Archive a receipt or order confirmation before it changes.
Frequently asked questions
Is the text in the PDF selectable?
No. Each page is a picture of your rendered HTML, so text cannot be selected, copied or searched. For searchable text, print the page to PDF from your browser.
Why did my images come out blank?
Pictures hosted elsewhere are removed before rendering, so they never appear in the PDF. Embed a picture as a data URI and it always renders.
Do web fonts work?
Usually not. Only fonts on your device show up, so a web font like Roboto falls back to Arial. Stick to common fonts.
What happens to scripts and linked stylesheets?
Scripts, frames, forms, and event handlers are removed, and pictures hosted elsewhere are dropped, so nothing runs and no outside file is fetched. Your HTML renders in a sandboxed frame that cannot run scripts. Inline style blocks are kept, wherever they sit in your HTML, with any outside file they reference cut out.
How long can my document be?
HTML up to 2 MB is fine, and documents up to about 14 pages render in one go. Past that, split the document at a heading.
Related tools
Related guides
Files are processed in your browser. Nothing is uploaded to any server.