How to Fix Gmail ‘Attachment Size Exceeds Limit’ Error When Under 25MB

Attempting to attach a document, archive, or media file to a Gmail message only to receive an alert stating that the file exceeds the 25MB attachment limit can be confusing when local file properties confirm the file size is only 19MB or 20MB. While Google advertises a maximum inbound and outbound attachment allowance of 25 megabytes, technical transmission requirements often inflate data volume. This discrepancy stems from Base64 MIME encoding overhead, accumulated draft attachments, browser caching conflicts, or hidden inline images embedded in your rich text email signature.

Understand the Base64 MIME Encoding Overhead

Internet email standards rely on the Multipurpose Internet Mail Extensions (MIME) protocol, which converts binary files into plain 7-bit ASCII text via Base64 encoding. This encoding process expands the data payload by approximately 33 to 37 percent.

  • A local 20MB file expands to approximately 27MB once encoded into standard MIME headers and ASCII packets.
  • To guarantee that an email stays strictly beneath the 25MB threshold after encoding, total raw file attachments must not exceed 18MB to 18.5MB.
  • If you need to send files between 18MB and 25MB without compression losses, share them directly via Google Drive links embedded inside the compose window.

Insert Files Directly via Google Drive

Google provides native integration between Gmail and Google Drive, allowing senders to share files up to 10 gigabytes without triggering MIME encoding constraints.

  1. In the Gmail compose window, click the Google Drive icon located on the bottom toolbar (next to the paperclip attachment icon).
  2. If the file is already uploaded to your Drive storage, select it under the My Drive tab.
  3. If the file resides locally on your computer, switch to the Upload tab and drag the file into the upload zone.
  4. In the bottom right corner of the Drive insertion dialogue, ensure Drive link is selected.
  5. Click Insert. When sending the email, Gmail will prompt you to set appropriate viewing or editing permissions for the recipient.

Clear Accumulated Drafts and Inline Signature Media

Gmail calculates total email size by combining all inline images, embedded logos in signatures, draft revisions, and attached files within the active message thread.

  1. Inspect your automated email signature. High-resolution PNG logos or photographs pasted directly into signature settings consume substantial bandwidth.
  2. Navigate to Settings (gear icon) > See all settings > General.
  3. Scroll to the Signature section and verify that signature images are hosted externally or scaled down to minimal thumbnail dimensions.
  4. If composing a reply within a long conversation thread, click the three-dot icon at the bottom of the composer to show trimmed content. Previous message history and past inline screenshots contribute directly to total message size limits.
  5. Discard bloated drafts by clicking the trash can icon in the compose window and begin a clean, separate message.

Clear Browser Cache and Disable Upload Interceptors

Corrupted browser cache files or browser add-ons that scan outgoing payloads can prematurely interrupt web socket uploads.

  1. Open a new browser window in Incognito or Private mode.
  2. Log in to Gmail and attempt attaching the file again.
  3. If the upload completes successfully without size warnings, clear your standard browser cache:
    • In Google Chrome, press Ctrl + Shift + Delete (or Cmd + Shift + Delete on macOS).
    • Set the time range to All time, check Cached images and files, and click Clear data.
  4. Temporarily disable third-party antivirus web shields or ad blockers that monitor HTTP POST uploads.

Compress Binary Files into Multi-Part Archives

If the recipient cannot access Google Drive links due to strict enterprise firewalls, splitting or compressing the data bypasses upload restrictions.

  • Right-click the target file, select Compress to ZIP file on Windows 11, or use 7-Zip / PeaZip to apply maximum LZMA2 compression.
  • If the archive remains over 18MB, use 7-Zip to split the archive into numbered volumes (e.g. 15MB chunks) and send them across separate emails.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.