How to Auto Archive Emails in Gmail
In this article
Auto-archiving emails in Gmail helps you keep your inbox clean without manually filing messages. With Gmail's built-in filters and labels, you can automatically skip the inbox for specific senders, keywords, or all emails older than a certain date. This guide walks you through setting up automatic archiving on both desktop and mobile, plus tips to avoid common pitfalls.
What You'll Need
- A Gmail account (free or Google Workspace)
- Access to Gmail on a web browser (for initial setup) or the Gmail app on Android/iOS
- An understanding of what "archive" means: it removes the email from your Inbox but keeps it in All Mail, so you can still find it via search.
Step-by-Step
Method 1: Auto-Archive by Sender or Subject (Using Filters)
- Open Gmail in your web browser and log in if needed.
- Click the search box at the top of Gmail (the bar that says "Search mail").
- Click the small downward arrow on the right side of the search box to open the advanced search options.
- Fill in the criteria for emails you want to auto-archive. For example:
- In the From field, enter an email address or domain (e.g.,
news@example.comor@newsletter.com). - In the Subject field, enter specific words that appear in the subject line.
- In the Has the words field, enter keywords that appear anywhere in the email.
- You can also set a Date within range if you want to archive older emails only.
- In the From field, enter an email address or domain (e.g.,
- Click the blue "Create filter" button at the bottom right of the search window.
- In the filter options, check the box next to "Skip the Inbox (Archive it)". You can also check "Apply the label" and choose or create a label (like "Archived Newsletters") to keep them organized, but this is optional.
- Click "Create filter" to save. If you want to apply this to existing emails that match the criteria, check the box "Also apply filter to matching conversations" before clicking Create.
Method 2: Auto-Archive All Old Emails (Using a Search Query)
If you want to archive everything older than a certain date (e.g., all emails older than 30 days), you can create a filter with a date-based search.
- In the Gmail search box, type a search query like
older_than:30d(this finds emails older than 30 days). You can also useolder_than:1yfor a year, orbefore:YYYY/MM/DDfor a specific date. - Press Enter to see the results. If the results look correct, click the down arrow in the search box again.
- Click Create filter at the bottom.
- Check "Skip the Inbox (Archive it)".
- Optionally, check "Also apply filter to matching conversations" to archive existing emails that match.
- Click Create filter.
Method 3: Using Gmail's Built-in "Auto-Archive" for Promotions and Social
Gmail automatically categorizes some emails into tabs like Promotions and Social. You can set these to skip your inbox automatically:
- Click the gear icon (Settings) in the top right, then click "See all settings".
- Go to the "Inbox" tab.
- Under "Inbox type," select "Default" (if not already). Then, in the "Inbox sections" list, find Promotions and Social.
- Click the pencil icon next to each section and uncheck "Show in inbox". This effectively archives those categories automatically (they go to All Mail but don't appear in your inbox).
- Click Save Changes.
Method 4: Auto-Archive on Mobile (Gmail App)
On the Gmail app, you can't create filters directly, but you can manage existing filters and set default actions.
- Open the Gmail app on your phone or tablet.
- Tap the hamburger menu (three lines) in the top left.
- Scroll down and tap "Settings".
- Select your account, then tap "Manage labels" or "Filters" (depending on your device). Here you can edit or create filters that archive emails.
- If you want to archive emails you swipe away, go to Settings > General settings > Swipe actions and choose Archive as the action for swipe left or right.
Common Mistakes
- Not checking the "Skip the Inbox" box – If you forget this, your filter will apply a label but still leave emails in your inbox.
- Using too broad a filter – For example, archiving all emails from a domain like
@gmail.comwould archive almost everything. Be specific. - Forgetting to apply to existing emails – If you want to clean up your current inbox, you must check "Also apply filter to matching conversations." Otherwise, only new emails will be archived.
- Archiving emails you still need to act on – If you archive a bill or a work email, it's easy to forget about it. Consider using a label like "Action Needed" instead.
Tips
- Use labels alongside archiving – Apply a label like "Auto-Archived" so you can quickly find these emails later. They'll still appear in All Mail, but a label makes them easier to browse.
- Combine filters – You can create multiple filters with different criteria. For example, one for newsletters, one for social notifications, and one for old emails.
- Test with a small set first – Before applying a filter to all matching emails, use the search preview to see how many emails match. If it's a huge number, double-check your criteria.
- Use the "older_than" operator wisely – This is great for archiving old emails, but be careful with time-sensitive information like bills or confirmations. You might want to archive only emails older than 1 year.
- Review your filters regularly – Go to Settings > Filters and Blocked Addresses to see all your filters. Edit or delete any that are no longer needed.
Troubleshooting
- Emails are still appearing in the inbox: Check that the filter is enabled and that the "Skip the Inbox" box is checked. Also, ensure the filter criteria are correct – use the search preview to verify which emails match.
- Filter not applying to old emails: When creating the filter, you must check "Also apply filter to matching conversations." If you already created the filter, you can edit it and then re-apply it to existing conversations.
- Archived emails are still showing in search: That's normal – archiving doesn't delete emails; it just removes them from the inbox. They remain searchable in All Mail.
- Emails from a specific sender are still in the inbox: The sender might be using a different address or the email might have been sent to a different alias. Check the full sender address and also check if the email is in a different category (like Social) that bypasses the filter.
- Changes not syncing to mobile: Filters are server-side, so they should sync automatically. If not, close and reopen the Gmail app or check your internet connection.
Frequently Asked Questions
Does archiving an email delete it?
No. Archiving removes the email from your Inbox but keeps it in All Mail. You can find it later via search or the All Mail label.
Can I undo an auto-archive?
Yes. If an email is archived, you can go to All Mail, open the email, and click the "Move to Inbox" icon (the inbox icon with a plus). Or, if you just archived it, you can click "Undo" in the banner that appears.
Will auto-archiving affect emails I've already read?
No, unless you choose to apply the filter to existing conversations. By default, filters only affect new emails that arrive after the filter is created.
Can I set up auto-archive for emails from a specific sender on the mobile app?
Yes, but you need to create the filter on the web version first. Once created, it works on mobile. On the mobile app, you can only manage existing filters or set swipe actions.
What's the difference between archiving and deleting?
Archiving keeps the email in All Mail, so it's recoverable and searchable. Deleting moves it to Trash, where it's permanently deleted after 30 days.
Can I auto-archive emails with attachments?
Yes. You can use the search operator has:attachment in the filter criteria to archive emails that have attachments. Combine it with other criteria to be more specific.