WORKFLOW6 MIN READ

How to Compress Images for Email

Published

Compressing images for email means matching each image to the column width it will display at, picking a format every target client can open, and checking the finished message size rather than one file. Resize to the template's content width first, compress afterward, and confirm the result with a real test send. A smaller file can help email load faster; it does not guarantee delivery or a particular open rate.

How to compress images for email: resize first

Check the width of the content block in your email builder before resizing anything. Builders differ in how many columns they support and what width each column renders at, so a size that worked in one template layout may be wrong in another. Resize the source image to that column width, then compress; resizing after compression wastes the compression work and can reintroduce artifacts.

Illustrative example, not a measured test: a product thumbnail that displays at 300 CSS pixels wide can use a 600-pixel source so it still looks reasonably sharp on high-density phone screens, while a banner spanning a full 600-pixel column only needs a 600 to 650-pixel source. Doubling the source width roughly doubles the pixel count you are compressing, so apply it selectively to images where sharpness matters, not to every asset in the email.

Which image formats are best for email?

JPEG is the standard choice for photographs in email because of its broad support across desktop and mobile mail clients, while PNG is preferred for logos, icons, and any graphic that needs a transparent background.

FormatBest use in emailTransparencyWhat to check
JPEGPhotographs, product shotsNoLossy at every quality setting; re-check fine detail after compressing
PNGLogos, icons, flat graphicsYesLarger files when used for photographic content
GIFSimple static graphicsLimited, 1-bitFirst-frame-only tools export a still image, not an animation

GIF still has a role for simple flat graphics, but if you process a GIF in a browser-based tool that only reads the first frame, you get a still image, not an animated or video export. Confirm separately whether your sending platform and recipients' clients will actually play an animated GIF before relying on motion to carry the message.

What are the recommended file size targets for email?

There is no single universal byte limit that applies to every email, because inline template images and file attachments are handled differently by the sending and receiving systems. For an attachment, the real cost is higher than the file's own size: email attachments are typically Base64-encoded, and this encoding converts every 3 bytes of binary data into 4 characters of text, adding roughly a third to the size that counts against any sending limit.

Gmail's limit is 25 MB for the whole message including attachments, so a handful of unoptimized photos can exceed it sooner than the file sizes on disk suggest. Compress and resize attachments before adding them, and remember that the encoded size, not the original file size, is what counts toward that ceiling.

For inline images referenced by a URL inside the template, the practical target is set by your own judgment about load time on a mobile connection. A reasonable starting budget, which you should treat as a number to test rather than a fixed rule, is to keep the combined weight of all inline images in one email low enough that the message renders promptly before a reader scrolls past it. Set that budget per campaign and adjust it based on how the test send actually performs.

How to handle images in email templates vs attachments

Template images usually sit on a server and are pulled into the message by a URL when the recipient's client allows remote content. They do not add to the email's own weight the way an attachment does, but they can be blocked by default, so important information should never live only inside an image.

Attachments travel inside the message itself, Base64-encoded as described above, and they count fully against sending limits like Gmail's 25 MB ceiling. If you are sending a photo as a deliverable rather than displaying it inline, resize and compress it the same way you would for the web, and confirm the recipient's mail provider accepts the resulting size.

Why avoid WebP for email marketing?

Browser support for displaying a format and an email client's rendering engine support are not the same thing, and many desktop and webmail clients still use older rendering engines that were built before WebP or AVIF display was common. Treat any claim that a format works everywhere with the same caution you would apply to general browser support claims, and verify with the mail clients your actual audience uses rather than assuming modern web support carries over.

Until you have evidence from a test send to the clients your subscribers use, stick to JPEG and PNG for anything that must render correctly for every recipient, and reserve newer formats for channels where you control the renderer, such as your own website.

How to test your email images before sending

Resize and compress locally before uploading anywhere. In a browser-based tool such as ZipMyImages, processing happens on your own device, so campaign images do not pass through another server before they reach your email service. The images for one campaign fit comfortably in a guest session, and a free account adds the resize step you need to match the column width.

After exporting, upload the chosen files to your email service and send an actual test message to the mail clients and devices your recipients use, not just a preview inside the builder. Check what the image looks like with remote content blocked, confirm alt text reads sensibly in that state, and open the message on at least one mobile client, because the service may resize or re-encode your images again on its own servers, so the delivered version is what matters, not the file sitting on your computer.

If you are sending a flat graphic that was created as an SVG, note that minifying an SVG only strips comments and whitespace; it does not reduce path complexity or recompress embedded images inside the file, and most email clients do not render SVG reliably at all, so convert it to PNG for message use.

Next step: measure your template's actual column width, export a JPEG or PNG at that width, and send one real test message to the mail clients your subscribers use before you finalize the campaign.

Ready to optimize your images?

TRY ZIPMYIMAGES FREE →

Related guides