How do I convert an HTML file to PDF?
To convert HTML to PDF, upload your .html or .htm file to FixDoks's HTML to PDF tool and click Convert to PDF. Headings, tables, basic CSS and images embedded in the file convert to a paged A4 PDF, but external images and scripts are not fetched. Your file is uploaded over HTTPS and deleted after conversion.
HTML to PDF at a glance
| Input | HTML, HTM |
|---|---|
| Output | |
| Processing | On our server over HTTPS; files are deleted right after conversion |
| Max file size | 50 MB per file |
| Price | Free, no watermark |
| Download | Free Google sign-in |
| Works on | Chrome, Edge, Safari and Firefox on Windows, Mac, Android and iPhone |
How to use HTML to PDF Converter
- Click Select HTML files and choose a .html or .htm file from your device.
- Click Convert to PDF.
- Download the PDF.
Turn HTML files into PDFs
Many tools produce HTML files: email clients when you save a message, reporting and accounting software, test and coverage reports, website builders, Markdown editors, and browsers when you save a page. HTML is fine in a browser, but for sending, printing or archiving, a PDF is easier. Upload the HTML file and FixDoks converts it into a paged A4 PDF with real, selectable text.
What converts
- Headings, paragraphs, bold, italics, lists and quotes
- Tables with borders and background colours
- Basic CSS such as colours, fonts, alignment and spacing
- Images embedded inside the file as data URIs
- Links, which stay clickable in the PDF
What is removed, and why
For your safety and ours, the converter works only with the file you upload. It does not fetch anything from the internet: external images, style sheets, fonts, scripts, iframes and embedded media referenced by URL are stripped before conversion. JavaScript does not run. This means pages that depend on scripts to show their content (many modern web apps) will come out empty or incomplete.
Want to save a live web page?
Your browser already does this best, because it can run the page's scripts and load its images. In Chrome, Edge or Firefox press Ctrl+P (Cmd+P on Mac) and choose Save as PDF. On Android use Share > Print > Save as PDF, and on iPhone use Share > Print, then pinch out on the preview and share the PDF.
Tips for the best result
- When saving a page from your browser for conversion here, choose Web Page, Single File (MHTML) or make sure images are embedded; separate image folders are not uploaded with the HTML file.
- Simple, document-style HTML (reports, emails, articles, exported notes) converts best.
- For Markdown notes, convert them with Markdown to HTML first, save the result as an .html file, then convert it here.
Saved emails and reports
Email apps like Thunderbird and Outlook can save a message as an HTML file, and many business tools email reports as HTML attachments. Converting them to PDF gives you a fixed copy that is easy to print, archive or attach to a complaint or claim. Inline pictures embedded in the message are kept; pictures that the email loaded from the web are not fetched.
If your HTML file uses a custom web font, the closest installed font is used instead, and text stays selectable and searchable in the PDF.
Your HTML file is deleted from our server right after the PDF is created.