How to Add an HTML Email Signature in Gmail and Outlook

To add an HTML email signature in Gmail, open Settings, choose See all settings, and go to the Signature section under General. Paste a signature that already displays correctly, then save. Gmail counts the full HTML behind the signature, including hidden markup, and rejects a signature above 10,000 characters. In classic Outlook for Windows or Mac, go to File, Options, Mail, Signatures, click New, paste the signature and save. New Outlook keeps signatures in a different place and does not reliably accept pasted HTML, so check which version you run first. Use the free calculator on this page to count your characters and check the limits before you paste anything into either app.
Work it out: Email Signature Generator. Free, no sign-up.
In short
- Gmail rejects a signature whose full HTML code is over 10,000 characters, including hidden markup.
- Outlook limits are reported inconsistently, so design to the lowest figure and test in each version.
- Build the signature as plain code, use inline styles and host images online.
- Classic and new Outlook store signatures differently, so check your version before you start.
- No law dictates signature design, but company, data protection and disclosure rules may decide what it must contain.
The short answer and the rule behind it
Both Gmail and Outlook let you paste a designed signature with a logo, colours and a small table of contact details. The catch is that each app stores the signature as code, and each has its own limits on how much code it accepts. Gmail is the stricter one to plan around, because its limit is well documented across current vendor guides and is a hard stop. Outlook's limit is less consistent across sources, so treat it as a range and design with the lowest figure in mind.
No law says how your email signature must look. The legal question is different: what a business email has to disclose. In the European Union, Directive 2003/58/EC amended the company law disclosure rules so that a company's legal name, registration number, registered office and place of registration appear on business documents. Several European countries extend that letterhead logic to email, so check your own company register. In the United States, the CAN-SPAM Act of 2003 requires commercial email to carry a valid physical postal address. Under the EU General Data Protection Regulation (Regulation (EU) 2016/679), any personal data shown in a signature, such as an employee photo, needs a lawful basis and a notice to the person.
How the size limit is worked out, step by step
The figure you need is the number of characters in the code, not the number of words a reader sees. A signature that looks short on screen can be several thousand characters once the tags and style rules are included. Work through these steps before you open Gmail or Outlook.
- Build the final signature in a plain HTML file or a plain code editor, not in Word or Google Docs. Copying from those tools adds hidden formatting that inflates the count.
- Count the characters of the whole HTML, including tags and inline style attributes. Any text counter will do. Note the visible text separately, so you can see how much of the total is markup.
- Add the disclaimer, if you use one, to the same total. One vendor blog reports that an average disclaimer runs about 700 characters, which is a useful rough guide but not a legal standard.
- Compare the total with the limit for each client you support, using the table below.
- Keep a margin. Aim well below the hard limit, and recount after every edit.
| Email app | Limit reported for the signature code | What to do |
|---|---|---|
| Gmail (web) | 10,000 characters, including hidden HTML and image tags. Several current vendor guides report the same figure. | Keep the whole signature under 10,000. Aim for under 5,000 for a margin. |
| Outlook | Sources disagree. One guide reports 8,000, another 10,000, and a third reports 5,000 for Outlook.com-type accounts. Checked October 2026. | Design to the lowest figure, 5,000 characters, and test in each Outlook version you use. |
Where sources disagree, the safe move is to plan for the smallest figure. Google's own help pages should be your final check for Gmail, and Microsoft's documentation for Outlook, because vendor guides do not always match the current app.
A worked example with real numbers
The figures below are an illustration I built to show the arithmetic. They are not measured from a real signature or a real company.
Suppose the signature has three parts. The name, job title, phone number and a logo link, written with inline styles, come to 2,400 characters. A row of social icons adds 900. A standard disclaimer adds about 700. The total is 4,000 characters.
Against Gmail's 10,000-character limit, that leaves 6,000 characters of room, so Gmail will accept it. Against the 5,000-character target, it leaves 1,000 characters, which is enough for a small change but not much more.
Now suppose the same signature was pasted from a Word file. Hidden formatting adds an illustrative 2,000 characters, bringing the total to 6,000. Gmail still accepts it, but the total now sits above the lowest Outlook figure that sources report. The fix is to paste as plain code, remove the extra formatting, and recount. The visual design barely changes, but the risk of a broken signature in Outlook falls sharply.
Steps for Gmail
- Sign in to Gmail on a computer. Click the gear icon, then choose See all settings.
- Under the General tab, scroll to the Signature section. Click Create new, give the signature a name, and confirm.
- Paste the signature into the editor. Gmail's editor is a rich-text box, so pasting raw code as text will show the code rather than the design. Copy a signature that already displays correctly, from a browser page where it renders, and paste that instead.
- Choose which address the signature belongs to, and set it as the default for new emails and for replies and forwards.
- Scroll to the bottom and select Save Changes. If the signature is too long, Gmail shows a warning and will not keep it.
- Send a test to a personal address and check the result on a phone and on a desktop. The Gmail app on phones keeps its own signature setting, so check it separately.
Steps for Outlook
Start by checking which Outlook you use. Classic Outlook has a ribbon with File, Home and Send/Receive tabs. New Outlook looks more like a browser tab and has a gear icon at the top right. The two versions store signatures differently, so instructions for one will not work in the other.
Classic Outlook (Windows or Mac): Go to File, Options, Mail, and select Signatures. Click New, name the signature, paste the HTML into the editor, and set the default for new messages and replies. Click OK. Use the visual editor to check the layout, because Outlook does not always paste HTML cleanly on the first attempt.
Images must be hosted online with full web addresses, not saved on your computer. A local image path will show as a broken box for anyone who receives the email.
New Outlook: Go to Settings, Mail, Compose and Reply, then paste the signature into the built-in editor. Microsoft's community forum has threads where users report that New Outlook for Windows cannot point to a local HTML signature file, and that the 2024 version rejected pasted HTML. Check Microsoft's current documentation before you rely on this route, and keep the classic app for HTML signatures if your workflow depends on them.
Organisation-wide: If your company uses Microsoft 365, an administrator can set a signature or disclaimer for every outbound email through Exchange Online mail flow rules. This is the most reliable route for a company, and it stops staff from editing the approved text.
Cases that change the answer
The steps above assume one person sets up one signature on one account. Several situations change the answer.
- Company-managed signatures. If an administrator deploys the signature, staff cannot edit it, and your personal changes will be overwritten. Ask IT where the signature is managed before you edit anything.
- Regulated roles. Financial, legal and healthcare teams often must use compliance-approved wording without changes. The person creating the signature usually does not write the disclaimer.
- Staff who leave. When someone resigns or changes role, their signature should be removed or reassigned, along with the shared mailbox settings. Leaving a former employee's title and phone number live is a common compliance gap.
- Shared mailboxes. A shared inbox may need its own signature that names the team rather than an individual.
- Contract type and minimum service. These do not apply to email signatures. Whether an employee is on a fixed-term or permanent contract does not change how their signature works, and no service period is needed to receive one.
Common mistakes
- Copying a signature out of Word, Google Docs or a web page, which adds hidden code and can push it over the limit.
- Putting styles in a head section instead of inline style attributes. Email apps often strip or ignore those blocks, so the layout breaks.
- Using large images. Keep logos small and light, and check that the design still reads when images are blocked.
- Linking images with local file paths, which recipients cannot see.
- Testing only in one app. Send a test to Gmail, Outlook and a phone, and check replies as well as new messages.
- Forgetting a plain-text version. Some recipients see only plain text, and the signature may disappear or turn into code.
What to check with HR or a lawyer
A signature is a small document, and some of its content carries legal weight. Automation and this guide can tell you how to build and count the code. They cannot decide what your company is legally required to disclose, and that answer belongs to your HR lead, your company secretary or a lawyer in your country.
Ask them which company details must appear, such as the legal name, registration number and registered office. Confirm whether a disclaimer is required for your sector. Get written consent before you put an employee photo in a signature, and check whether any personal mobile numbers should be left out. Finally, ask who approves wording, who keeps the approved version, and how long old signatures are retained.
Where AI workers fit
Signatures are a small job, but the work around them is routine and repeats every time someone joins, changes role or leaves. Employers can take that routine work off HR and payroll teams with AI workers, which are software agents that run a defined task without a person doing each step. AiStaffo builds AI workers for routine business work such as data entry, follow-ups, reconciliations, billing, reports and documents. In a company, that might mean an AI worker drafting the signature details for a new starter from the HR record, while a person still approves the wording.
Sources
How AiStaffo would automate this
AiStaffo would connect to the employee record in your HR system and, when someone joins, changes role or leaves, prepare the matching signature details from that record. The AI worker would keep the approved disclaimer text, count the characters against the Gmail and Outlook limits, and flag any signature that is too long before it goes live. A person in HR or the business owner still approves the wording, decides which company details must appear, and confirms any photo or personal data use. Book a free automation audit to see which of your routine HR and payroll tasks could run this way.
Questions people ask
What is the character limit for an HTML signature in Gmail?
Why does my signature look fine on screen but break in Outlook?
Can I use the same HTML signature in New Outlook and classic Outlook?
Do I have to include a disclaimer in my email signature?
Who should I ask before adding a photo to a signature?
What should I do with a signature when an employee leaves?
Book a free automation audit
Thirty minutes. We look at one process you run every week and tell you exactly what an AI worker would take off your desk, and what it would not.


































