Convert an HTML file to PDF
HTML to PDF converts a saved web page file into a PDF. Many systems export receipts, reports, and statements as .html files; this tool turns them into a PDF you can archive or attach.
Your files are processed inside this browser tab and are not uploaded to Maher PDF. Please read the Privacy Policy before working with sensitive documents.
It works from the file itself, not from a web address. Styles written inside the file are applied, but stylesheets, fonts, and images that the page loads from other websites may not appear, and any scripts in the page are not run.
How to use HTML to PDF
- Tap Choose an HTML file and select the .html or .htm file.
- Tap Run.
- The PDF downloads with the same name as the HTML file.

Key features
- Converts saved pages offline.
- Applies styles included in the file.
- Produces A4 pages from long documents.
Where HTML files come from
Many systems hand you an .html file instead of a PDF: online banking statements, booking confirmations, e-invoices, exported emails, and reports from older business software. An HTML file opens fine in a browser on your computer, but it is awkward to attach, archive or print consistently. Converting it to PDF fixes the layout in place.
Worked example: archiving an e-receipt
- Save the receipt page from your browser (Save page as… → Webpage, HTML only) or download the .html attachment from the email.
- Open HTML to PDF and choose the file.
- Tap Run. The PDF keeps the text, tables and inline styles from the file.
- Open the PDF once to check that the totals and dates are all visible before you file it.
What comes across and what doesn't
The conversion works from the file alone, without contacting any website. Text, tables and styles written inside the file are kept. Images, fonts and stylesheets that the page loads from the internet may be missing, and scripts are not run, so interactive pages (charts drawn by code, expandable sections) appear as they look before any script runs.
If a page depends heavily on online images, the most reliable route is your browser's own Print → Save as PDF while the page is open online.
Supported files
Input: .html or .htm files. Output: a PDF with image-based pages.
Privacy and security
The HTML file is rendered in a hidden area of this tab and converted on your device.
Common problems
- Images or styling are missing.
- Those resources are probably loaded from another website. Save the page as a complete web page, or use your browser's Print > Save as PDF while viewing the live page.
Tips
- For a live website, your browser's own Print > Save as PDF usually gives the most accurate result.
Frequently asked questions
Can I paste a URL?
No. This tool converts an HTML file saved on your device.
Is the text in the PDF selectable?
No. The pages are captured as images, so the PDF looks exactly like the file but text can't be copied. Run it through PDF to Word if you need the text.
Can I convert an .mht or .eml file?
Not directly. Open it in your browser or email program and save it as .html first.
Why does my converted page look different from the website?
A website loads its styles, fonts and pictures from the internet and may change them with scripts. The converter only sees what is inside the saved file. Saving the page as Webpage, Complete keeps more of the look than HTML only, but online-only content can still be missing.
Guides: Create PDFs from Office files and text
This tool is part of Create PDFs from Office files and text. See also convert Word to PDF.
Compare every conversion option on the PDF converter page.
- Word to PDF: Why Pages Break Differently and How to Prevent ItStop lines jumping pages, lonely headings and blank last pages when you save Word as PDF.
- How to Convert PowerPoint (PPTX) to PDF Without Losing LayoutPPTX to PDF on any device: keeping fonts and layout, handouts with notes, and fixing missing charts or big files.
- How to Turn Notes, Messages and Text Files Into a Clean PDFFrom WhatsApp, email or notes app to a tidy PDF with headings and lists, without Word.