How to compress images for email attachments

"Your message is too large" is one of the most annoying errors in computing, because the fix is not obvious: you compress the photo, the size barely moves, and you still cannot send it.

There are two reasons for that, and both are fixable.

Reason 1: the limit is smaller than you think

Most consumer mail providers cap a message somewhere in the region of 20–25 MB. That is the whole message, attachments included, and email is not a binary-safe pipe: attachments are encoded as text before they travel, which inflates them by roughly a third.

So a "25 MB" ceiling usually leaves you closer to 18–20 MB of actual files, and that is before the signature, the quoted thread, and whatever the recipient's provider enforces on their side. Treat the real-world budget for attachments as under 15 MB and you will almost never be bounced.

Reason 2: you compressed the wrong thing

Modern phone photos are 3000–4000 pixels wide. A typical desktop email window shows them at maybe 800 pixels. The camera wrote roughly twenty times more pixels than anyone will see — and those extra pixels are your file size.

Lowering the JPG quality alone leaves all of those pixels in place, which is why the file size barely moves. Reducing the pixel dimensions is the change that actually matters.

A procedure that works

  1. Count the budget. Add up every attachment. If the total is over 15 MB, something has to shrink.
  2. Resize first. For ordinary sharing, an image 1600 pixels on the long edge is generous — it still looks sharp on a laptop screen and at modest print sizes. If the recipient only needs to look at it on a phone, 1200 pixels is plenty.
  3. Then compress. With the dimensions down, a normal quality setting will produce a file in the low hundreds of kilobytes. Photos compress extremely well at this stage; you should not need the strongest setting.
  4. Check it visually. Open the compressed result and look at a face, some foliage, or an area of fine texture. Those are where lossy compression shows first. If it looks clean at 100%, it will look clean to your recipient.
  5. Batch it. If you are sending ten photos, run them all through at once and attach the ZIP — or attach the ten smaller files directly, whichever is easier for the recipient to open.

What format should an email attachment be?

When to stop attaching at all

Some deliveries simply should not travel by attachment: 30 photos from an event, a video, a folder of raw scans. Upload them once and send a link instead. It is faster for you, it does not fill up the recipient's inbox quota, and it never triggers a size error. Attachments are for a handful of files; links are for a pile.

Frequently asked questions

What is the email attachment size limit?

Commonly 20–25 MB per message, depending on the provider, and effectively lower once encoding overhead is counted. Keeping attachments under 15 MB avoids the problem entirely.

Why is my photo still 8 MB after compressing?

Because compressing usually does not change the pixel dimensions. A 4000-pixel-wide photo at low JPG quality is still a big file. Resize it to the size it will actually be viewed at, then compress.

What resolution should I use for email?

1600 pixels on the long edge is a good default. Drop to 1200 if the photo will only be viewed on a phone, and keep the original file separately if you might need it later.

Can I compress images for email on a phone?

Yes. Open this site in your phone browser, choose the photos from your gallery, and they are compressed on the device — nothing is uploaded anywhere.