Why Gmail Blocks Some Attachments (and Fixes)
In this article
Gmail blocks attachments for two main reasons: the file type is on its prohibited list (like .exe, .bat, or .js) or the file exceeds the 25 MB size limit. Google also scans attachments for malware and may block files it flags as dangerous. To send a blocked file, compress it into a .zip or .rar archive (if the file type allows), or share it via Google Drive instead of attaching it directly.
What You'll Need
- A Gmail account (personal or Google Workspace).
- The file you want to send, and knowledge of its extension (e.g., .exe, .pdf, .zip).
- Access to Google Drive (included with your Gmail account) if you need to share large or blocked files.
- A computer or mobile device with a browser or the Gmail app.
Step-by-Step
- Check the file extension. Gmail blocks certain file types outright. Common blocked extensions include .exe, .bat, .cmd, .com, .msi, .scr, .js, .jar, .vbs, and .ps1. If your file ends in one of these, Gmail will reject it. Note that Google occasionally updates this list, so if a file is blocked and you are unsure why, search for “Gmail blocked file types” in Google's official help.
- Check the file size. Gmail allows attachments up to 25 MB per message (including all attachments combined). If your file is larger, Gmail will not send it. You can check the file size in your file manager (right-click > Properties on Windows, or Get Info on Mac).
- If the file type is blocked, try archiving it. Compress the file into a .zip or .rar archive using your operating system's built-in tools (right-click > Compress on Mac, or Send to > Compressed (zipped) folder on Windows). Gmail generally allows .zip and .rar attachments, but note that if the archive contains a blocked file type, Gmail may still block it. Also, some security software may flag archives, so only send files you trust.
- If the file is too large, use Google Drive. Upload the file to Google Drive (drive.google.com), right-click the file, and choose “Share.” Set the sharing permission to “Anyone with the link” (or specific people), then copy the link and paste it into your Gmail message. This bypasses the 25 MB limit entirely.
- For blocked file types that cannot be archived (or if archiving fails), use Google Drive. Upload the file to Drive and share the link as described above. This is the most reliable workaround for prohibited file types.
- Scan the file for malware before sending. Even if Gmail allows the file type, it may block it if it detects a virus. Use your own antivirus software to scan the file. If it is infected, do not send it; clean or delete it.
- Try sending the attachment again. After making adjustments, compose a new email, attach the file, and send. If it still fails, check the error message Gmail gives you—it often specifies whether the issue is size or file type.
- If you are on a mobile device, consider using the Gmail app's built-in Drive sharing. In the Gmail app, when composing, tap the attachment icon and choose “Insert from Drive” to share a Drive file instead of attaching it directly. This works on both Android and iOS.
Common Mistakes
- Renaming a blocked file extension. Changing .exe to .txt does not bypass Gmail's scan; Gmail inspects file content, not just the name. It will still block the file, and you may confuse the recipient.
- Assuming all archives are allowed. Gmail blocks some archive types (like .7z) and may block archives containing prohibited files. Stick to .zip or .rar for best compatibility.
- Forgetting the total message size limit. The 25 MB limit includes the email body and all attachments. A 24 MB file plus a long signature might push you over.
- Using third-party “unblock” services. These often violate Gmail's terms and can compromise security. Stick to official methods: archiving or Google Drive.
- Not checking the recipient's email provider. Even if Gmail sends the file, the recipient's provider (e.g., Outlook) might block it. Consider sharing via Drive to avoid this.
Tips
- Use Google Drive for large files regularly. It is integrated with Gmail and avoids attachment limits.
- Compress files before sending to reduce size and potentially avoid blocking (though blocked types remain blocked).
- Check Gmail's official help page for the current list of blocked file types, as it can change.
- When sharing via Drive, set an expiration date for the link if you want to limit access.
- For business accounts (Google Workspace), administrators can customize attachment rules, so check with your IT department if you are unsure.
Troubleshooting
- Gmail says “File is not allowed” or “Blocked for security reasons”: The file type is prohibited. Archive it or use Google Drive.
- Gmail says “Attachment exceeds the maximum size”: The file is over 25 MB. Use Google Drive or compress it (if compression reduces size below 25 MB).
- The attachment sends but the recipient does not receive it: The recipient's email provider may have blocked it. Ask them to check their spam folder or use Google Drive instead.
- You cannot upload to Google Drive: Check your storage quota. Free accounts have 15 GB shared across Gmail and Drive. Delete unnecessary files or upgrade storage.
- The file is blocked even after archiving: The archive may contain a blocked file. Extract the archive, remove the prohibited file, and re-archive. Or share the original file via Drive.
- You are using a work or school account and cannot send attachments: Your administrator may have restricted attachment types. Contact your IT support.
Frequently Asked Questions
Can I send .exe files through Gmail?
No, Gmail blocks .exe and many other executable file types for security reasons. You must use Google Drive or another file-sharing service.
What is the maximum attachment size in Gmail?
25 MB per message, including all attachments. For larger files, use Google Drive.
Does zipping a blocked file work?
Sometimes, but Gmail may still block archives containing prohibited file types. It is not guaranteed. Google Drive is more reliable.
Why does Gmail block certain attachments?
To protect users from malware and viruses. Executable files are commonly used to distribute malicious software.
Can I send a .zip file with an .exe inside?
Gmail may block it. The safest approach is to share the file via Google Drive with a link.
Is there a way to bypass Gmail's attachment restrictions?
Only official methods: archiving (if allowed) or using Google Drive. Do not use unofficial workarounds, as they may violate terms and risk security.