How to Save Gmail Attachments to Google Drive Folders in 2026

Tired of digging through email for files? Save Gmail attachments to Google Drive in one click, then send them to the right folder automatically.

Adeola Adeoti9 min read

To save a Gmail attachment to Google Drive, open the email, hover over the attachment and click the Add to Drive icon. Then move the file into the folder you want from Drive with Organize and Move. To file attachments automatically, label the emails with a Gmail filter and let a small Apps Script or a Zapier workflow copy the files into a set folder.

Files that live only in email have a way of disappearing right when someone asks for them. The signed agreement is in a thread with a vague subject line, the invoice came from a no-reply address, and the photo you need is buried under forty replies. This guide covers the one-click save on a computer and phone, why some attachments won't save, and three ways to get attachments into the right Drive folder without doing it by hand every time.

Ways to get Gmail attachments into Drive

Method

Best for

Automatic?

Cost

Add to Drive button

The odd file you want to keep

No

Free

Gmail filter plus a label

Spotting which emails need filing

Labels only

Free

Google Apps Script

Filing labeled emails into one folder on a schedule

Yes

Free

Zapier

Filing without code, or per-client folders

Yes

Free plan for two-step Zaps; paid for more

How to save a Gmail attachment to Google Drive on a computer

In Gmail on the web, you save an attachment to Drive with the Add to Drive icon that appears when you hover over it. Google's Gmail help page gives these steps:

  1. Open Gmail in your browser.
  2. Open the email with the attachment.
  3. Hover over the attachment below the message text.
  4. Click the Add to Drive icon. It has no text label, so hover to find it.

Each attachment is saved on its own, so an email with five PDFs takes five clicks. The help page doesn't describe a folder picker, so the quickest way to get the file where it belongs is to move it in Drive afterward.

How to move the saved file into the right Drive folder

Moving a file in Google Drive takes a right-click: Organize, then Move. From Google's Drive help page on organizing files:

  1. Go to drive.google.com.
  2. Right-click the file.
  3. Click Organize, then Move.
  4. Pick an existing folder, or create a new one.
  5. Click Move.

Dragging the file onto a folder works too. If you want the same file to show up in two places, say a client folder and a shared "Contracts" folder, use Organize and Add shortcut instead of saving a second copy. Deleting a shortcut doesn't delete the original.

How to save an attachment to Drive on iPhone or iPad

On an iPhone or iPad, open the attachment in Gmail and tap Save to Drive. Google's iPhone and iPad steps:

  1. Open the Gmail app and the email.
  2. Tap the attachment to open it.
  3. At the top right, tap Save to Drive.
  4. Wait for the Saved to Drive confirmation.

How to save an attachment to Drive on Android

On Android, the Gmail help page says to open the message and tap the Save to Drive icon on the attachment. On either phone, open the Drive app afterward to move the file into its folder.

Why can't I save an attachment to Google Drive?

Gmail won't add every attachment to Drive. Google's help page says certain attachments can't be added, and the usual causes are below, with the fix for each.

Common reasons an attachment won't save to Drive

What you see

Likely reason

What to do

No Add to Drive icon on a picture

The image is inside the message body, not attached

Download the image, then upload it to Drive

Can't download or copy anything

The sender used confidential mode

Ask the sender for the file another way

A Drive link instead of a file

The file was over Gmail's 25 MB attachment limit

Open the link and make your own copy (a shortcut breaks if the sender deletes the file)

The save fails or spins

A browser problem

Try a supported browser, turn off extensions one at a time, then clear cache and cookies

The Drive link case catches people out. Google's attachment help page says that when a personal Gmail message goes over 25 MB, Gmail removes the attachment and adds it as a Google Drive link instead. That file sits in the sender's Drive, not yours, so if they later delete it or change the sharing, your link stops working. For anything you need to keep, make your own copy.

How to send attachments to the right Drive folder automatically

Automatic filing works in two parts: a Gmail filter decides which emails count, and a script or automation tool copies their attachments into Drive. Getting the first part right matters more than the tool you pick, because a loose rule fills your folder with logos and calendar invites.

