← Back to blog

By the ImageOpti team ·

How to Compress Images for Email (and Stay Under Attachment Limits)

Why photos bounce or arrive huge by email, how attachment limits really work, and a simple method to shrink pictures so they send quickly and still look good.

To send photos by email, reduce their pixel dimensions first, then compress them. A phone photo of 4000 pixels across is far larger than any email or typical screen needs, and shrinking it to around 1600 pixels wide often turns a 4 MB file into a few hundred kilobytes that still looks sharp.

This matters because email attachment limits are tighter than they look, and a folder of photos can hit the limit quickly. Here is how the limits work, what sizes to aim for, and how to prepare images whether you are attaching them or placing them inside the message.

Why the limit is lower than the number suggests

Most email services cap the total size of a message. Typical figures are around 20 to 25 MB, with Gmail and Outlook-style services in that area, though providers differ and change limits over time. Check your own provider and, importantly, the recipient's, because their server may reject a message your server accepted.

Attachments are not sent as raw files. Email was designed for text, so binary files are encoded into text form (a method called base64), which makes them roughly one third bigger. A rule of thumb many people use is that a 20 MB limit really means about 15 MB of actual files.

The arithmetic

Suppose the limit is 25 MB and your phone photos are 4 MB each.

  • Encoded size per photo: 4 MB x 1.33, which is about 5.3 MB.
  • Photos that fit: 25 divided by 5.3, which is about 4 photos.

If you compress each photo to 400 KB, the encoded size is about 0.53 MB each, and you can fit around 45 before hitting the cap. That difference is why preparing images is worth a few minutes.

Also remember that the message body, signature images and replies quoted below count toward the total.

Decide where the image goes

There are two common situations, and they call for different sizes.

An attachment the recipient will save or print

If the person might print the photo or zoom in, keep more resolution. A reasonable range is 1600 to 2400 pixels on the long side, with moderate compression. For standard prints, see the explanation of pixels and print size in what image resolution, DPI and PPI mean.

An image shown inside the email body

Email columns are narrow, usually 600 to 700 pixels wide, so images only need to be around 600 to 800 pixels wide. If you want them to look sharp on high-density phone screens, you can go to about 1200 pixels, but anything beyond that is wasted. Aim for under about 200 KB per image so the email loads quickly.

PurposeSuggested widthTarget file size (typical)
Inline image in a newsletter or message600 to 1200 px50 to 200 KB
Photo attachment for casual viewing1200 to 1600 px200 to 500 KB
Photo attachment that may be printed2000 to 2400 px500 KB to 1.5 MB
Logo or email signature image150 to 400 pxUnder 20 KB

These are starting points, not rules. If a recipient needs the full-size original, a cloud link is better than an attachment.

Step by step

1. Resize first

The number of pixels is the biggest factor in file size. Open the resizer, add your photos, and enter the width you chose. With the aspect ratio locked, the height follows. For several images at once, apply the same size to all and download them together as a ZIP.

Example: a 4032 by 3024 photo resized to 1600 wide becomes 1600 by 1200. That is about 1.92 million pixels instead of 12.2 million, which is roughly 16 percent. The file will typically fall to a similar fraction of its original size even before compression.

2. Compress

Next, run the resized files through the optimizer. It accepts JPEG, PNG and WebP, works on batches, and has a quality slider (default 75) with a before and after comparison. For photos, the default is a good place to start. Look at the comparison, zoom in on faces and text, and adjust if needed.

Most email photos end up well under 500 KB after these two steps.

3. Check the format

  • Photos: JPEG is the safest for email because every mail program opens it.
  • Screenshots or graphics with text: PNG keeps the edges sharp, but check the size, since it can be big.
  • WebP: most modern mail programs show it, but older ones may not, so use JPEG if you are unsure who will open the message.
  • iPhone HEIC photos: many recipients on other systems cannot open these. Convert them first. See HEIC to JPG: what iPhone users need to know. The converter can do it in your browser.

4. Name files sensibly

A name like "kitchen-before-1.jpg" is more helpful than "IMG_4032.jpg". It also helps recipients find the attachment later.

What if the files are still too big?

  • Reduce the number of photos per email. Send two or three messages instead of one.
  • Lower the dimensions a little more. From 1600 to 1200 wide cuts the pixel count by about 44 percent, because (1200/1600) squared is 0.5625.
  • Raise the compression slightly. Dropping quality from 75 to 65 on a photo can save more, but compare the result.
  • Use a share link. Services like Google Drive, iCloud or OneDrive can send a link to full-size files, which sidesteps the limit.
  • Zip the files carefully. A ZIP of JPEG files saves almost nothing, because JPEGs are already compressed. A ZIP helps only to bundle many files, not to shrink them.

Note that mail apps on phones sometimes offer to resize attachments for you when sending, with options like small, medium or large. That works, but you have less control than preparing the files yourself.

Mistakes to avoid

  • Compressing a photo several times. Each lossy save adds artifacts. Resize and compress once from the original.
  • Using PNG for photos. The file can be many times bigger than a JPEG.
  • Enlarging a small image. It does not add detail. It only makes the picture soft.
  • Sending only a compressed copy. Keep your original. You can always make a smaller copy later, but you cannot rebuild lost detail.
  • Pasting a huge image into the message and shrinking it with the mouse. The full file still gets sent. Resize it properly beforehand.

Business emails and signatures

If you send marketing emails or newsletters, the same ideas apply but the stakes are slightly higher.

  • Keep the total message light. The bigger the email, the slower it loads on a phone, and some mail clients cut off long messages.
  • Set width and height on images in the HTML so the layout does not jump while they load.
  • Write alt text. Many mail programs block images by default, so a short description keeps the message meaningful.
  • Logos in signatures should be small, ideally under 20 KB, and sized close to how they will display. A 2000 pixel logo scaled down in the signature is a common cause of a large message.

If the images also appear on a website, the page-speed side of this is covered in how to compress images for a faster website.

Privacy note

Photos can include location data and other metadata. Before you send pictures to someone you do not know well, consider whether the location should be included. The tools here run entirely in your browser, so your files are not uploaded to a server when you resize or compress them.

FAQ

What size should an image be for email?

For an image inside the message, about 600 to 800 pixels wide and under 200 KB is typical. For a photo attachment, 1200 to 1600 pixels is usually plenty unless it will be printed.

What is the maximum email attachment size?

It varies by provider. Many sit around 20 to 25 MB, and the encoding adds roughly a third, so actual files should be smaller. Check both your provider and the recipient's.

Does zipping reduce photo size?

Hardly at all for JPEG files, since they are already compressed. A ZIP is useful to bundle several files, not to shrink them.

Will compressing hurt the quality?

Moderate compression is usually not visible at normal viewing size. Compare the before and after view, and keep the original.

Why does the recipient see a blank icon?

The format may not be supported, which is common with HEIC photos. Convert them to JPEG and resend.

Related guides

For more on shrinking images, read the image optimization guide for websites.