Updated
Software subscriptions, flights, hotels, office supplies: almost every receipt now arrives by email, and at tax time they are scattered across years of inbox. Here is how to find them, how to organize them in Google Drive so they are useful for taxes, how long to keep them, and three ways to stop doing it by hand.
Works with Gmail, Outlook, Microsoft 365 and IMAP · Never sends or deletes your email
Receipts reach your inbox in two very different shapes, and it matters which one you are dealing with:
Be clear about this before you choose a method. Inbox2Drive, Apps Script recipes and Gmail's own Add to Drive all work on attachments. For HTML-only receipts you have two reliable options:
Some vendors also let you change billing settings so the invoice is attached to every email; it is worth a look for subscriptions you pay every month.
Receipts are the evidence behind your deductions. The IRS lists receipts, invoices, credit card statements and proof of payment among the supporting documents for business expenses, and notes that you may need a combination of them for a single expense.
On retention, the IRS page How long should I keep records? and Publication 583 say, in summary:
Your state, your lender or your insurer may expect records for longer. Our how long to keep invoices tool gives a quick answer by document type.
Are digital copies OK? The IRS says all requirements that apply to paper books and records also apply to electronic records, and Publication 583 refers to Revenue Procedure 97-22 for the rules on electronic storage systems. Broadly, digital copies should be accurate, legible and easy to retrieve. This is general information, not tax advice: check with your tax professional before you throw away paper originals.
Paste these into the Gmail search bar. They use real Gmail operators, and you can combine them.
has:attachment filename:pdf (receipt OR invoice)
PDF receipts and invoices. Start here; this is the set any attachment-based tool can save.
from:(receipts OR billing OR invoice)
Matches common sender names such as receipts@ or billing@. Add the vendors you use most, for example from:(billing OR receipts OR yourairline).
subject:(receipt OR "your order") newer_than:1y
Catches HTML-only order confirmations from the last 12 months. Use after:2026/01/01 before:2027/01/01 instead to cover one tax year exactly.
Note that "category:purchases" is not a Gmail search operator, so do not rely on it. Want to build a search without memorizing syntax? Use our Gmail search builder for invoices and attachments. Once a search looks right, click the filter icon in the search bar and choose Create filter to apply a "Receipts" label to future matches.
In Outlook and Microsoft 365, search with hasattachments:yes subject:receipt, and try subject:invoice as a second pass. You can turn the result into a rule that moves receipts to a folder, but, as in Gmail, the files stay in your mailbox.
In the middle of tax season? First gather your receipts, invoices and 1099s from Gmail and Outlook, then file them like this.
Pick a structure you can explain to your accountant in one sentence. Two that work well:
Receipts/
└── 2026/
├── 01-January/
│ ├── AcmeSoftware_2026-01-03_59.99.pdf
│ └── SomeAirline_2026-01-18_412.60.pdf
├── 02-February/
└── ...
Receipts/
└── 2026/
├── Software/
├── Travel/
├── Meals/
└── Office/
Vendor_YYYY-MM-DD_amount.pdf, so you can find a charge from a card statement without opening files. Our invoice PDF renamer helps rename a batch you already have.If you pay quarterly estimated taxes, a reminder helps you review the folder four times a year instead of once: add the dates with our quarterly estimated tax deadlines calendar file.
Open each receipt, use Gmail's Add to Drive on the attachment (or download it), then move it into the right folder and rename it.
Good: free, no setup, full control. Watch out: several clicks per receipt, renaming is on you, and it is easy to miss one. Fine if you get a handful a month.
A short script in your Google account searches Gmail (for example with has:attachment filename:pdf (receipt OR invoice)), saves new attachments to a Drive folder and runs on a time-based trigger. We publish a ready-to-copy version: Gmail attachments to Google Drive with Apps Script.
Good: free, runs on its own. Watch out: Gmail only, it does not know a receipt from any other PDF beyond your search, folder and naming logic is code you write, and you maintain it when something changes.
Connect Gmail, Outlook / Microsoft 365 or any IMAP mailbox, and choose Google Drive, OneDrive or Dropbox as the destination. The AI recognizes receipts and invoices among your attachments and files them by vendor and date in the folder structure you choose.
Good: no scripts, several mailboxes into one receipts folder, a history import for attachments you already received. Watch out: it saves attachments, so HTML-only receipts still need a PDF (see above); paid plans for higher volume.
| Manual | Apps Script | Inbox2Drive | |
|---|---|---|---|
| Automatic | No | Yes, on a timer | Yes |
| Mailboxes | Any, by hand | Gmail only | Gmail, Outlook / Microsoft 365, IMAP |
| Destinations | Any | Google Drive | Google Drive, OneDrive, Dropbox |
| Recognizes receipts | You decide | Only via your search | Yes, AI classification |
| Folders by vendor / date | By hand | If you code it | Built in |
| HTML-only receipts | Print to PDF | Not by default | Not captured (attachments only) |
| Maintenance | None, but ongoing effort | You maintain the script | None on your side |
| Cost | Free (your time) | Free | Start free, paid plans for more volume |
Sign up and start free.
Gmail, Outlook / Microsoft 365 or any IMAP account. If receipts arrive in a personal and a business inbox, connect both.
Choose the root folder, for example Receipts. OneDrive and Dropbox work the same way.
By date, by vendor, by document type, or a combination.
Run the history import to file receipts you already received, then let new ones file themselves. Inbox2Drive never sends or deletes email; it marks processed messages as read and tags them so you can see what was filed.
For more on the general attachment workflow, see all the ways to save email attachments to Google Drive.
Only a few receipts a month? The manual method and a Gmail label are enough.
No. Gmail can label receipts with a filter and lets you save a single attachment with Add to Drive, but there is no filter action that copies attachments to Google Drive. For that you need a script (Google Apps Script) or a service such as Inbox2Drive.
Inbox2Drive saves attachments, so an HTML-only receipt is not captured as a file. Use the vendor's download invoice or PDF link, usually in your account's billing page, or open the email in Gmail, choose Print and select Save as PDF as the destination, then upload the PDF to your receipts folder.
The IRS says to keep records that support income or deductions until the period of limitations for that return runs out, which is generally 3 years. Longer periods apply in some cases, for example 6 years if you did not report income that is more than 25% of the gross income shown on your return, and 7 years if you claim a loss from worthless securities or a bad debt deduction. Ask your tax professional about your situation.
The IRS says the requirements for paper records also apply to electronic records, and Publication 583 points to Revenue Procedure 97-22 for electronic storage systems. In short, digital copies need to be accurate, legible and retrievable. Confirm the details with your tax professional before discarding originals.
Yes. Inbox2Drive connects Gmail, Outlook and Microsoft 365 and any IMAP mailbox, and it can save into Google Drive, OneDrive or Dropbox. Several mailboxes can feed the same receipts folder.
Related: All guides · save email attachments to Google Drive · Amazon invoices to Google Drive · Uber receipts to Google Drive · Hubdoc vs Dext for supplier invoices from email · AutoEntry alternatives compared (Dext, Hubdoc, Parseur) · GST invoices from Gmail to Google Drive (India) · Gmail search builder · invoice PDF renamer · how long to keep invoices · Apps Script for Gmail attachments.
Questions about your setup? Email us and we will help you configure it.
Checked on 25 November 2026. This page is general information, not tax or legal advice.
Connect one mailbox and Google Drive, and see your receipts filed by vendor and date.
Start free