Label the emails with a Gmail filter

A Gmail filter can put a label on every email that matches a search, as it arrives. Google's filter help page gives the steps on a computer:

  1. In Gmail, click Show search options in the search box at the top.
  2. Enter what the emails have in common. Click Search to check the results look right.
  3. Click Create filter below the search fields.
  4. Choose to apply a label, and create a new one, such as to-drive.
  5. Click Create filter again to save it.

The search is the rule, so write it with Gmail's search operators. These are the ones that matter for attachments:

  • has:attachment finds emails with any attachment.
  • filename:pdf narrows it to one file type; filename:invoice matches a word in the file name.
  • from:billing@example.com limits it to one sender.
  • larger:5M finds only emails bigger than 5 MB, handy when you're after big files.
A filter search for receipts and invoices
has:attachment filename:pdf (from:billing@example.com OR from:accounts@example.org)

The first time my accountant asked for a year of receipts, I spent an evening searching threads for PDFs from a dozen vendors. Now one filter labels those emails the day they arrive, and the folder is ready before anyone asks. I keep the filter narrow on purpose: a named list of senders plus filename:pdf, rather than every email with an attachment.

Save Gmail attachments to Drive with Google Apps Script (free)

Google Apps Script can copy the attachments from every labeled email into one Drive folder on a schedule, at no cost. It runs on Google's servers under your account, so your computer doesn't need to be on. The script below uses methods from Google's reference pages for Gmail messages, Gmail threads and Drive folders.

  1. Create the Drive folder you want the files in and open it. Copy its ID: the string after /folders/ in the address bar.
  2. Go to script.google.com and click New project.
  3. Replace the sample code with the script below, and paste your folder ID where it says paste-your-folder-id-here.
  4. Click Run once. Google asks you to authorize the script to read your Gmail and write to your Drive.
  5. Check the folder. If the files are right, set up the trigger below so it runs on its own.
Apps Script: save labeled attachments to one folder
// Saves attachments from Gmail threads labeled "to-drive" into one Drive folder,
// then swaps the label to "saved-to-drive" so the next run skips that thread.
const FOLDER_ID = 'paste-your-folder-id-here';
const TODO_LABEL = 'to-drive';
const DONE_LABEL = 'saved-to-drive';

function saveLabeledAttachments() {
  const folder = DriveApp.getFolderById(FOLDER_ID);
  const todo = GmailApp.getUserLabelByName(TODO_LABEL);
  const done = GmailApp.getUserLabelByName(DONE_LABEL) || GmailApp.createLabel(DONE_LABEL);
  const threads = GmailApp.search('label:' + TODO_LABEL, 0, 20);

  threads.forEach(thread => {
    thread.getMessages().forEach(message => {
      message.getAttachments({ includeInlineImages: false }).forEach(file => {
        folder.createFile(file.copyBlob());
      });
    });
    thread.removeLabel(todo).addLabel(done);
  });
}

The script saves only real attachments. The option includeInlineImages: false skips pictures that sit inside the message body, such as logos in email signatures. Google's reference says inline images are included unless you turn them off. When I first ran a version without it, the folder filled with tiny company logos next to the invoices I actually wanted, which is why I now run any new script by hand once before scheduling it.

Make it run on a schedule

A time-driven trigger runs the script for you, whether or not you're at your computer. From Google's triggers guide:

  1. In the Apps Script project, click Triggers (the alarm clock icon) on the left.
  2. Click Add Trigger at the bottom right.
  3. Choose saveLabeledAttachments as the function and a time-driven event, such as every hour.
  4. Click Save.

Apps Script has no trigger for "new email arrived", so a schedule is the way to do it. Google says a run can start at any point within the hour you picked, and that you get an email summary if a run fails. Hourly is plenty for receipts and contracts.

