
Gmail Clipping and CSS Limits: An Engineering Guide
Gmail can ignore unsupported CSS, serves images through Google's proxy, and is reported to clip oversized HTML. The weight-budget discipline, sanitizer survival rules, and Gmail's rendering variants.
TL;DR: Gmail renders a capable engine underneath, but every message passes through an aggressive filter first — one that can ignore unsupported CSS, serves images through Google's proxy servers, and, according to email-service documentation, clips oversized HTML. Google documents the CSS Gmail supports and its image proxy, but we found no Google documentation of clipping or its threshold (as of November 2026); treat clipping, the threshold, and the rest of the filter's undocumented behavior as observations that can change. The engineering response is a per-template weight budget, CSS written to survive the sanitizer, and an explicit understanding that "Gmail" is actually several rendering variants wearing one name.
The clipping threshold and what it actually cuts
According to email-service documentation such as SendGrid's support article, Gmail clips messages whose HTML content exceeds a size threshold of around 102KB — SendGrid says Gmail will "generally" clip messages larger than that; we found no Google documentation of the clipping or its threshold (as of November 2026). The figure is approximate and unofficial rather than a documented Google contract, and should be treated as a live fact to verify rather than a fixed constant. Past the threshold, Gmail generally hides the rest of the message behind a "[Message clipped] View entire message" notice, and the recipient sees only what fit unless they open the full message.
Source: threshold figure as stated in SendGrid's support article on Gmail clipping; unofficial and approximate, and not stated in Google's CSS support reference. As of November 2026 — re-verify before treating this number as a hard budget ceiling.
What clipping costs in practice is worse than the raw description suggests. The cut lands on the bottom of the message, which is exactly where CTAs, legal footers, and the unsubscribe link tend to live — an invisible weight problem becomes a compliance and conversion problem the moment a template crosses the line. Two details compound the risk. First, email-service documentation such as SendGrid's frames the threshold in terms of the email's HTML content; images hosted elsewhere and referenced by URL are not part of that HTML, so a template can be visually light and still be structurally heavy. Second, a working hypothesis, not a documented rule, is that quoted threads and forwards add bytes after the original send, so a template that measured safely under the threshold at send time could still get clipped once a recipient's reply chain grows around it; SendGrid's article, for its part, notes that Gmail will also clip and thread messages sent with identical subject lines.
Clipping has a second-order effect that is easy to miss: content below the cut does not load unless the recipient opens the full message. SendGrid's article notes that the open-tracking pixel added at the end of an email is not loaded unless the recipient clicks the "View entire message" link. Confusing engagement data on a campaign — opens that do not match clicks on content that should have driven them — is sometimes a clipping symptom rather than an audience problem, and it is worth checking before re-designing a CTA that was never actually delivered.
Clipping happens on Gmail's side, after the sender has no further control over the message, which is what makes the weight budget a pre-send obligation rather than a post-send diagnostic. There is no partial-credit outcome: a template either fits under the threshold at send time or it does not, and the recipient sees the "[Message clipped]" notice with its "View entire message" link — anything below the cut stays unseen unless they click it. Treating the threshold as a hard ceiling with real headroom below it, rather than a target to approach, is a reliable way to avoid discovering the problem in production.
The weight budget as a template property
The working fix is treating message weight as a template property with its own budget, recorded next to the support matrix, rather than as something discovered only after a send looks wrong. A budget with real headroom below the clipping threshold catches weight regressions at build time.
Weight tends to hide in a few predictable places: deeply nested table skeletons that accumulate structural bytes without adding visible content, repeated inline styles copied across modules instead of consolidated, unpruned module libraries that ship every block a template system owns even when a given campaign uses three of them, and verbose markup generated by design tools without cleanup.
The reduction toolkit is straightforward — minification as a build step, pruning unused modules per send rather than shipping the full library every time, and consolidating repeated inline styles into shared declarations where the support matrix allows it. The honest limit is that a table-based baseline has a real floor weight: the nested structure that survives the Word engine and the sanitizer tier is not free, and no amount of minification erases that floor entirely.
The budget interacts directly with template architecture. Shared modules mean shared weight — a heavy module taxes every campaign that includes it, which is one more reason module weight belongs in the same review as module functionality.
What the sanitizer keeps and ignores
Gmail supports embedded styles in the document head and class selectors, a capability that reshaped how email CSS gets written when it landed, moving templates away from inline-only styling for at least this client family. But Google's CSS support reference warns that Gmail might ignore unsupported CSS properties and selectors, and it lists the properties Gmail supports. Any rewriting of the CSS Gmail keeps is not described in that reference; a working hypothesis, not a documented rule, is that such changes happen silently, with no report the sender can consult.
A few survival rules of thumb hold up in practice: simple selectors survive more reliably than complex ones, widely supported properties survive more reliably than novel ones, and attribute-level fallbacks under CSS enhancements catch the cases where the CSS itself gets stripped entirely.
<td class="dark-safe" bgcolor="#1a1a1a" style="background-color:#1a1a1a; padding:24px;">
<!-- bgcolor attribute is the fallback if CSS styling is not applied -->
Content
</td>Errors deserve the same caution. Google's CSS support reference does not describe how Gmail handles malformed CSS; a working hypothesis, not a documented rule, is that malformed CSS can cause the sanitizer to drop an entire style block, not just the offending declaration. If that happens, one invalid rule silently takes an entire template's styling with it, which is why CSS validation belongs in the build step rather than in manual review.
Only part of this is specified. Google's CSS support reference (last updated September 15, 2026) lists the supported CSS, while the clipping threshold, the handling of malformed CSS, and any rewriting of kept CSS are not described in it and remain observed behavior. Every claim in this section carries an as-of caption implicitly, and should be re-verified at the point a template actually depends on it, because community test data such as caniemail's records Gmail's support changing over time.
Gmail is several clients in one
"Gmail" names at least four meaningfully different rendering variants. caniemail tracks Gmail as desktop webmail, the iOS and Android apps, and mobile webmail, and notes that the apps lose <style> and @media support with non-Google accounts. That yields four variants: Gmail on the web, the Gmail mobile apps signed into Google accounts, the same mobile apps reading non-Google accounts, and Gmail's mobile webmail. The last two are the weakest in this comparison: caniemail lists neither <style> nor @media as supported there.
| Gmail variant | Embedded styles (``) | Media queries | Targeting hooks documented by Google |
|---|---|---|---|
| Gmail web | Partial — not inside ``; 16 KB limit | Partial — no height-based queries | None in Google's CSS reference |
| Gmail app, Google account | Partial — not inside `` | Partial — no height-based queries | None in Google's CSS reference |
| Gmail app, non-Google account | Not supported | Not supported | None in Google's CSS reference |
| Gmail mobile webmail | Not supported | Not supported | None in Google's CSS reference |
Source: embedded-style and media-query cells from caniemail's <style> element and @media feature data (Gmail results dated 2019 to 2023); Google's CSS support reference confirms <style> blocks and queries against screen width, orientation, and resolution, but does not compare variants or account types. Community-tested selectors such as u + .body (listed at howtotarget.email) can target Gmail, but Google's reference does not describe them, and why they match is a working hypothesis about how Gmail handles markup, not a documented rule. As of November 2026 — re-verify per variant before a production decision, since caniemail's test history records changes in the Gmail apps' support over time.
Why the distinction matters for a template's small-screen strategy: a responsive approach that depends on media-query support keeps a floor that is only as reliable as its weakest included variant. The strategic choice between media-query responsiveness and a fluid-hybrid approach that needs no queries at all belongs to this topic's responsive coverage — the point here is only that Gmail's own variance is part of what makes that choice non-obvious.
The image proxy and asset behavior
Google's Workspace admin help says that when users open email messages, Gmail uses Google's secure proxy servers to serve images that might be included in them, and lets Workspace administrators allowlist internal image URLs that bypass the proxy or disable the image proxy, which Google does not recommend (as of November 2026); Google first announced the change in a December 12, 2013 Gmail blog post. Gmail Help says senders can't use image loading to get information about the recipient's computer or location. Beyond that, a working hypothesis, not a documented rule, is that caching behavior sits with Google's proxy rather than the origin server, and that the timing of when an asset actually loads is mediated by the proxy layer rather than the recipient's direct connection.
The practical engineering consequences follow from that. Assets must be publicly reachable — no authentication wall the proxy cannot pass — and, under the same working hypothesis, Gmail's proxy caching can pin an old version of an image after the sender replaces it at the same URL, because the proxy may be serving its own cached copy rather than re-fetching. The working fix is versioned asset URLs: appending a version parameter or changing the filename whenever an image changes, so the proxy treats it as a new resource rather than serving a stale cache hit.
https://example.com/assets/hero-banner.png?v=2026-09-27One boundary is worth stating plainly rather than glossing over: a working hypothesis, not a documented rule, is that proxy caching is one reason open-rate telemetry is approximate rather than exact (Gmail Help says only that "Sometimes, senders may know" whether an email with an image was opened), but the analytics implications of that fact — how it should shape campaign measurement — sit outside this topic's scope. This piece stops at the rendering and asset-loading mechanics; what a marketing team does with imprecise open data is a different discipline's decision.