Guide · 6 Min Read
How to Find Old Photos in Gmail From Years Ago
By Carlos Foster, creator of Mail Memories · Updated
Summary
Gmail always shows you your newest email first and won’t let you change that, so old photos end up buried under years of everything else. To dig them up, search for image files with a date range, like filename:jpg before:2010/01/01, and narrow it by person. If you want all of your old photos instead of just a few, a local app like Mail Memories can pull every one of them out, oldest first, into folders by year.
Here’s why old photos are so hard to find in Gmail.
If you’ve had the same Gmail address since the mid-2000s, the photos are almost certainly still there. Gmail rarely deletes anything on its own. The problem is getting to them.
- Newest first, always. Gmail has no “oldest first” option. A photo from 2007 might be tens of thousands of emails down.
- They aren’t in Google Photos. Pictures that were emailed to you stay inside the emails. Unless you saved them one by one, Google Photos has never seen them.
- You don’t remember the subject line. Nobody remembers that the beach photos came in an email called “Fw: hi!!” from an AOL address that no longer exists.
Gmail’s search bar can do a lot more than it looks like, once you know what to type.
Method 1: Search Gmail by year, person, and file type.
Start with this. It finds every email with a photo attached, from any point in time:
That search also brings back logos and screenshots, so add a date to narrow it down. Go one year at a time:
filename:jpg after:2008/01/01 before:2009/01/01— only photos from 2008.filename:jpg before:2010/01/01— everything from before 2010.filename:jpg older_than:10y— anything more than ten years old.
Then narrow it down by who sent it:
from:amber filename:jpg— Gmail matches the name in your contacts, so a first name or nickname often works.from:someone@hotmail.com filename:jpg— use an old address if you remember it. Lots of family photos came from Hotmail, Yahoo, and AOL accounts that have long since disappeared.to:dad filename:jpg— photos you sent to someone.
If you’re getting too many tiny images, add larger:500K. That filters out most email signatures and logos and leaves the real photos.
Sometimes the subject line helps too. Old photo emails tend to have subjects like “pics,” “pictures,” “photos,” or the name of a holiday. Try subject:(pics OR pictures OR photos) before:2012/01/01.
Don’t forget the places old photos like to hide.
A plain search catches most things, but a few spots are easy to miss:
- Your Sent folder. Photos you emailed out from an old phone or camera often aren’t saved anywhere else. Add
in:sentto any search above. - Zip files. Back when attachments had tight size limits, people zipped whole albums together. Search
filename:zip before:2012/01/01. You’ll need to download and open these yourself. - Archived email. These are already included. Gmail searches All Mail by default, so anything you archived years ago still shows up.
- Spam and Trash. Normal searches skip these. Use
in:anywhereto include them. Keep in mind Gmail empties the Trash after 30 days, so anything deleted before that is gone.
The catch: All of this finds the photos, but Gmail still makes you open each email and save each picture by hand. That’s fine for a dozen photos. But a few hundred can take a whole weekend, and most long-time Gmail accounts have thousands.
Method 2: Pull every old photo out at once with Mail Memories.
I built Mail Memories out of curiosity, to see what was hiding in my own inbox from 20 years ago. The first scan turned up photos of my late grandmother that I’d completely forgotten about. It does all of the searching above for you, across every year, and saves what it finds to your computer.
- Oldest photos first. The free scan starts at the very beginning of your account and works forward, so the first 100 photos you see are your oldest.
- Sorted by year and month. Everything lands in folders like “2006” → “07 - July”, with the date and subject of the original email in each file name, so you know where every picture came from.
- Searches everywhere that matters. It looks through All Mail, including archived and sent email, and skips the tiny logo and signature images.
- 100% local. It runs on your Mac or PC and talks straight to Gmail. Your email and photos never pass through anyone else’s server.
Note: like Gmail’s own search, Mail Memories doesn’t open zip files. If your family zipped up albums back in the day, use the filename:zip search above to grab those by hand.
What’s the oldest photo in your Gmail?
Find out in a few minutes. Your 100 oldest photos are free to download.
No credit card required · Runs 100% locally
How to find your oldest photos with Mail Memories.
Step 1: Generate a Google App Password
Mail Memories connects with a 16-character Google App Password instead of your real password. It only works for mail, and you can revoke it whenever you like. If Google won’t let you make one, my guide on fixing an App Password that’s missing or not working walks through every cause.
Step 2: Run the Free Scan
Enter your Gmail address and the App Password, then click Start Scan. The app finds your earliest photos and starts saving them right away.
Step 3: Open the Folder
Your photos are in Pictures / Mail Memories, sorted by year. If you like what you see, a one-time $29 unlock downloads the rest of your archive, every year up to today.
Thinking of clearing out those old emails once the photos are safe? Read my guide on freeing up Gmail storage without losing your photos first.
Frequently asked questions
Can I sort Gmail by oldest first?
No. Gmail always lists the newest email at the top, and there’s no setting to flip it. The workaround is to search with a before: date, like before:2010/01/01, so the newest results are already the old ones you want.
Why don’t my old Gmail photos show up in Google Photos?
Gmail and Google Photos are separate. Photos that were emailed to you stay inside the emails unless you save each one to Google Photos yourself. That’s why years of emailed pictures never show up there.
Does Gmail search include archived emails?
Yes. A normal Gmail search covers All Mail, which includes everything you’ve archived. It leaves out Spam and Trash. Add in:anywhere to your search to include those too.
Can I get back photos from emails I deleted years ago?
Usually not. Gmail empties the Trash after 30 days, and once an email is gone from there, it’s gone for good. If you deleted it recently, search in:trash and move it back to your inbox.