How to Add an HTML Signature in Gmail, Step by Step
Learn how to add an HTML signature in Gmail: copy the rendered design, paste it into Settings, fix broken images and fonts, and check it on mobile.
5 min read

On this page
You can add an HTML signature in Gmail, but not by pasting code: Gmail's signature box has no "source" or "HTML" mode. The method that works is to open your signature as a rendered web page, copy it, and paste it into Settings. This is how to add an HTML signature in Gmail on desktop, what usually breaks, and how to fix it.
Can you paste HTML code into a Gmail signature?
No. If you paste raw tags like <table> into the signature field, Gmail shows them as plain text. The signature editor only accepts formatted content, not code.
So the workflow is: render the HTML first, then copy what you see. Gmail keeps most formatting (fonts, colours, links, tables, images) but may drop some styling it does not support.
How to add an HTML signature in Gmail (step by step)
1. Open your signature as a rendered page
Save your signature code as a file ending in .html and open it in Chrome, Edge or Firefox. You should see the finished signature, not code. If you use an online tool or a signature editor, use its preview or copy button instead. Our free email signature editor can do this.
2. Copy the rendered signature
Click inside the page, press Ctrl+A (Cmd+A on Mac) to select everything, then Ctrl+C (Cmd+C). Check that only the signature is selected, with no extra page content.
3. Paste it into Gmail settings
- In Gmail on desktop, click the gear icon, then See all settings.
- On the General tab, scroll to Signature.
- Click Create new, name it, and click Create.
- Click into the signature box and paste with Ctrl+V (Cmd+V).
- Under Signature defaults, choose which signature is used for new emails and for replies and forwards.
- Scroll to the bottom and click Save Changes.
Open a new message and check the result before you send anything real. Send a test to yourself and to a second address in another mail app.
4. Check it in Gmail on your phone
The Gmail mobile app has its own signature setting, which is plain text only. A signature set on desktop does not carry over to the app in the form you designed. If you reply from your phone, your HTML signature may not appear. Recipients still see it when you send from the desktop.
Why does my Gmail signature look different after pasting?
These are the problems I see most often when setting up signatures for clients:
- Fonts change. Gmail's editor may replace a custom font with a web-safe one. Use Arial, Verdana, Georgia or similar, and set a fallback.
- Spacing collapses. Complex layouts built from CSS margins and padding are fragile. Signatures that use a simple table layout with inline styles survive pasting better.
- Images show a red cross or a download prompt. The image must be hosted at a public HTTPS address. A file stored only on your computer works for you and for nobody else.
- Links lose their colour. Set the colour on the link itself with an inline style, for example
style="color:#0b5fff;text-decoration:none;".
Here is the kind of minimal structure that pastes reliably:
<table cellpadding="0" cellspacing="0" border="0" style="font-family:Arial,Helvetica,sans-serif;font-size:14px;color:#222222;">
<tr>
<td style="padding-right:16px;">
<img src="https://example.com/logo.png" width="80" height="80" alt="Company logo" style="display:block;border:0;">
</td>
<td>
<strong style="font-size:16px;">Jane Doe</strong><br>
Marketing Manager, Example Co.<br>
<a href="mailto:jane@example.com" style="color:#0b5fff;text-decoration:none;">jane@example.com</a>
</td>
</tr>
</table>Replace the example address with your own hosted image. Always set width, height and alt so the layout holds even if images are blocked.
How do I add an image or logo to a Gmail signature?
You have two options:
- Paste it as part of the rendered signature (as above). Gmail keeps the image's link to its hosted address.
- Use the image button in the signature editor, which lets you upload a file or enter a web address. A web address is the safer choice for a signature, since you control where it is hosted and can swap it later.
Keep the image small in file size and dimensions. A logo around 200 pixels wide is plenty, and it loads quickly on mobile. Avoid putting your phone number or other important text inside an image, because many people have images off by default.
Does an HTML signature work in dark mode?
It can, but it needs care. A dark logo on a transparent background may disappear when a client darkens the page. If your logo looks fine on white only, test it in dark mode, and consider a version with a light outline or a solid background. I cover the logo problem in more depth in a separate article on Gmail dark mode.
Should I use a custom-built signature or a generator?
A free generator is fine for one person with a simple layout. A custom signature makes more sense when you need exact brand colours, a clean layout that holds across Outlook, Gmail and Apple Mail, or matching versions for a whole team. If that is you, my HTML email signature service starts from $50 per signature.
FAQ
How do I add an HTML signature in Gmail on iPhone or Android?
The Gmail app only supports a plain-text signature in its settings. Rich HTML signatures are set up on desktop. Some people use the plain-text version on mobile and the full design on desktop.
Why is my Gmail signature image not showing?
Most often, the image is not hosted at a public HTTPS address, so recipients cannot load it. It can also be hidden if the recipient's mail app blocks images by default. Use a publicly hosted image, set alt text, and keep important details as real text.
Can I have more than one signature in Gmail?
Yes. You can create several signatures in Settings and choose a default for new emails and another for replies. When writing a message, you can switch signatures using the pen icon in the compose window.
Is there a size limit on a Gmail signature?
Yes, Gmail limits how long a signature can be. If your signature is rejected or cut off, simplify the markup, remove unused styles and reduce the number of nested tables.
Key takeaways
- Gmail does not accept raw HTML in the signature box, so render the signature in a browser and paste what you see.
- Use public HTTPS image URLs, inline styles and simple table layouts so the signature survives pasting.
- The Gmail mobile app uses a separate plain-text signature, so test on both desktop and phone.
- Always send a test email to yourself and to another mail app before using the signature for real.
Tags
- Email Signatures
- HTML Email
- Tutorials

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

