You've taken the perfect photo. You attach it to an email. Then you get an error: "Attachment too large." Or worse — the email silently lands in spam because your image-heavy message tripped a filter.
Compressing images for email is one of the most practical skills you can develop, whether you're sending a proposal with product photos, sharing family pictures, or running an email newsletter. In 2026, email providers have strict attachment size limits and spam filters that increasingly scrutinize oversized image files.
This guide shows you exactly how to compress images for email — step by step, for free, and without uploading your files to any third-party server.
Key Takeaways
- Gmail caps attachments at 25MB, Outlook at 20MB, and Yahoo at 25MB — but Base64 encoding adds ~33% overhead, so your actual file limit is lower than it appears.
- For inline email images, keep individual files under 100KB; for email newsletter total size, stay under 102KB to avoid Gmail clipping.
- JPEG at 75–80% quality typically reduces file size by 60% with no visible quality loss.
- Always resize images to display dimensions (600–800px wide) before compressing — this alone can cut file size by 70–90%.
- Removing EXIF metadata can shave an additional 10–40KB off photo files.
- Use a client-side compressor (like OnlineImageShrinker) to process files locally — no uploads, no wait time, no privacy risk.
Why Image File Size Matters for Email
According to a 2025 email deliverability study, emails exceeding 100KB in total size begin failing against multiple spam filters — and at just 110KB, deliverability measurably drops. That threshold might sound surprisingly low, but it's the reality of how modern spam filters work. Large files trigger suspicion, especially when image content dominates over text.
Here are the hard limits set by the three biggest email providers in 2026:
| Provider | Attachment Limit | Effective File Size* |
|---|---|---|
| Gmail | 25 MB | ~18.75 MB |
| Outlook.com | 20 MB | ~15 MB |
| Yahoo Mail | 25 MB | ~18.75 MB |
*Base64 encoding used in email transmission increases actual file sizes by ~33%, reducing the usable limit.
Beyond the hard limits, there's a subtler problem: Gmail clips email messages that exceed 102KB in total size. That means your recipient only sees part of your email and has to click "View entire message" — which dramatically reduces engagement. The ideal target is to keep your entire email (including all images) under 75KB.
For photos you're sending as attachments (not inline email content), the stakes are different — here you're worried about the attachment limit, not the email body size. But either way, a free image compressor solves both problems.
Step 1 — Choose the Right Image Format
Choosing the wrong file format can double or triple your image's file size before you even start compressing. Studies show that converting images to the appropriate format can reduce size by 25–35% compared to JPEG, with WebP delivering superior results for most email use cases.
Here's how to pick the right format for email:
- JPEG / JPG — Best for photographs and images with many colors. JPEG uses lossy compression that discards imperceptible data to shrink files aggressively. A quality setting of 75–80% typically reduces file size by 60% with no noticeable visual degradation. This is the best choice for photo attachments.
- PNG — Best for screenshots, logos, diagrams, and anything with sharp edges or text. PNG uses lossless compression, so file sizes tend to be larger — but the quality is pixel-perfect. Only use PNG when your image has transparency or you need crisp text.
- WebP — A modern format developed by Google that achieves 25–35% smaller files than equivalent JPEG, with no visible quality loss. Most modern email clients support WebP, but older clients (especially Outlook for Windows) may display a blank box instead. Test before relying on WebP for newsletters.
- GIF — Only use for simple animations or images with 256 colors or fewer. For static images, JPEG or PNG is almost always smaller.
For most people compressing photos to attach to a regular email — use JPEG. For screenshots or images with text, use PNG. If you need to convert between formats, our free image format converter handles JPEG, PNG, and WebP in seconds, entirely in your browser.
You can also learn more about format tradeoffs in our PNG vs JPG vs WebP comparison guide.
Step 2 — Resize to the Right Dimensions First
Resizing is the single most impactful step for reducing email image size — and it's the step most people skip. Mobile devices account for 43.5–85% of all email opens in 2025, and a 4000×3000 pixel photo from your smartphone sends far more data than any mobile screen can display.
The rule: resize your image to the dimensions it will actually be viewed at before compressing it.
- Email newsletter inline images: 600px wide is the industry standard for email templates. Going up to 1200px covers Retina/HiDPI screens.
- Email signature images: No wider than 650px, and ideally 90–150px tall.
- Photo attachments: For a photo someone will view on screen, 1024px on the longest side is more than sufficient. You only need the full resolution if the recipient plans to print it.
A 4000×3000 photo might be 5MB. Resize it to 1200×900 and compress it — you'll often end up under 200KB, a 97% reduction in file size, with no visible loss for on-screen viewing.
Use our free image resizer to quickly scale photos down to your target dimensions. Lock the aspect ratio so your image doesn't distort, then proceed to compression.
Step 3 — Compress Images to Under 100KB
Once your image is the right format and the right size, it's time to compress it. Lossy compression (like JPEG at 75–80% quality) can reduce file size by 50–80% with no visible quality change. Lossless compression techniques applied to PNG files typically achieve 10–30% reduction while preserving every pixel.
You don't need Photoshop or paid software. Our free online image compressor runs entirely in your browser — your files never leave your device.
How to compress images for email in three steps:
- Open the Image Compressor tool.
- Drag and drop your image (or click to select). You can compress multiple files at once.
- Use the quality slider to balance file size and visual quality. For email attachments, aim for 70–80% quality on JPEG. Download when satisfied.
Unlike server-based tools like TinyPNG, our compressor uses WebAssembly to run compression algorithms directly on your CPU. There's no upload queue, no file-count limit, and no privacy risk from sending photos to a third-party server.
For JPEG compression or PNG compression, we have dedicated tool pages optimized for each format.
Platform-Specific Tips for Gmail, Outlook, and Yahoo
According to the 2025–2026 email industry benchmarks, the average email open rate across all providers is 43.46% — but that number plummets when images fail to load, emails are clipped, or messages land in spam. Here's how to avoid those pitfalls on each platform.
Gmail
- Attachment limit: 25MB (files over 25MB are auto-converted to Drive links).
- Clipping threshold: Gmail clips email bodies that exceed 102KB. If you're sending HTML emails with inline images, keep the total under 75KB.
- Spam sensitivity: Gmail's spam filter is particularly sensitive to image-heavy emails with little text. Aim for at least a 60:40 text-to-image ratio.
- Format support: Gmail displays JPEG, PNG, GIF, and WebP correctly in both webmail and the mobile app.
Outlook
- Attachment limit: 20MB on Outlook.com. Microsoft 365 business accounts may support up to 150MB depending on IT configuration.
- WebP warning: Outlook for Windows (desktop app) does not render WebP images. If your audience uses Outlook for Windows, stick with JPEG or PNG.
- Effective limit: Because email attachments are Base64-encoded for transmission, a 20MB limit means your actual file should be under ~15MB to avoid rejection.
Yahoo Mail
- Attachment limit: 25MB per message.
- Storage context: Yahoo users have limited inbox storage, so large attachments eat into their quota. Smaller attachments are more likely to be welcomed.
- Format support: Yahoo Mail renders JPEG, PNG, and GIF reliably. WebP support has been added in recent versions but may vary by client.
Remove EXIF Metadata to Shrink Files Further
Most photos taken with a smartphone or digital camera contain hidden EXIF metadata — information like GPS coordinates, camera model, lens settings, date and time, and even your device's serial number. This data is embedded silently inside the image file and can add 10–40KB to a photo's size.
Stripping EXIF data has two benefits:
- Smaller file size — useful when you're close to a size threshold.
- Better privacy — your GPS coordinates and device info are no longer embedded in every photo you send.
Our free EXIF remover tool strips all metadata from your photos instantly — entirely in your browser. Read more about what EXIF data contains (and why you should care) in our guide: What is EXIF Data in Photos?
Common Mistakes That Make Files Bigger (Not Smaller)
Even experienced users make these mistakes. Avoiding them can save significant file size:
Zipping JPEG or PNG Files
ZIP compression is designed for text and binary files. JPEG and PNG images are already compressed — ZIP typically adds overhead without reducing size, and sometimes makes the file slightly larger. Skip the ZIP file when emailing photos.
Sending Full-Resolution Originals
A 12-megapixel photo from a modern iPhone is typically 4032×3024 pixels and 4–8MB. Almost no one needs to view it at that resolution on a screen. Resize first, then compress. You'll routinely get from 6MB down to under 200KB.
Ignoring the Image-to-Text Ratio
Spam filters don't only look at file size — they look at the ratio of image content to text. An email that is 90% image and 10% text looks like a phishing attempt to many filters. For newsletters and marketing emails, keep at least 60% of your email as readable text. For personal emails with photo attachments, this is less of an issue since the image is an attachment, not inline content.
Re-saving a JPEG Multiple Times
Each time you open and re-save a JPEG, lossy compression is applied again, degrading quality while sometimes not reducing file size. Always compress from the original — don't chain compressions.
Using PNG for Photographs
PNG's lossless compression is excellent for graphics but terrible for photos. A PNG photograph is typically 3–5x larger than an equivalent JPEG at 80% quality. If you're attaching a photo, convert it to JPEG first using our image converter.
FAQ: Compressing Images for Email
What is the best image size for email attachments?
For photo attachments you want recipients to be able to view on screen, target under 500KB per photo — ideally under 200KB. Resize to 1024px on the longest side and use JPEG at 75–80% quality. For inline email images (inside a newsletter or HTML email), keep each image under 100KB, and your total email body under 102KB to avoid Gmail clipping. According to 2025 best practices, a total HTML email size of 75KB is ideal for deliverability.
Does Gmail compress image attachments automatically?
Gmail does not automatically compress image attachments before sending. It does, however, convert attachments over 25MB into Google Drive links. If you want smaller files for faster delivery and better compatibility, you need to compress the images yourself before attaching them — our free compressor makes this a one-step process.
Will compressing an image for email reduce its quality?
It depends on the format and compression level. JPEG at 75–80% quality is visually indistinguishable from the original in virtually all email viewing contexts — screens display images at 72–96 DPI, far below the threshold where JPEG artifacts become visible. PNG with lossless compression never reduces quality at all. The key is compressing to the right level: our compressor's quality slider lets you see a live preview so you can make the call yourself.
Is it safe to use an online image compressor for private photos?
It depends on which tool you use. Most popular tools like TinyPNG, Squoosh, and others upload your files to their servers. Our image compressor at OnlineImageShrinker is entirely client-side — compression happens on your device using WebAssembly, and your photos are never transmitted anywhere. For sensitive photos, this is the safest approach.
Why do my images look fine on my screen but blurry in the email?
This is usually a dimensions problem, not a compression problem. If you send a 600px-wide image and it's displayed in a 1200px container, the email client stretches it — causing blur. Always size your images to at least the display width they'll be shown at (consider 2x for Retina screens). For HiDPI-safe email images, create them at 1200px wide but set the HTML width attribute to 600px.
Conclusion
Compressing images for email is a three-step process: choose the right format, resize to display dimensions, then compress. Do these in order and you'll consistently go from multi-megabyte photos down to files that are fast to send, unlikely to trigger spam filters, and compatible with every email client.
The best part: you don't need to install anything or pay for software. Our free image compressor processes files entirely in your browser — no uploads, no limits, no privacy trade-offs. Pair it with the image resizer and EXIF remover for a complete email-ready workflow in under a minute.
For more on image optimization best practices, see our image optimization guide and our guide to converting images to WebP.
