How to Add an HTML Signature in Apple Mail (Mac & iPhone)
How to add an HTML signature in Apple Mail on Mac, iPhone and iPad: copy it from Safari, paste it into Signatures, and keep its fonts and images intact.
6 min read

On this page
To add an HTML signature in Apple Mail on a Mac, open the signature's HTML file in Safari, select all and copy it, then go to Mail > Settings > Signatures, add a new signature and paste it into the preview. Untick "Always match my default message font" so Mail keeps the signature's own fonts. On iPhone and iPad, paste the copied signature into Settings > Apps > Mail > Signature. On every device, the images must be hosted online at https addresses, or they break for the people you email.
Before you start: get the HTML file ready
Apple Mail has no box for HTML code. You paste the rendered signature, the way it looks in a browser, so check the file before you copy it:
- Images linked from full https addresses, such as
https://yourcompany.com/signature/logo.png. A path likeimages/logo.pngpoints to a folder on your own computer, so the image breaks as soon as the email leaves it. - No embedded images. A logo dragged into Mail's signature editor, or stored in the code as base64 data, travels inside every message. Some recipients then see it as an attachment, or not at all.
- Email-safe code: a table layout with inline styles. A signature built from
divblocks and CSS classes can look fine in Safari and still fall apart when it reaches Outlook.
When I build HTML email signatures for clients, I recommend hosting the images on their own website, so the addresses stay under their control and don't change without warning.
How to add an HTML signature in Apple Mail on Mac
These steps are for macOS Ventura (13) and later. On macOS Monterey (12) and earlier, the menu is called Mail > Preferences instead of Mail > Settings; everything else works the same way.
1. Copy the signature from Safari
Open the HTML file in Safari (File > Open File, or drag the file onto Safari). Check that every image loads, then press Command-A to select everything and Command-C to copy it. Safari is the natural choice here, because it uses the same WebKit engine that Mail uses to display messages.
2. Create a new signature
In Mail, choose Mail > Settings, then click Signatures. Select the email account in the left column, click the Add (+) button below the middle column and type a name, such as "Work". If All Signatures is selected when you create it, you have to drag the new signature onto an account before you can use it.
3. Paste it into the preview
Click in the right-hand column, delete any placeholder text Mail has put there, and press Command-V. The signature should appear with its layout and images. Use a normal paste, not Edit > Paste and Match Style, which strips the formatting.
4. Untick "Always match my default message font"
When this checkbox is ticked, Mail uses the message font from its Fonts & Colors settings instead of the fonts in your signature. Untick it for the new signature. It's a common reason a pasted signature looks different from the file.
5. Make it the default and test it
In the Choose Signature pop-up menu for that account, pick the new signature so Mail adds it to every message. Keep Place signature above quoted text ticked if you want it directly under your reply rather than below the whole conversation. Close the window, then send a test email to a Gmail address and an Outlook address.
Why your Apple Mail signature looks wrong
- Images show as empty boxes or question marks: the file uses local image paths. Change them to https addresses and copy the signature again.
- The font changes after sending: untick "Always match my default message font", and check Mail > Settings > Composing. Message format must be Rich Text, because plain text messages drop all the signature's formatting.
- Recipients get the logo as an attachment: the image is embedded. Delete it, link it from an https address instead, and paste the signature again.
If you only need to change the name, phone number, links or images, the free signature editor lets you edit them without touching the code. Its Copy Signature button copies the result ready to paste in step 3.
How to add an HTML signature on iPhone and iPad
One honest warning first: Apple's own guide says you can only use text in iPhone Mail signatures. A formatted signature can still be pasted in, but it's a workaround rather than a supported feature, so check it again after major iOS updates.
- Send yourself an email that contains only the signature, for example from your Mac once it's set up there.
- Open that email in Mail on your iPhone, touch and hold the signature, and drag the selection handles until the whole signature is selected. Tap Copy.
- On iOS 18 and later, open Settings, tap Apps, then Mail, then Signature (below Composing). On iOS 17 and earlier, the path is Settings > Mail > Signature.
- Choose All Accounts, or Per Account to give each address its own signature. Delete the existing text, such as "Sent from my iPhone", then touch and hold in the field and tap Paste.
- If the signature turns into plain text, shake the iPhone straight away and tap Undo when it offers "Undo Change Attributes". On some iOS versions the formatting survives the paste and you can skip this step.
- Leave Settings and send yourself a test from the iPhone.
The shake trick isn't documented by Apple, and it needs Shake to Undo turned on (Settings > Accessibility > Touch). If the prompt says "Undo Paste" instead, tapping Undo removes the signature, so cancel and paste again. iPadOS uses the same paths and steps.
Do Apple Mail signatures sync between devices?
Between Macs, yes. Apple says your signatures are available on your other Macs that have iCloud Drive turned on with Mail selected in the iCloud Drive options. The iPhone and iPad keep their own signature in Settings, so set up each one separately.
FAQ
Can I paste HTML code straight into Apple Mail?
No. If you paste the code itself, Mail shows the tags as text in your signature. Open the file in Safari and paste the rendered signature instead. Some older guides edit Mail's hidden signature files directly, but Apple doesn't document that method and the folders change between macOS versions, so I don't rely on it.
Why does my Apple Mail signature look different in Outlook?
Apple Mail displays almost any HTML well, while classic Outlook for Windows uses a much stricter rendering engine. Layouts built with divs, CSS margins or background images can shift or break there. A table-based signature with inline styles, tested in Outlook before you roll it out, avoids the surprise.
Why doesn't "Undo Change Attributes" appear when I shake my iPhone?
Check that Shake to Undo is on in Settings > Accessibility > Touch, and shake right after pasting, before you tap anything else. If you still only see "Undo Paste", cancel and try copying and pasting once more. The behaviour varies between iOS versions, and on some the option doesn't appear at all.
Will recipients see the images in my signature?
Usually, as long as the images are hosted at https addresses. Some email apps and company settings hold back images until the reader allows them, so keep your name, phone number and website as real text, not inside an image.
Key takeaways
- On a Mac, copy the signature from Safari and paste it into Mail > Settings > Signatures (Mail > Preferences on macOS 12 and earlier).
- Untick "Always match my default message font" and keep Mail's message format on Rich Text.
- On iPhone and iPad, paste into Settings > Apps > Mail > Signature (Settings > Mail on iOS 17 and earlier), and shake to undo if the formatting is lost.
- Host every image at an https address; local paths and embedded images break for recipients.
Tags
- Email Signatures
- Tutorials
- HTML Email

About Keshur Gojiya
Web developer and HTML email specialist with 6+ years of experience, building websites and emails for businesses, startups and agencies.
Get to know me

