Help Center
How can we help? 👋

Optimizing Component File Size to Avoid Getting Clipped in Gmail

 

If you've ever had Gmail clip one of your newsletters with that "[Message clipped]" link at the bottom, you know it's frustrating. Not only does it look bad, but it can actually break your tracking pixels and cut off your footer (including your unsubscribe link, which is kind of important).

The Email Love Figma plugin shows you your file size right in the preview screen, so you can catch this issue before you send. And if you are over the limit, there are a couple of straightforward ways to fix it.

This guide covers:

  • Why Gmail clips emails (and why you should care)
  • How to check your file size in the plugin
  • Two methods to reduce file size—one takes about 5 minutes, the other takes 30 seconds
  • Some tips for keeping your emails efficient from the start

Gmail's limit is 102 KB. If you're anywhere close to that, these techniques will help you stay under it without sacrificing your design.

 
💡

It’s worth noting that image file size does not impact email file size. The email file size is determined by the amount of HTML used in your email.

 

Checking Your Email File Size

When you preview your email in the plugin, look at the top right corner of the preview screen. You'll see the current file size displayed in kilobytes (e.g., "21 KB").

Rule of thumb: Aim to keep your emails under 95 KB to give yourself some buffer room.

 

Method 1: Optimize Your MJML Structure in Figma

The Email Love plugin uses MJML, an email framework that structures your design using wrappers, sections, and columns. Understanding this structure helps you build more efficient emails.

Understanding MJML Structure

  • Wrapper: The container/table for your email section
  • Section: The row within the wrapper (think of this as a horizontal slice)
  • Column: The vertical divisions within a section (you can have up to 4-6 columns)
  • Content: Images, text, and buttons live inside columns

The key insight: Each section adds code to your email. If you're building a single-column layout, you don't need multiple sections—you can combine everything into one section to reduce file size.

 

Method 2: Minify Your HTML Code

Minification removes all unnecessary spaces and line breaks from your HTML code without changing how it renders. This is a common practice that can reduce file size by 15-20%.

Using HTML Crush (Free Tool)

  1. Export your HTML from the Email Love plugin
  1. Visit HTML Crush by CodeSend
  1. Paste your HTML code into the left panel
  1. Review the minified version in the right panel—you'll see all spaces removed
  1. Check the reduction percentage displayed on screen (typically 15-20%)
  1. Copy the minified code and paste it into your ESP

Example results: A 13 KB email was reduced to 11 KB through minification.

Important Notes About Minification

  • The code will look harder to read (no spaces or line breaks)
  • It renders exactly the same way in email clients
  • Some people prefer to keep readable code for easier troubleshooting
  • This is safe to use and widely practiced in email development
 

Troubleshooting

Q: My email is still getting clipped after optimization. What do I do?

Try both methods together: First optimize your MJML structure, then minify the code. If you're still over 102 KB, you may need to shorten your content or split it into multiple emails.

Q: Will minifying my code affect how the email looks?

No! Minification only removes spaces and line breaks that don't affect rendering. Your email will look identical to recipients.

Q: How do I know if Gmail is clipping my emails?

Send a test email to yourself at a Gmail address. Scroll to the bottom—if you see "[Message clipped]" or "View entire message," you're being clipped.

 

Questions?

If you need help optimizing your email structure or have questions about file size, reach out to our team. We're here to help you send better emails!

Did this answer your question?
😞
😐
🤩