AutoFileEmail
    IntegrationsSolutionsComparePricingFAQBlog
    Sign inConnect Drive
    1. Blog
    2. Save Gmail Attachments to Google Drive Automatically (2026 Guide)
    On this page
    Why this is a problem worth fixingOption 1: Gmail's built-in "Save to Drive"Option 2: Gmail filtersOption 3: Zapier or IFTTTOption 4: Google Apps ScriptOption 5: Auto-file by sender domainWhat about per-email fees?Setup, end to endWhat about Outlook? iCloud? IMAP?The bottom line

    Save Gmail Attachments to Google Drive Automatically (2026 Guide)

    MMitchel Kelonye
    •
    May 5
    •
    Gmail
    Google Drive
    Automation
    How To

    Guide to automatically saving Gmail attachments to Google Drive in 2026 with Studio Ghibli-inspired coziness

    It's a Sunday in April. You're trying to do your taxes.

    You search Gmail for has:attachment from:stripe. 47 results. You click the first one. Right-click the PDF. "Save link as." Pick a folder. Rename the file because Stripe calls every invoice invoice.pdf. Switch to Drive. Drag it in. Click into the next email.

    You do this 46 more times. Then you do it again for AWS. Then for Notion. Then for the Adobe sub you forgot about.

    Three hours later you've filed maybe 80 attachments and your back hurts.

    There's a better way. Actually, there are several. Most of them are bad. One is good. Here's the full picture.


    Table of Contents

    • Why this is a problem worth fixing
    • Option 1: Gmail's built-in "Save to Drive"
    • Option 2: Gmail filters
    • Option 3: Zapier or IFTTT
    • Option 4: Google Apps Script
    • Option 5: Auto-file by sender domain
    • What about per-email fees?
    • Setup, end to end
    • What about Outlook? iCloud? IMAP?
    • The bottom line

    Why this is a problem worth fixing

    The average solo founder gets receipts from 15 to 30 vendors a year. Stripe payouts. AWS bills. Cursor, Linear, Notion, Vercel, Adobe, Figma, GitHub, Postmark, Resend, Cloudflare, every domain registrar you've ever used.

    Each one mails you a PDF. Each PDF is one click away from being filed. But "one click" times "30 vendors" times "12 months" is 360 clicks a year just to keep your invoices in Drive.

    Nobody does that. So nobody has their invoices in Drive. So everybody scrambles in April.

    The goal is simple: when an email with a PDF attachment lands in Gmail, the PDF should automatically end up in a Drive folder. Organized so you can find it later. Without you doing anything.

    Sounds basic. Ends up being weirdly hard.

    Frustrated founder with Gmail inbox clutter showing has:attachment from:stripe

    Option 1: Gmail's built-in "Save to Drive"

    Gmail does have a "Save to Drive" button. Hover over an attachment, it appears.

    Two problems.

    First, it's manual. You still have to open every email. We're back to 360 clicks.

    Second, it dumps everything into one folder by default. So your Drive ends up with 400 files named invoice.pdf, invoice (1).pdf, invoice (2).pdf, all in My Drive. Useless.

    You can move them around manually. But then you're sorting files by hand, which is the original problem in a different shirt.

    Option 2: Gmail filters

    Gmail filters can do a lot. Label, archive, mark as read, forward, skip the inbox.

    What they cannot do: download an attachment to Drive.

    That's it. That's the section.

    You can label every Stripe email and tell yourself you'll batch-process them later. You won't. The label exists for the same reason the unread folder exists: as a graveyard for tasks you'll never do.

    Option 3: Zapier or IFTTT

    This is where most "save Gmail attachments to Drive" articles end. They tell you to wire up a Zap and call it a day.

    Here's what actually happens.

    Zapier's "New Attachment in Gmail" trigger to "Upload File in Google Drive" action works. For one folder. Per Zap.

    So if you want stripe.com attachments in Drive/Stripe/, you build a Zap. If you want aws.amazon.com attachments in Drive/AWS/, you build another Zap. Each Zap matches one sender, lands in one folder.

    You have 30 vendors. You'd need 30 Zaps. Zapier's free plan caps you at 5 Zaps and 100 tasks a month. The Starter plan is $19.99/mo for 750 tasks. The Professional plan is $49/mo. And every PDF that hits any Zap eats a task.

    Plus, Zapier has no concept of "file by sender domain into a folder hierarchy." You have to hard-code the folder. So when a new vendor emails you for the first time, nothing happens. The PDF just sits in Gmail unfiled. Same problem as Gmail filters, but with a $50/mo invoice attached.

    IFTTT has the same shape. Different pricing, same limitation.

    Automation flow from Gmail to Drive using Zapier/IFTTT visualization

    Option 4: Google Apps Script

    If you can write JavaScript, you can solve this with Apps Script. Open a script, query Gmail with GmailApp.search, iterate attachments, save to Drive with DriveApp.createFile.

    Total cost: zero dollars and roughly two evenings.

    Then it breaks. Apps Script has a 6-minute execution timeout. If you have a backlog, it doesn't finish. Refresh tokens expire. Drive folder lookups time out. The script silently fails and you don't know until tax season when you go looking for the receipts.

    If you're a developer and you like maintaining one more side-thing, sure. Otherwise this is a lot of evenings to file PDFs.

    Developer coding Google Apps Script to automate Gmail attachments to Drive

    Option 5: Auto-file by sender domain

    This is the version we built. Disclosure first: it's our product. Then the explanation, because the mechanism matters even if you build it yourself.

    You connect Gmail. You connect Drive. AutoFileEmail watches your inbox. When a new email with an attachment arrives, it does three things:

    1. Looks at the sender. Pulls the registrable domain. So noreply@billing.stripe.com becomes stripe.com. bills@aws.amazon.com becomes amazon.com.
    2. Builds a folder path: /AutoFileEmail/stripe.com/2026/04/.
    3. Saves the attachment there. With the original filename, prefixed by the email date.

    Real example. Stripe sends a payout invoice on April 14, 2026. Subject: "Your invoice from Stripe". Attachment: invoice.pdf.

    It lands in Drive at /AutoFileEmail/stripe.com/2026/04/2026-04-14-invoice.pdf.

    No vendor list to maintain. No Zap to build for each new sender. The first time Postmark emails you, a postmark.com folder appears. The first time some new SaaS you signed up for last week sends a receipt, that folder appears too.

    When tax time rolls around, you open Drive, sort by folder, and your CPA gets a clean per-vendor breakdown. That's it. That's the workflow.

    AutoFileEmail workflow visual routing emails to Drive by sender domain

    What about per-email fees?

    This is the part where most filing tools go sideways. Hubdoc, Dext, Receipt Bank, AutoEntry. They charge per receipt scanned, or per inbox, or both. Hubdoc bundles into QuickBooks Online at $35+/mo. Dext starts at $26/mo and meters by document count.

    Why? Because they OCR every receipt. Read the line items. Extract amounts. That costs them GPU time. They pass the cost to you.

    We don't OCR. The PDF in your Drive folder is the same PDF Stripe sent. We're not reading your receipts, we're just filing them. No GPU bill, no per-email fees. The free tier is free for one inbox forever.

    If you want OCR, your accountant's software does it better than any of these tools anyway. Filing is the part that's actually missing.

    Clean Drive inbox after automation scene

    Setup, end to end

    For the version that exists:

    1. Sign up at autofile.email with Google. 30 seconds.
    2. Click "Connect Drive". Approve the drive.file scope (we can only see folders we created, never the rest of your Drive).
    3. Click "Connect Gmail". Approve read-only access.
    4. Done. New attachments start filing within 30 seconds of arriving.

    If you signed up today, you also get a 30-day historical preview. So the last month of receipts files itself retroactively without you doing a thing.

    If you want the last 3 years filed too, that's the $29 Tax Year Pack or $59 3-Year Pack. One-time payment, no subscription.

    What about Outlook? iCloud? IMAP?

    All shipped. The product is provider-agnostic on both sides now: pick any inbox, pick any cloud.

    • Inboxes: Gmail, Outlook (Microsoft Graph), or IMAP (iCloud Mail, Fastmail, Yahoo, Zoho, Proton Bridge, Yandex, and any host that speaks IMAP with an app password).
    • Clouds: Google Drive (drive.file), OneDrive (App folder), or Dropbox (App folder).

    The folder layout is the same wherever files land: /AutoFileEmail/{sender-domain}/{YYYY}/{MM}/. So if you ever swap any leg of the stack - Gmail to Outlook, Drive to OneDrive - your accountant doesn't have to relearn anything.

    A few combo-specific walkthroughs if you're not on Gmail+Drive:

    • Save Outlook attachments to OneDrive
    • Save Gmail attachments to OneDrive
    • Save Gmail attachments to Dropbox
    • Auto-file iCloud Mail attachments via IMAP

    The full integrations matrix lives at /integrations.

    The bottom line

    The manual workflow costs you 3 hours a year and a missing receipt or two when it counts.

    Gmail filters can't do it. Zapier can do it badly for $50/mo. Apps Script works until it doesn't. AutoFileEmail does the one specific job: PDF lands in Gmail, PDF lands in Drive, organized by sender domain, no clicks.

    Connect Gmail in 30 seconds. Free for one inbox. If you're a freelancer, the tax-time workflow is built around this exact filing pattern.

    Try it. Worst case you save an hour next April.

    The last time you'll dread tax season.

    Connect Gmail and Drive, watch the 30-day preview file itself, and never think about new email attachments again. Forward filing is free, forever. When tax season comes, grab a Backfill Pack and we'll sweep the rest of your history.

    Connect Drive — free See pricing

    Thanks for reading! If you want to see future content, subscribe to our RSS feed.

    Newer →
    Save Outlook Attachments to OneDrive Automatically (2026 Guide)
    AutoFileEmail

    We don't read your documents. We just file them. Receipts, invoices, statements — sorted into your cloud, automatically.

    Product
    • Pricing
    • FAQ
    • Blog
    • About
    Compare
    • AutoFileEmail vs. Receiptor AI
    • AutoFileEmail vs. Hubdoc
    • AutoFileEmail vs. Dext
    • AutoFileEmail vs. Zapier
    • AutoFileEmail vs. CloudHQ Save Emails to Drive
    Integrations
    • Auto-save Gmail attachments to Google Drive
    • Auto-save Gmail attachments to Dropbox
    • Auto-save Outlook attachments to OneDrive
    • Auto-save Outlook attachments to SharePoint
    • IMAP + Google Drive Integration
    Solutions
    • AutoFileEmail for Freelancers
    • AutoFileEmail for Bookkeepers
    • AutoFileEmail for Landlords — Schedule E ready by April
    • AutoFileEmail for Consultants
    • Tax-Time Receipt Organization
    Legal
    • Privacy policy
    • Terms
    • Security
    © 2026AutoFileEmail · We don't read your documents.PrivacyTerms