How to get your documents out of an old Gmail account
Two routes out. Search Gmail for the attachments that matter (has:attachment filename:pdf) and save those in batches, or export the whole mailbox with Google Takeout and open the MBOX later. Most households want the first for the few hundred documents they will actually need, and Takeout as the backstop.
Why is an old inbox so hard to clear out?
Email stores messages, and the documents you care about are passengers inside them. A lease is an attachment on a thread about a viewing; the tax slip is three replies deep; the receipt for the fridge is under a subject line that says Your order. Ten years in, the inbox holds a filing cabinet with the labels turned to the wall.
So the job splits in two: find the small number of attachments that matter, and get them somewhere that files them by what they are. The rest of the mail can stay exactly where it is.
Which documents are worth pulling out?
The honest answer for most families is a few hundred files, not ten thousand. These are the ones people go looking for later, and a search that gets you close to each pile:
| What you'll want later | A search that finds it |
|---|---|
| Tax slips and filings | has:attachment (tax OR T4 OR W-2 OR notice of assessment) |
| Big-ticket receipts and warranties | has:attachment (invoice OR receipt OR warranty) larger:1M |
| Leases, contracts, signed PDFs | has:attachment filename:pdf (lease OR agreement OR signed) |
| Insurance policies | has:attachment (policy OR renewal OR coverage) |
| Immigration and school paperwork | has:attachment (permit OR visa OR transcript OR enrolment) |
| Anything scanned as an image | has:attachment (filename:jpg OR filename:png OR filename:heic) |
Work one row at a time. Each search gives a page or two of results, you skim, and you save the keepers — an afternoon rather than a project.
Which Gmail search operators actually help?
These are the ones that do the heavy lifting on an old mailbox. They combine, and combining is the point.
| Operator | What it does | Example |
|---|---|---|
has:attachment | Only messages carrying a file | has:attachment |
filename: | By file name or extension | filename:pdf |
larger: / smaller: | By size — the scans and statements are the big ones | larger:10M |
before: / after: | By date, in YYYY/MM/DD | before:2020/01/01 |
older_than: / newer_than: | Relative age, using d, m or y | older_than:3y |
from: / subject: | By who sent it, or words in the subject | from:[email protected] |
category:purchases | Gmail's own bucket for orders and receipts | category:purchases has:attachment |
One habit saves the whole afternoon: as you go, apply a Gmail label (say keep) to every message you want. Gmail can export by label later, which is the closest thing to a date range you get.
How do you export everything with Google Takeout?
Takeout is the bulk route. It hands you the mailbox as MBOX files — one per label, each message and its attachments packed inside. Steps as of July 2026:
Open Takeout and deselect everything
Google pre-selects every product you use. Click Deselect all, then scroll down and tick Mail on its own. Exporting Drive and Photos at the same time is how a 4 GB job turns into a 200 GB one.Pick labels instead of the whole mailbox
Next to Mail, the All Mail data included button opens the label list. Untick Include all messages in Mail and choose the labels you actually want — the keep label from the previous step, for instance. Google does not support exporting by date range, so labels are the only filter you get.Choose delivery and archive size
A download link by email is the simplest. Pick ZIP, and set the archive size to something your machine can open — anything larger than the limit is split into several files automatically.Wait, then download promptly
Google builds the archive on its side and emails you when it's ready; a large mailbox takes a long time. The archive expires after about seven days and can be downloaded five times, after which you request a fresh one.Get the attachments back out of the MBOX
the fiddly bitAn MBOX is one long text file, so the PDFs inside are not files yet. Import it into a mail client and save the attachments, or run a script over it. This is the step people underestimate — which is why the search-and-save route above is worth doing first for the documents you know you need.
Where should the documents land afterwards?
A folder tree works if you keep it up. The failure mode is familiar: three folders deep, a file called scan_20190412_001.pdf, and no memory of what it was. The alternative is an archive that reads each document and files it by what it is, so you can look for “the 2023 insurance renewal” instead of remembering a file name.
That second kind is what Sparky Fetch does. You drop in the PDFs and photos you rescued — by web upload, by forwarding them to the Telegram bot, or through a synced Google Drive folder — and Sparky runs OCR on each one, sorts it into a category, and lets anyone in the household search or simply ask. It is in private beta, so the honest framing is an invite and a demo rather than a sign-up button.
If you want to see what the archive looks like before handing it anything, the live demo is a fictional family's paperwork you can poke at without an account.
Frequently asked questions
How do I find every email with a document attached in Gmail?
Search has:attachment. Narrow it by file type with filename:pdf, by size with larger:5M, by date with before:2020/01/01 or older_than:3y, and by sender with from:. Combining them is what makes an old inbox manageable: has:attachment filename:pdf from:cra-arc.gc.ca returns one small pile instead of ten years of mail. These operators are listed on Google's 'Refine searches in Gmail' help page, checked July 2026.
Can Google Takeout export only the last two years of mail?
No. Google's own help page says timeframe exports aren't supported (checked July 2026). You can limit the export by label — click 'All Mail data included' next to Mail and pick the labels you want — but there is no date range. If you want a date range, label the messages in Gmail first, then export that label.
What format does Gmail come out in?
MBOX — one plain-text file per label, with each message and its attachments packed inside. Thunderbird, Apple Mail and dedicated MBOX viewers open it. To get the attachments back out as ordinary files you either open the archive in a mail client and save them, or run a script over the MBOX.
Should I delete the emails afterwards?
Keep the mail where it is until you have checked the copies open properly. An export is a copy, so nothing is lost by waiting a week. If storage is the reason for the cleanup, deleting a handful of huge attachments (larger:10M) frees far more space than deleting thousands of ordinary messages.
Where should the files live once they are out?
Somewhere you can search by what a document is, rather than by what someone happened to name the file. That can be a folder tree you keep up by hand, or an archive that reads each document and files it for you. Sparky Fetch is the second kind: it runs OCR on whatever you drop in, sorts it into categories, and answers questions like 'the 2023 tax slip' across the whole household.
Fetching things out of piles — that part we know. ♡
Gmail search operators are from Google's “Refine searches in Gmail” help page and the export steps from “How to download your Google data”, both checked in July 2026; Google changes these pages, so re-check before you rely on a detail. Sparky Fetch details describe current behaviour during private beta. Nothing here is affiliated with or endorsed by Google.