Convert HTML to PDF
Turn an HTML file or pasted code into a PDF in your browser. Headings, lists, tables, links and embedded pictures are kept.
How to use HTML to PDF
- 1Upload an HTML file, or paste your HTML code.
- 2Choose paper size and margins.
- 3Check the preview and click Download PDF.
Why use FileDagadu
- Runs entirely in your browser — nothing is uploaded to a server
- No account, signup, or watermark required
- Works on desktop, tablet and mobile
- Free with no daily usage limit
Frequently asked questions
Can I paste HTML instead of uploading a file?
Yes. Use the “Paste HTML code” tab, and the PDF updates as you type.
Which HTML and CSS features work?
Headings, paragraphs, lists, tables, links, bold and italic, colours, font sizes, text alignment and pictures embedded as data: images. CSS in a <style> tag is applied for these. Flexbox, grid, floats, web fonts and scripts are not supported.
Why are my pictures missing?
Pictures linked from other files or websites cannot be loaded. Embed them in the HTML as data: images, or they appear as a text label.
Is it the same as printing a web page to PDF?
No. This builds a text-based PDF from the HTML structure, which is small and searchable, but it does not draw the page exactly as a browser does.
Is my HTML uploaded to a server?
No. The conversion runs in your browser.
Guides & tips
Related tools
JPG to PDF
Convert JPG images into a single PDF.
PNG to PDF
Convert PNG images into a single PDF.
Images to PDF
Combine multiple images into one PDF file.
PDF to JPG
Turn every PDF page into a JPG image.
PDF to PNG
Turn every PDF page into a PNG image.
Compress PDF
Reduce PDF file size — keep text, or reach an exact size.
