Shubham Dixit, email migration and data file expert

Written by Jennifer Walsh. Reviewed for technical accuracy by Shubham Dixit, Independent Expert in Email Forensics and Data File Conversion.

Shubham is an independent external reviewer and not an employee of PCDOTS.

Quick answer. Gmail lets you download attachments from one email at a time, but has no built-in way to pull them from many emails at once. To extract attachments from Gmail in bulk you use Thunderbird to save from selected messages, a script, or an extractor tool that filters by sender, date or type. Gmail needs an app password for these.

One email is easy, many is the problem

It helps to be clear about what Gmail can and cannot do here, because it explains why you are searching in the first place. From a single email, Gmail is fine, you can download an attachment, or use its Download all attachments option to get everything in that one message as a zip. The wall you hit is across many emails, Gmail has no built-in way to pull the attachments from a whole set of messages at once.

That gap is what all the bulk routes below fill. If you only need a message or two, use Gmail itself. For attachments spread across dozens or hundreds of emails, you reach for a mail client, a script, or an extractor tool.

what Gmail does on its own One email, download workssave one, or all in that message as a zip Many emails, no bulk buttonGmail cannot do this natively A bulk routeclient, script or tool Folder ofattachments

One email Gmail handles, many emails need a bulk route to a folder.

“The confusion is that Gmail does let you download attachments, just only within one email at a time, so people assume they are doing something wrong when they cannot do a whole mailbox. They are not, there is simply no bulk button. Once you accept that, the fix is to connect Gmail over IMAP, with an app-specific password since the old password method is gone, and let a client or a tool walk the messages and save the attachments out.” Shubham Dixit, Email Data reviewer (draft, pending approval)

From a single email, free

If you only need the attachments from one message, or a few, stay in Gmail, nothing else needed. Open the email, and either hover over an attachment and click the download arrow, or use Download all attachments to save everything in that message as a single zip. Repeat per email. It is instant for a handful and simply does not scale to many, which is the next section.

The app password for bulk

Every bulk route connects to Gmail over IMAP, and that needs a small bit of setup first. Since Gmail retired the old less secure apps setting, a mail client or tool cannot sign in with your normal password. With 2-step verification on, generate an app-specific password in your Google account security, and use that. The Gmail IMAP server is imap.gmail.com, port 993, with SSL.

Bulk for free, Thunderbird or Takeout

Two free routes cover most bulk needs, one hands you loose files, the other hands you an archive to unpack.

Thunderbird. Add Gmail as an IMAP account with the app password, open a folder, and select the messages you want, a range or the whole folder. Right-click and choose to save or detach the attachments, or use the free ImportExportTools NG add-on, and Thunderbird writes the attachments from all the selected emails into one folder. This is the closest thing to a free bulk extractor.

Google Takeout. Takeout exports your Gmail for free, but as an MBOX file with the attachments embedded inside it, not as loose files. So it gets everything out in one go, then you extract the attachments from that MBOX with a tool or a script. Good for a full backup, an extra step if you want the files on their own.

If you code, a short script over IMAP does it directly, walk the messages with Python’s email module, write each attachment part to a folder, and filter by sender, date or file type as you go.

Bulk the simple way, a tool

If you want the attachments from many emails as plain files without scripting or unpacking an MBOX, an extractor does it in a few clicks. It connects to Gmail over IMAP and saves the attachments from the messages you choose into a folder. The PCDOTS Gmail Converter signs in with your app password, shows your folders, and its Extract Attachments option pulls the files from the selected emails, with filters for date, sender or folder so you save only what you need. It runs on Windows and keeps the files organised as it saves. A free version handles the first ten items per folder so you can test it first.

Many emailsacross the mailbox Filterby senderby dateby file type Folder of attachmentsjust the files you wanted

A bulk extractor filters the mailbox down to just the attachments you want.

Here are the steps with the screens.

Step 1. Install and run the software on Windows, then open the menu.

Run the Gmail attachment extractor

Step 2. Choose Email Account, Add Account, and sign in with your Gmail address and app password.

Add the Gmail account

Step 3. Select the emails or folder, then open Extract and choose Attachments.

Choose the extract attachments option

Step 4. Choose a destination folder and Save to pull the attachments.

Choose the destination and save the attachments

For related jobs see our guides to extract attachments from EML files and download attachments from Yahoo, and to pull addresses instead, extract email addresses from Gmail.

Free Download
Buy Now

The methods compared

Match the route to how many emails hold the attachments you need.

Method Best for Good to know
Gmail download all, one email A message or two, free A zip per email, no bulk
Thunderbird, save selected Bulk, free App password, saves loose files
Google Takeout A full backup, free Attachments embedded in MBOX
Gmail extractor tool Bulk, filtered, no scripting Windows, filter by date or sender

Frequently asked questions

Can I download attachments from multiple Gmail emails at once?
Not with Gmail on its own, it works one email at a time. For many emails, use Thunderbird to save from selected messages, or an extractor tool over IMAP.

Does Gmail have a bulk attachment download?
No. Gmail can download all attachments from a single message as a zip, but there is no button to pull attachments across a whole set of emails.

Why will Thunderbird or a tool not accept my Gmail password?
Gmail no longer allows a normal password from outside apps. Turn on 2-step verification, generate an app-specific password, and use that with imap.gmail.com.

Can I get attachments from only certain senders or dates?
Yes, with a tool or a script. An extractor can filter by sender, date or file type, so you save just the attachments you want.

Does Google Takeout give me the attachment files?
Not directly. Takeout exports an MBOX with the attachments embedded, so you still extract them from that file afterward with a tool or script.

Will extracting attachments delete them from Gmail?
No. Every method here copies the attachments out and leaves your Gmail messages and their attachments in place.

Pick the route that fits how many emails

My advice is to size the method to the job. For a message or two, do not overthink it, open the email in Gmail and use Download all attachments. For attachments scattered across many emails, set up the app password once, then let Thunderbird save from your selected messages for free, or point an extractor at the mailbox and filter down to the senders, dates or file types you care about. Google Takeout is there when you want a full backup and do not mind unpacking the MBOX. Choose by volume, and the attachments you have been unable to gather come out as a tidy folder of files.

Shubham Dixit

Reviewed by Shubham Dixit

Independent Expert in Email Forensics and Data File Conversion. Shubham reviewed this guide for technical accuracy. He is an independent external reviewer and not an employee of PCDOTS.

Profile  |  LinkedIn