Find & Save Old Photos from Gmail
In this article
Yes, you can find and save old photos from your Gmail account, even if they were sent years ago. Gmail keeps every attachment, including images, unless you deleted them. The quickest way is to search for has:attachment filename:jpg or has:attachment filename:png in the Gmail search bar, then open each email and download the photos. For bulk saving, you can use Google Takeout to export all attachments, but that gives you a messy folder of files. This guide covers both methods, plus how to organize and back up what you find.
What You'll Need
- A Gmail account with the photos still in it (not permanently deleted from Trash).
- Access to a computer or mobile device with internet.
- For Google Takeout: a Google account and enough free storage on your computer or cloud drive to hold the exported files.
- Optional: a folder on your computer or a cloud storage service (like Google Drive, Dropbox, or iCloud) where you want to save the photos.
Step-by-Step
Method 1: Search and Download Individual Photos
- Open Gmail in your web browser and log in.
- Use the search bar at the top. Type:
has:attachment filename:jpg(orpngfor PNG files). You can also add a sender or date range, e.g.,from:grandma before:2020/01/01. - Press Enter to see all emails with image attachments.
- Open each email that contains a photo you want. Scroll to the attachment thumbnail at the bottom of the email.
- Hover over the thumbnail and click the download icon (downward arrow) that appears. On mobile, tap the attachment and then the download icon (usually a downward arrow or three dots).
- Save the file to your computer or phone. Repeat for each photo. To speed up, you can select multiple emails in the search results and use the "Download" option in the Gmail menu (available on desktop) to download all attachments from selected emails as a ZIP file.
Method 2: Use Google Takeout to Export All Attachments
- Go to Google Takeout (takeout.google.com) and sign in with the same Google account.
- Deselect all by clicking "Deselect all" at the top of the product list.
- Scroll down and select "Mail" (the Gmail icon). Click the checkbox next to it.
- Click "All Mail data included" (or similar). A panel opens. Under "Mail", choose "Include all messages" or select specific labels. To get all attachments, keep "Include all messages" selected. Then click "OK".
- Click "Next step" at the bottom.
- Choose your delivery method: send download link via email, or add to Drive, Dropbox, etc. Select the file type (ZIP is fine) and size (2 GB is safe).
- Click "Create export". Google will prepare your data. This can take from minutes to hours depending on account size. You'll get an email when it's ready.
- Download the export file when ready, then extract the ZIP. Inside, you'll find a folder called
Mailwith subfolders per label. Each email is saved as an.emlfile. The attachments are embedded in those files—you can't directly see them as separate images unless you open each .eml in an email client or use a tool to extract attachments. - To extract photos from .eml files, you can use a free tool like WinZip (Windows) or Archive Utility (Mac) that can read MIME, or use a script. A simpler alternative: use a third-party email client like Thunderbird to import the .eml files and then save attachments individually. This is time-consuming if you have many photos.
Method 3: Use Google Photos Backup (if you have it)
- Check if you have Google Photos linked to your Gmail. If you've ever used the Google Photos app or the "Backup and Sync" feature, some photos from emails may have been automatically saved there if you had auto-backup enabled.
- Go to photos.google.com and search for the photos. If they appear, you can select and download them.
- This method only works if you previously enabled backup for Gmail attachments—which is not a default setting. Most users will not have this.
Common Mistakes
- Searching without the right filters: Using just "photo" or "image" in search won't find attachments. Use
has:attachmentand the file extension. - Deleting emails before saving: If you delete an email, the attachment is gone permanently after 30 days in Trash. Always save before deleting.
- Overlooking the "All Mail" label: Some photos might be in archived emails, not in Inbox. Search covers All Mail by default, but if you filtered by label, you might miss some.
- Assuming Takeout gives you separate image files: It doesn't. You get .eml files with embedded attachments. Many users are confused by this.
- Not checking spam or junk: Old photos from unknown senders might be in Spam. Search there too.
Tips
- Use specific search operators: Combine
has:attachmentwithfilename:jpgORfilename:pngto catch both. You can also addlarger:1Mto filter for larger images. - Create a label for photos you find, so you can easily access them later. Right-click an email > "Label as" > create new label.
- Save in batches: Instead of downloading one by one, select multiple emails and use the "Download" option (desktop) to get a ZIP of all attachments.
- Use a dedicated photo manager: After downloading, import into Google Photos, Apple Photos, or a local folder. Keep a backup on an external drive.
- If you have many photos, consider a third-party tool like MailStore or a script to extract attachments from .eml files, but only use trusted, official software.
Troubleshooting
- Search returns no results: Try different file extensions like
jpeg,gif, orheic. Also check if you're logged into the correct account. If you still find nothing, the photos may have been deleted permanently. - Download fails or is slow: Try a different browser, clear your cache, or use incognito mode. For large downloads, use Google Takeout with a smaller file size (e.g., 1 GB) to avoid timeouts.
- Takeout export is stuck: It can take days for huge accounts. Wait 48 hours. If it fails, try creating a new export with fewer labels selected.
- Can't open .eml files: On Windows, you can open them with Outlook or Thunderbird. On Mac, use Apple Mail. Or use an online .eml viewer (but be cautious about uploading private emails).
- Photos are in an email but not showing as attachments: Sometimes images are embedded in the email body, not as attachments. In that case, right-click the image and choose "Save image as" to download it.
Frequently Asked Questions
Can I recover permanently deleted photos from Gmail?
No. If you deleted the email and then emptied the Trash, the attachment is gone forever. Google does not keep backups of deleted emails. However, if you have a Google Workspace account, your admin might have a recovery tool, but that's rare.
Does Google Takeout include all attachments?
Yes, if you select "Include all messages" for Mail, every attachment in every email is included in the .eml files. But they are not separate image files—they are embedded in the email data.
Can I search for photos by date?
Yes. Add a date range to your search, e.g., has:attachment filename:jpg after:2015/01/01 before:2016/12/31.
Will downloading attachments from Gmail reduce my storage?
No. Downloading does not delete anything from Gmail. It only copies the files to your device.
Can I save photos directly to Google Drive from Gmail?
Yes. When you open an email with an attachment, hover over the attachment and click the Google Drive icon (a triangle with a plus). It will save the attachment to your Drive.
What if I have thousands of photos? Is there a faster way?
Use Google Takeout to export everything, then use a script or a third-party tool to extract images from .eml files. This is technical, but it's the only bulk method. Alternatively, you can use the Gmail API with a custom script if you have coding skills.