Compress to KB topic guide
Compress images for email: hit Gmail and Outlook attachment caps
Direct answer
Email attachment limits are message totals, not per-file wishes. Gmail Help states personal accounts allow 25 MB of attachments; Outlook.com’s sending-limits page sets the same 25 MB file attachment cap and notes that OneDrive links do not count toward that limit. When several photos push the message over the cap, Gmail may swap the files for a Drive link and Outlook may refuse the send. Compress the images to a deliberate KB/MB budget first if you need them to travel as real attachments. This page is Gmail and Outlook message attachment prep — not Medium’s story-editor image uploads (help.medium.com Using images — same 25 MB on paper, different surface; see compress-image-for-medium).
What this workflow handles
Treat the published cap as a shared budget across every attached and inline file in that message. Gmail Help (support.google.com/mail/answer/6584) documents a 25 MB limit for personal Gmail and says Workspace admins set work/school limits — Google Workspace Help (support.google.com/a/answer/166852) lists Business and Education sending attachment limits at 25 MB, with Enterprise Plus up to 50 MB on web Gmail only. Microsoft’s Outlook.com sending-limits page states a 25 MB attachment size limit and a 2 GB OneDrive-linked file option; the Outlook.com “Unable to attach files” article adds that the 25 MB ceiling includes message text plus inserted and attached files, and that resizing an image’s display size does not reduce file bytes. Prefer JPEG for photographs when the recipient’s client may reject WebP. Use Compress to KB with a target safely under your remaining headroom (for example under 5000 KB per photo when you plan several images inside a 25 MB message). compress-image-for-medium covers Medium Help story-editor images at 25 MB in .JPG/.JPEG/.GIF/.PNG with at least 1192 px width for all placement options — not Gmail/Outlook attachment totals or Drive/OneDrive substitution. compress-image-for-mailerlite covers MailerLite Help File manager and in-app campaign, site, and form image uploads (10 MB cap, 1024 KB campaign recommendation) — not Gmail or Outlook message attachment totals.
Use Compress to KB to set a per-photo budget under your email’s remaining headroom. For Medium’s 25 MB story-editor images (not message attachments), see Compress image for Medium. For format choice before you compress, read JPEG vs PNG vs WebP.
How to use it
- Open the sender’s official help page and note the published attachment cap (personal Gmail 25 MB; Outlook.com 25 MB; Workspace editions per admin / Workspace Help).
- Count every attached and inline file that will ride in the same message, leave headroom for the body text, and pick a per-image KB target under the remaining budget.
- Convert photographs to JPEG when clients may reject WebP; keep PNG for sharp graphics or required transparency.
- Upload each photo to Compress to KB, enter the per-image target, quality-sweep first, and downscale only if the quality floor still misses the budget.
- Re-sum the attachment bytes in the composer before send. If you still exceed the cap, drop a file, lower targets further, or switch that file to a Drive/OneDrive link per the platform docs.
Frequently asked questions
What is Gmail’s attachment size limit?
Gmail Help states that personal Gmail accounts have a 25 MB attachment limit. If the total attachment size exceeds that limit, Gmail removes the attachment and adds a Google Drive link instead. For work and school accounts, the Google Workspace administrator sets sending and receiving attachment limits — Workspace Help lists Business and Education at 25 MB sending, and Enterprise Plus up to 50 MB on web Gmail.
What is Outlook.com’s attachment size limit?
Microsoft’s Outlook.com sending-limits page states the file attachment size limit is 25 MB. You can also share a file from OneDrive; that article lists a 2 GB limit for OneDrive-linked files. The Outlook.com “Unable to attach files” article clarifies that the 25 MB email size limit includes all text, inserted images and attached files.
Does resizing an image in the email composer reduce the attachment size?
Not reliably. Microsoft’s Outlook.com attach troubleshooting page says resizing an image does not reduce its file size — you need to compress the file or attach a OneDrive link. Gmail can insert a Drive link automatically when the total exceeds 25 MB, which is a delivery change, not a smaller binary. Compress photos before compose when you need a real attachment under the published cap.
How should I pick a KB target for several photos in one email?
Start from the published message cap (25 MB on personal Gmail and Outlook.com), leave headroom for the message body and any other files, then divide the remaining budget across photos. Example: five photos inside a 25 MB message might each target under 4000–5000 KB so the sum stays comfortably under the cap. Enter that target in Compress to KB and re-check the sum before send.
JPEG, PNG or WebP for email photos?
Prefer JPEG for continuous-tone photographs when you need maximum client compatibility. PNG fits graphics or screenshots with sharp edges or transparency needs. Many email clients still handle JPEG and PNG more predictably than WebP; if a recipient’s client rejects WebP, the smaller WebP file never helps. Match the format to the content, then compress to the KB budget.
When should I use a Drive or OneDrive link instead of compressing?
When the file must stay original quality, is a video, or will still exceed the attachment cap after a reasonable quality sweep. Gmail Help documents automatic Drive linking above 25 MB; Outlook.com documents OneDrive sharing up to 2 GB for linked files. Compress when you need the bytes inside the message; use cloud links when fidelity or size makes that impossible.
Is Medium’s 25 MB image limit the same as Gmail’s 25 MB attachment cap?
Same megabyte number, different product. Medium Help — Using images documents story-editor uploads up to 25 MB in .JPG, .JPEG, .GIF, and .PNG, with at least 1192 px width for all placement options. Gmail Help and Outlook.com document 25 MB as a message attachment total that can include several files and may switch to Drive or OneDrive links — not Medium inline story images. See compress-image-for-medium for editor prep; this page covers email attachments.
How is this different from the general compress-to-KB guide?
The compress-image-to-kb guide covers hard byte budgets across forms, marketplaces and passport uploads (GOV.UK, LinkedIn, Shopify). This page isolates email attachment caps from Gmail Help and Outlook.com Support, including the shared-message budget and when platforms substitute cloud links. For Medium story-editor images at 25 MB (not message attachments), see compress-image-for-medium. For GitHub issue and PR screenshots, see compress-image-for-github (10 MB images/GIFs per GitHub Docs). For Discord chat attachments, see compress-image-for-discord (20 MB free per Discord Support). For Telegram Bot API inline photos, see compress-image-for-telegram (sendPhoto 10 MB per core.telegram.org). For LinkedIn share-box photos, see compress-image-for-linkedin (5 MB per LinkedIn Help). For Instagram Graph API 8 MB JPEG feed, Story, and Reels cover uploads, see compress-image-for-instagram. For X API 5 MB tweet_image/dm_image still images on Posts and DMs, see compress-image-for-twitter. For Notion Help 5 MB inline PNG/JPG display, see compress-image-for-notion. For WordPress Media Library uploads and the 2560 px big-image rule, see compress-image-for-wordpress. For Facebook photo upload size and PNG rules, see compress-image-for-facebook. For Pinterest web Image Pin uploads (20 MB), see compress-image-for-pinterest. For YouTube custom video and Shorts thumbnails (device-dependent MB caps), see compress-image-for-youtube. For Threads API 8 MB JPEG/PNG image posts (width 320–1440, aspect up to 10:1), see compress-image-for-threads. For Bluesky post embeds at 2,000,000 bytes per image blob (up to four images, alt required), see compress-image-for-bluesky. Same Compress to KB tool; different destination rules.
Sources
- Gmail Help — Send attachments with your Gmail message: https://support.google.com/mail/answer/6584?hl=en — Personal Gmail attachment limit 25 MB; over-limit attachments become Google Drive links; Workspace admins set work/school limits.
- Google Workspace Help — Gmail sending limits: https://support.google.com/a/answer/166852 — Workspace attachment sending limits: Business and Education 25 MB; Enterprise Plus up to 50 MB on web Gmail (Enterprise Standard 25 MB).
- Microsoft Support — Sending limits in Outlook.com: https://support.microsoft.com/en-us/outlook/sending-limits-in-outlook-com — Outlook.com file attachment size limit 25 MB; OneDrive-linked files up to 2 GB.
- Microsoft Support — Unable to attach files in Outlook.com: https://support.microsoft.com/en-us/office/unable-to-attach-files-in-outlook-com-9e1f02c0-ac68-4e7b-b6fe-7a4075976e42 — 25 MB email size includes text, inserted and attached files; resizing display size does not reduce file bytes; compress or use OneDrive.
- web.dev — Compress images: https://web.dev/articles/compress-images — Experiment with quality settings; there is no one universal compression setting.
- Pillow — Image.save (JPEG quality, optimize): https://pillow.readthedocs.io/en/stable/handbook/image-file-formats.html#jpeg — JPEG quality and optimize parameters used in the quality sweep behind Compress to KB.
Explore the compress to kb topic cluster
This guide covers email attachment caps. Related guides cover Medium story-editor image uploads, general KB budgets, LinkedIn share photos, Instagram Graph JPEG caps, Twitter / X still-image caps, Notion inline image caps, WordPress Media Library caps, Facebook Help photo upload caps, Pinterest web Image Pin caps, format choice, and balanced re-encode without a target.
Related guides
-
Compress image to KB
General hard byte-budget workflow for forms and marketplaces.
-
Compress images for Medium
Medium Help 25 MB story-editor images; ≥1192 px width for all placement options.
-
Compress images for beehiiv
beehiiv Help 5 MB post/media-library uploads, 1200×630 thumbnails; community posts up to 10 MB.
-
Compress images for Brevo
Brevo Help Content library 5 MB image uploads (formerly Sendinblue); 600 px layout and 400–650 px mobile width recommendations.
-
Compress images for Mailchimp
Mailchimp Help Content Studio 1 MB image uploads; legacy 600 px and new builder 660 px email widths.
-
Compress images for Kit
Kit Help 25 MB media-gallery uploads (formerly ConvertKit); form/LP size rows and email look-best 600 px guidance.
-
Compress images for Klaviyo
Klaviyo Help 10 MB email images with 1 MB load recommendation; form editor 5 MB; 600–1000 px full-width guidance.
-
Compress images for MailerLite
MailerLite Help 10 MB File manager cap, 1024 KB campaign recommendation; GIF 4 MB; campaign/site/form width rows.
-
Compress images for Substack
Substack Help recommended dimensions and formats for posts, 1100×220 PNG email banners, and ≥1200×630 social preview; no general post-image MB cap in cited Help.
-
Compress images for WhatsApp
Meta Cloud API 5 MB JPEG/PNG image-message cap.
-
Compress images for GitHub
GitHub Docs 10 MB cap for images and GIFs on issues and pull requests.
-
Compress images for Discord
Discord Support 20 MB free per-file upload cap.
-
Compress images for Telegram bots
Telegram Bot API sendPhoto 10 MB cap for inline bot photos.
-
Compress images for LinkedIn posts
LinkedIn Help 5 MB cap for share-box photo uploads.
-
Compress images for Instagram
Instagram Graph API 8 MB JPEG cap for feed, Story, and Reels cover.
-
Compress images for Twitter / X
X API 5 MB still-image cap for Posts and DMs (animated GIF 15 MB).
-
Compress images for Notion
Notion Help 5 MB cap for inline PNG/JPG display (all plans).
-
Compress images for WordPress
WordPress Media Library 2560 px big-image threshold and PHP upload_max_filesize limits.
-
Compress images for Facebook
Meta Help Center 15 MB photo uploads; keep PNG under 1 MB to avoid pixelation.
-
Compress images for Pinterest
Pinterest Help 20 MB web Image Pin max; BMP, JPEG, PNG, TIFF, WEBP.
-
Compress images for YouTube
YouTube Help custom thumbnails: 50 MB on desktop; 50 MB mobile video, 10 MB mobile podcasts; JPG or PNG.
-
Compress images for Threads
Threads API image posts: 8 MB max JPEG or PNG; width 320–1440 px, aspect ratio up to 10:1.
-
Compress images for Bluesky
Bluesky post embeds: 2 MB max per image blob (image/*); up to 4 images; alt text required.
-
JPEG vs PNG vs WebP
Pick a format email clients are likely to accept.
-
Compress to KB tool
Set a KB target and download a file under budget.
-
Image Compressor
Balanced default re-encode with no KB target.
All compress to kb guides
- Compress image to KB: hit a hard file-size limit
- Compress images for WhatsApp: hit the 5 MB image message cap
- Compress images for GitHub: hit the 10 MB image and GIF cap
- Compress images for Discord: hit the 20 MB free upload cap
- Compress images for Telegram bots: hit the sendPhoto 10 MB cap
- Compress images for LinkedIn posts: hit the 5 MB photo share limit
- Compress images for Instagram: hit the 8 MB JPEG upload limit
- Compress images for Twitter / X: hit the 5 MB image upload limit
- Compress images for Notion: stay under the 5 MB inline limit
- Compress images for WordPress: Media Library size and big-image rules
- Compress images for Facebook: file size and format before upload
- Compress images for Pinterest: hit the 20 MB web Image Pin cap
- Compress images for YouTube: custom thumbnail file-size limits
- Compress images for Threads: hit the 8 MB image post limit
- Compress images for Bluesky: hit the 2 MB post embed limit
- Compress images for TikTok: hit the 20 MB photo upload limit
- Compress images for Shopify: hit the 20 MB and megapixel upload limits
- Compress images for Mastodon: hit the 16 MB post attachment limit
- Compress images for Slack: byte size and inline preview limits
- Compress images for eBay: hit the 12 MB listing photo limit
- Compress images for Etsy: stay under the 1 MB upload reliability tip
- Compress images for Medium: hit the 25 MB story-editor limit
- Compress images for Google Business Profile: fit 10 KB–5 MB photo rules
- Compress images for Wix: Media Manager limits and practical upload ceilings
- Compress images for Webflow: 4 MB Assets limits and upload prep
- Compress images for Squarespace: 20 MB cap and 500 KB performance recommendation
- Compress images for Ghost: Ghost(Pro) plan caps (5 MB–1 GB) and self-hosted 50 MB nginx default
- Compress images for Gumroad: 50 MB cover limit and thumbnail prep
- Compress images for beehiiv: 5 MB newsletter uploads, 1200×630 thumbnails, and 10 MB community posts
- Compress images for Mailchimp: 1 MB Content Studio uploads, 1024 KB targets, and legacy vs new builder widths
- Compress images for Kit: smaller-than-25 MB gallery, form/LP sizes, and email look-best width
- Compress images for Klaviyo: 10 MB email ceiling, 1024 KB load targets, form 5120 KB, and full-width dimensions
- Compress images for MailerLite: 10 MB File manager, 1024 KB campaign prep, GIF 4 MB, and width rules
- Compress images for Brevo: 5 MB Content library, layout widths, and HTML/attachment contrast
- Compress images for Substack: official sizes, PNG email banners, and dimension-first prep
- Compress images for Google Ads: 5120 KB JPG/PNG assets, aspect ratios, and surface-specific rows