Limits to know before you rely on it

  • Run time: each run can last 6 minutes, and triggers on a personal Gmail account get 90 minutes a day in total (6 hours on Google Workspace), per Google's Apps Script quotas. The script handles 20 threads per run to stay well inside that.
  • Threads, not emails: the script saves every attachment in a labeled thread. If a new reply arrives in a thread it already handled and your filter labels it again, the older attachments are saved a second time.
  • One folder: this version files everything into one place. Sorting by sender or client means more code, or a tool built for it.

Save Gmail attachments to Drive with Zapier (no code)

Zapier connects Gmail to Google Drive without code: its Gmail New Attachment trigger and Google Drive Upload File action copy each new attachment into a folder you choose. Other Gmail triggers include New Labeled Email, which pairs well with the label filter above.

The cost depends on how clever the filing needs to be. Zapier's pricing page puts the Free plan at 100 tasks a month and two-step Zaps only, checking for new data every 15 minutes. "New attachment, upload to this folder" fits in two steps. Choosing a different folder per client, renaming files or adding a fallback folder needs a multi-step Zap, and those start on the Professional plan at $19.99 a month billed yearly, or $29.99 month to month.

Check the task count first

Every file Zapier copies uses a task. A busy inbox with a broad filter can burn through 100 tasks a month quickly, so start with the narrow label rule above and watch the count for a week.

The best folder structure is the one you can guess without looking. I keep one folder per client, with a subfolder per year, and name files with the date first so they sort by date: 2026-09 Proposal v2.pdf, then 2026-10 Signed agreement.pdf. When a signed contract came back from a client last quarter, it took a few seconds to file because the folder already existed and the name followed the same pattern.

  • Make the folders before the files arrive. An automation can only file into a folder that exists.
  • Keep a catch-all. One "Incoming" folder for anything that doesn't match a rule, emptied once a week.
  • Share the folder, not the files. If an assistant or accountant needs access, share the folder once and every new file follows.
  • Use shortcuts for files that belong in two places, so there's one copy to update.

Do attachments saved to Drive use more storage?

Yes. A file saved from Gmail to Drive is a second copy, and both count toward your Google storage. Google's storage help page says Gmail messages and attachments (including Spam and Trash) and Drive files all share one quota. Each account includes up to 15 GB, and Google says accounts created from March 9, 2026 start with 5 GB and can unlock 10 GB more by verifying a phone number.

If storage is tight, the copy in Drive is the one worth keeping, since it's organized and searchable by folder. Clearing out the original email is a judgment call: I keep the email when the thread around a file matters, such as a contract where the replies record what was agreed.

Get a nudge when the file you're waiting for lands

If you're waiting on one particular attachment, such as a signed agreement or a final invoice, Merlin can watch for it. It's a Mac app that reads your connected Gmail and messages you in its chat window. Set up a routine that runs when an email arrives from that person and sends you a short message in chat, so you can file it while it's fresh. Merlin doesn't move files into Drive for you; the filter and script above handle that part.

Get Merlin

Frequently asked questions

How do I save all attachments from a Gmail email to Drive at once?

Gmail's help pages describe saving each attachment separately with the Add to Drive icon. To save every attachment from many emails at once, label them and use an Apps Script or a Zapier workflow.

Where do Gmail attachments go when I click Add to Drive?

They're saved to your Google Drive. Open drive.google.com to find the file, then use Organize and Move to put it in the folder you want.

Can Gmail automatically save attachments to a Google Drive folder?

Not on its own. A Gmail filter can label the emails as they arrive, and an Apps Script on a time-driven trigger or a Zapier Zap can then copy the attachments into a Drive folder.

Why is there no Add to Drive option on an attachment?

Google says some attachments can't be added to Drive. Images inside the message body aren't attachments at all. Confidential-mode emails block downloads. Download the file and upload it to Drive, or ask the sender for a copy.

Is it free to save Gmail attachments to Google Drive?

Yes, the Add to Drive button and Apps Script are free, though the saved files count toward your Google storage. Zapier's Free plan covers simple two-step Zaps up to 100 tasks a month.

you scrolled all the way down here

your next free moment starts in three minutes

getting started takes three minutes. sign in, and i'm on your to-dos, starting with who's waiting on you

you decide what comes after

Download for Mac Free forever. No credit card.