How to Convert HTML to PDF on iPhone: Files App, Safari and No-App Methods That Work
How to convert HTML to PDF on iPhone with the Files app, Mail or Safari, pick Letter or A4, fix blank previews and keep receipts off upload sites.

On this page
- Where HTML files come from on an iPhone
- Method 1: Our free browser converter in Safari
- Method 2: Files app, Share, Print
- Method 3: Mail attachment to PDF
- Method 4: A Shortcuts automation
- Method 5: Safari for live web pages
- How to convert HTML to PDF on iPhone: methods compared
- Page sizes that print cleanly
- Why privacy matters on a phone
- Troubleshooting
- A worked example from our team
- Frequently asked questions
- Conclusion: key takeaways
- Editorial policy
- Content transparency
- About the author
To turn an HTML file into a PDF on an iPhone, open the file in the Files app, tap Share, choose Print, then save the print preview as a PDF to Files. If the preview is blank or broken, open our free HTML to PDF converter in Safari, pick the file, and download the PDF straight to your phone with no upload. This guide covers how to convert HTML to PDF on iPhone for saved pages, email attachments and exported reports, plus the fixes for blank previews and missing images.
Quick answer: You do not need an app.
- In Files, tap the .html file to preview it, then tap Share and choose Print.
- Save the preview as a PDF to Files (on most iOS versions, pinch out on the page thumbnail, then tap Share and Save to Files).
- For more control, open the no-upload HTML converter in Safari, choose Letter or A4, and download the PDF.
- For a live web page, use Safari’s Share menu with the PDF option instead.
Where HTML files come from on an iPhone
Most people meet HTML files on a phone in three ways: an email attachment such as a receipt or newsletter, a report exported from a web app, or a page saved from a desktop and synced through iCloud Drive. All three are local files, which is different from a page open in Safari.
That difference matters. Safari’s built-in PDF tools work on web pages you are browsing. A file sitting in Files needs either the Quick Look preview, a shortcut, or a browser tool that reads it.
Method 1: Our free browser converter in Safari
This route gives you page size, margins and a clean result, and the file never leaves your iPhone.
- Open LeadCanal’s HTML to PDF page in Safari or Chrome.
- Tap the upload area and choose Browse to pick the .html, .htm or .xhtml file from Files. You can select several at once.
- Choose A4, Letter or Legal, the orientation, margins and layout width.
- Leave remote images off unless the page needs pictures from the web.
- Tap to download the exact image PDF. It lands in the Downloads folder in Files.
The tool checks each file’s extension and first bytes, removes scripts, forms, frames and external stylesheets, and draws the page in a locked frame that cannot reach other sites. There is no signup, no watermark and no daily cap.
Method 2: Files app, Share, Print
- Open the Files app and find the HTML file.
- Tap it to open the preview. Simple pages and most email receipts display here.
- Tap the Share button and choose Print.
- In the print options, pinch outward on the page thumbnail with two fingers to open a full PDF preview. On some iOS versions a Share button appears at the top of the print options instead.
- Tap Share, then Save to Files, choose a folder and tap Save.
If Print does not appear in the Share sheet, scroll the list of actions to the bottom. Apple’s iPhone User Guide covers the Files app and printing options for your iOS version.
Method 3: Mail attachment to PDF
- Open the email and tap the HTML attachment to preview it.
- Tap Share, then Print.
- Pinch out on the preview, tap Share, then Save to Files.
If the attachment is actually an .eml message rather than .html, the EML to PDF converter is the better fit, because it keeps the sender, date and subject lines.
Method 4: A Shortcuts automation
The Shortcuts app includes a Make PDF action. A three-step shortcut turns any shared file into a PDF:
- Open Shortcuts, tap the plus button and add the Make PDF action.
- Add Save File after it so the PDF goes to Files.
- In the shortcut details, turn on Show in Share Sheet and set it to accept files.
From then on, share an HTML file and pick your shortcut. Results depend on how well iOS renders the page, so complex layouts still look better through Method 1.
Method 5: Safari for live web pages
If the page is online rather than saved, open it in Safari, tap Share, tap Options under the page title, choose PDF, then Save to Files. This saves the whole page as one PDF. Chrome on iPhone can print pages too, as described in Google Chrome Help. For desktop browsers, our guide on how to convert HTML to PDF on Mac covers Safari and Chrome in detail.
How to convert HTML to PDF on iPhone: methods compared
| Method | Cost | Upload needed | Page size choice | Best for |
|---|---|---|---|---|
| LeadCanal converter | Free | No | A4, Letter, Legal | Private files, several files, set margins |
| Files, Share, Print | Free | No | Limited | Simple pages and receipts |
| Mail attachment print | Free | No | Limited | HTML attachments |
| Shortcuts Make PDF | Free | No | None | Repeat conversions |
| Safari Options, PDF | Free | No | None | Live web pages |
| App Store converter apps | Free or paid | Often | Varies | Heavy daily use |
Page sizes that print cleanly
| Paper | Inches | Millimetres | Pick it when |
|---|---|---|---|
| Letter | 8.5 x 11 | 216 x 279 | The PDF is for US or Canadian readers |
| A4 | 8.27 x 11.69 | 210 x 297 | The PDF goes almost anywhere else |
| Legal | 8.5 x 14 | 216 x 356 | Long forms and contracts |
Why privacy matters on a phone
The HTML files on a phone are often receipts, booking confirmations and account statements. They carry names, addresses and order numbers, and many contain tracking images that report when they are opened. Uploading them to an app’s server means trusting that service with all of it.
Anyone weighing how to convert HTML to PDF on iPhone for these files should pick an offline route. The in-browser converter runs on the phone itself, so the file is never uploaded to LeadCanal or anyone else, and remote images stay off by default.
Troubleshooting
The preview in Files is blank or shows code
Files sometimes shows HTML as raw text. Use the browser converter, which renders the markup properly.
Images are missing in the PDF
Pictures hosted online only appear when remote images are switched on. Images stored in a separate “saved page” folder cannot be read by the browser and appear as their alt text.
The page is cut off at the side
Choose landscape or a narrower layout width in the HTML file converter.
I need to copy text from the PDF
The exact image PDF keeps the look but not selectable text. Use the print route in Method 2 when you need to search or copy words.
The PDF is too large to send
Run it through the PDF compressor, which also works in Safari with no upload.
A worked example from our team
We handle client files daily, often from a phone between calls. One client forwarded an HTML invoice export from their billing system and needed it as a PDF for their accountant within the hour.
The Files preview showed the invoice, but the print preview split the line-item table over three pages. We opened the converter in Safari, picked the file from the Mail downloads folder, chose Letter, portrait and narrow margins, and left remote images off. The invoice fit on one page, the PDF saved to Downloads, and we attached it to the reply. The whole job took about two minutes, and that is how to convert HTML to PDF on iPhone when the built-in preview falls short.
Frequently asked questions
Can an iPhone convert HTML to PDF without an app?
Yes. Use Files, Share, Print and save the preview as a PDF, or use a browser-based converter in Safari.
How do I save an HTML file as a PDF on iPad?
The same steps work on iPad. The browser converter is often easier there because of the larger screen.
Where does the PDF go after I save it?
Saved PDFs go to the folder you choose in Files. Downloads from Safari go to the Downloads folder by default.
Why does my HTML file open as code on iPhone?
Some previews show the source instead of the page. A browser tool renders it properly before turning it into a PDF.
Can I convert several HTML files at once on iPhone?
Yes. Select several files in the LeadCanal tool and download them one by one or as a ZIP.
Is it safe to use online HTML to PDF converters on a phone?
Upload sites receive your whole file. For receipts, statements and private emails, use a tool that works inside the browser.
How do I turn a PDF of a web page into one long page?
In Safari, tap Share, then Options, choose PDF and save. Safari keeps the full page in one file.
Conclusion: key takeaways
Learning how to convert HTML to PDF on iPhone takes one of two routes: the built-in print preview for simple pages, and a browser converter for anything with tables, set margins or private details.
- Files, Share, Print, then pinch out saves most simple pages as PDFs.
- Safari’s Options menu handles live web pages, not saved files.
- A Shortcuts Make PDF action speeds up repeat jobs.
- The browser converter adds page size and margins without uploading.
- Keep remote images off to stop tracking images firing.
For more ways to make PDFs on a phone, see how to convert a picture to PDF on iPhone without an app, or browse all free LeadCanal tools.
Editorial policy
We write about file tasks our team does every day and test each method on a current iPhone before publishing. Menus change between iOS versions, so we note where steps may differ.
Content transparency
This guide was researched with keyword data and checked against official documentation from Apple. LeadCanal offers the free tools mentioned in this article.
About the author
The LeadCanal team builds lead lists, cleans CSV and VCF data and handles client files daily. We built our free converters so this work never needs an upload.