
Table of Contents
Introduction:
When sending emails through webmail services like Gmail, Outlook, or Yahoo, attachments play a key role in sharing documents, images, and other files. But not all file types are allowed as attachments due to security concerns and compatibility issues. Knowing which file extensions you can safely attach in webmail can save time and ensure your files reach their intended recipient. In this guide, we’ll explore the most common file extensions supported by webmail services and why certain types are restricted
What is webmail?
Webmail is a type of email service that allows users to access their email accounts through a web browser, rather than using a desktop email client like Microsoft Outlook or Mozilla Thunderbird. With webmail, emails are stored on the service provider’s servers, and users can send, receive, and manage their email directly from any device with an internet connection.
Since webmail is browser-based, it is convenient for users who need access to their emails from multiple devices without needing to install specific software.
What are file extensions?
A file extension is a suffix at the end of a file name, typically consisting of a period (.) followed by a few letters or numbers. It indicates the file type and helps the operating system or software understand which application should be used to open or execute the file.
Example:
- document.txt – The file has a
.txt
extension, indicating it’s a plain text file. - photo.jpg – The file has a
.jpg
extension, meaning it’s an image in the JPEG format. - presentation.pptx – The
.pptx
extension shows it’s a Microsoft PowerPoint presentation.
Importance of File Extensions:
- Identifies the File Type: Extensions tell the operating system what kind of file it is (e.g., image, document, video).
- Determines Associated Program: When you double-click a file, the system uses the extension to determine which application should open the file (e.g.,
.docx
opens with Microsoft Word). - Security: File extensions can also alert users to potential risks (e.g.,
.exe
files are executable and may carry malware).
Common File Extensions:
- Documents:
.docx
,.pdf
,.txt
,.xlsx
- Images:
.jpg
,.png
,.gif
,.bmp
- Audio:
.mp3
,.wav
,.ogg
- Video:
.mp4
,.avi
,.mov
- Compressed:
.zip
,.rar
,.7z
- Executable:
.exe
,.bat
,.sh
Each extension helps ensure the file is handled properly by the system or application.
The file extension can be attached in webmail
In webmail, users can attach a wide variety of file types, but the types of file extensions allowed for attachments can depend on the email service provider and security policies. Here are some commonly allowed file extensions:

1. Document Files:
- .doc, .docx (Microsoft Word)
- .pdf (Portable Document Format)
- .txt (Plain Text)
- .rtf (Rich Text Format)
- .odt (OpenDocument Text)
- .xls, .xlsx (Microsoft Excel)
- .ppt, .pptx (Microsoft PowerPoint)
- .csv (Comma-Separated Values)
2. Image Files:
- .jpg, .jpeg (JPEG Image)
- .png (Portable Network Graphics)
- .gif (Graphics Interchange Format)
- .bmp (Bitmap Image)
- .tiff (Tagged Image File Format)
- .svg (Scalable Vector Graphics)
3. Audio Files:
- .mp3 (MPEG Audio Layer III)
- .wav (Waveform Audio)
- .m4a (MPEG-4 Audio)
- .ogg (Ogg Vorbis Audio)
4. Video Files:
- .mp4 (MPEG-4 Video)
- .avi (Audio Video Interleave)
- .mov (Apple QuickTime Movie)
- .wmv (Windows Media Video)
- .mkv (Matroska Video)
5. Compressed Files:
- .zip (ZIP Compressed File)
- .rar (RAR Compressed File)
- .7z (7-Zip Compressed File)
- .tar (Tape Archive)
- .gz (Gzip Compressed File)
6. Executable and Script Files:
- .exe (Windows Executable)
- .bat (Batch File)
- .sh (Shell Script)
- .js (JavaScript)
- .py (Python Script)
However, many webmail providers block certain types of executable files (e.g., .exe
, .bat
, .js
) due to security concerns, as these file types can carry malware. If these types of files are allowed, they may need to be compressed into .zip
or other archive formats to pass through the email provider’s filters.
It’s always a good idea to check the specific policies of the webmail service being used.
The file extension cannot be attached in webmail
Certain file extensions are typically restricted or blocked from being attached in webmail services due to security concerns, as they can carry malicious software or pose a risk to the recipient’s device or network. These files often include executable or script-based formats that can potentially be used to install malware, viruses, or ransomware. Here are some common file extensions that cannot be attached in webmail:

- Executable files:
.exe
,.bat
,.com
,.msi
- Script files:
.js
,.vbs
,.sh
,.ps1
- Macro-enabled documents:
.docm
,.xlsm
,.pptm
- Dynamic-link libraries:
.dll
- Self-extracting archives:
.iso
,.dmg
,.zip
(if containing executables) - Other risky formats:
.scr
,.jar
,.pif
,.reg
These restrictions protect users from potential malware attacks.
Why These Files Are Blocked:
Email attachments are a common method for delivering malware, and webmail services block these risky file types to protect users. Even when compressed or embedded in other formats, these files can still pose a security risk, which is why many providers have strict filtering policies.
Workaround:
If you need to share blocked files for legitimate purposes, you can try:
- Compressing the files (though some providers still scan inside the archive).
- Renaming the file extension (e.g., changing
.exe
to.txt
and instructing the recipient to rename it back). - Using cloud storage services like Google Drive or Dropbox to share a link to the file instead.
Conclusion:
Understanding the file extensions supported by webmail services helps ensure that your attachments are delivered without issues and keeps both your account and your recipient safe from potential security threats. While common formats like PDFs, images, and compressed files are widely accepted, it’s important to be mindful of executable or script files that may be blocked due to security risks. By sticking to the supported file types and following your provider’s attachment guidelines, you can make email communication smoother and more secure.