Gmail signature too long: fixing the 10,000-character limit
You paste your signature into Gmail’s settings, hit Save, and Gmail refuses: “The signature is too long. Please try a shorter signature.” Your signature is four lines and a logo. What gives?
The limit is real — and it counts HTML, not text
Google’s official help documentation puts the cap plainly at 10,000 characters (as of June 2026), and notes that images count toward that limit too.
The part Google doesn’t spell out is which characters count. It’s not the text you see — it’s the full HTML source behind it. Every <span>, every style="" attribute, every class name, every comment block counts against the 10,000. That’s why Google’s own support forums have years of threads from users hitting this error with signatures that look like 200 characters.
A clean, hand-written signature rarely gets close to 10,000 characters. A signature pasted from a visual editor almost always does.
Why pasted signatures blow past 10,000 characters
Three common sources, in rough order of how often we see them:
1. Word and Google Docs paste cruft. Copying a signature out of Microsoft Word drags along its entire formatting model: class="MsoNormal" on every paragraph, <o:p> tags, redundant font declarations repeated on every single run of text, and conditional comment blocks. Four visible lines can easily arrive as 30,000+ characters of HTML.
2. Base64-embedded images. Some design tools and “export as HTML” features embed your logo or headshot directly in the markup as a base64 data URI instead of linking to a hosted file. Base64 encoding inflates the image’s byte size by about 33% — so a modest 60 KB PNG becomes roughly 80,000 characters of text. One embedded photo exceeds Gmail’s entire limit eight times over. An image referenced by URL, by contrast, costs a few hundred characters.
3. Nested-span syndrome. Every round of editing in a rich-text editor (including Gmail’s own signature box) can wrap text in another layer of <span> tags without removing the old ones. Signatures that have been tweaked for years accumulate dead markup like sediment.
How to check your signature’s actual length
Gmail won’t show you a character count, but the check takes a minute:
- If you have the HTML file (a
.htmexport, for instance): open it in any text editor and check the character count, or run(Get-Content signature.htm -Raw).Lengthin PowerShell /wc -c signature.htmon Mac and Linux. - If the signature only exists in Gmail or another mail client: open the message or settings page in your browser, right-click the signature, choose Inspect, then right-click the signature’s outer element and Copy → Copy outerHTML. Paste that into any character counter.
If the number is over 10,000, you’ve found the problem. If it’s under 10,000 and Gmail still complains, you’re likely pasting from a source that adds markup during the paste itself — Word and Docs both do this.
How to slim a signature down
| Bloat source | Fix | Typical savings |
|---|---|---|
| Base64 data-URI images | Host the image and reference it by URL | Tens of thousands of chars |
Word/Docs paste cruft (MsoNormal, <o:p>, comments) | Strip comments and class attributes | 50–80% of total size |
| Repeated inline font declarations | Declare styles once per table cell, not per word | Varies, often thousands |
Nested empty <span> layers | Minify / flatten the HTML | Hundreds to thousands |
| Unminified whitespace and indentation | Collapse to single spaces | 10–20% |
Two notes on those fixes:
- Class attributes are pure waste in Gmail signatures. Gmail strips
<style>blocks, so classes have nothing to reference — only inline styles render. Deleting everyclass=""costs you nothing visually. - Don’t hand-edit Word’s HTML output. It’s genuinely faster to rebuild the signature in a clean editor than to untangle Word’s markup. Most people who try the surgical route end up with a signature that breaks in Outlook anyway.
The build-it-clean alternative
This is the exact problem OnceSig’s editor was built around. All eight templates export minified, table-based HTML: inline styles only, no classes, no comments to strip, images referenced by URL with explicit dimensions. Fully populated — name, title, company, phone, photo, logo, and social icons — every template stays under roughly 9,000 characters, with headroom below Gmail’s cap. The same markup is engineered to survive Outlook’s Word renderer, so you’re not trading one client’s quirks for another’s.
The editor is free to use; clean export (no credit line) is a one-time $9 license — no subscription, no account. Once your signature is under the limit, the Gmail install guide walks through pasting it into Gmail’s settings correctly so the paste itself doesn’t reintroduce bloat.
Skip the debugging next time
OnceSig templates are pre-engineered to pass Outlook's Word renderer and Gmail's sanitizer — build one free.
Open the OnceSig editorFrequently asked questions
What is the exact Gmail signature character limit?
Google's official help documentation states you can put up to 10,000 characters in your signature (as of June 2026). The count applies to the underlying HTML source, including all tags, attributes, and image references, not just the text you can see.
Why does Gmail say my signature is too long when it is only a few lines?
Because the limit counts HTML markup, not visible characters. A signature pasted from Word, Google Docs, or a design tool can carry tens of thousands of characters of invisible formatting code behind four lines of visible text.
Do images count toward Gmail's 10,000-character limit?
Yes. Google's help page notes that images count toward the limit and suggests resizing them if you hit the error. An image referenced by URL costs only a few hundred characters of markup, but an image embedded as base64 text can exceed the entire limit by itself.
Do OnceSig signatures stay under the Gmail limit?
Yes. All eight OnceSig templates export minified, table-based HTML with inline styles and URL-referenced images. Fully populated with every field, they stay under roughly 9,000 characters, leaving headroom below Gmail's 10,000-character cap.