How to Archive Emails in Gmail by Date
In short: To archive emails in Gmail by date, open Gmail on a desktop browser and search a date range with before: and after:, for example in:inbox after:2023/01/01 before:2024/01/01. Tick the top checkbox, click Select all conversations that match this search, then click Archive. This clears the inbox but keeps the mail in All Mail, so it still uses storage. To free space, export the mail first, then delete it.
What archiving in Gmail actually does
This is worth knowing before you start, because it decides whether archiving solves your problem. In Gmail, Archive simply removes a message from the Inbox and leaves it under All Mail, where it stays searchable. It is not the Trash, so nothing is deleted. The catch is that archived mail still lives in your account and still counts against your shared 15 GB, so archiving tidies the view but does not free any storage. One more quirk: if someone replies to a thread you archived, it comes back to the Inbox. So archiving by date is perfect for a clean inbox. If your real goal is space, see the export step near the end.
Technical Executive, Corbett Software
“The thing people miss is that Gmail’s Archive frees no space. It moves mail from the Inbox to All Mail, where it still counts against your 15 GB. To actually reclaim storage, export the old mail to your computer first, then delete it from Gmail.”
Archive Gmail emails by date with search
Gmail has no date picker for this, so you use its search operators. Do it on a desktop browser, because the mobile app cannot select every match at once.
| Goal | Search to type |
|---|---|
| Everything before a date | in:inbox before:2023/01/01 |
| Everything after a date | in:inbox after:2022/01/01 |
| A date range | in:inbox after:2022/01/01 before:2023/01/01 |
| Older than a period | in:inbox older_than:2y |
- Open Gmail in a browser and type your date search into the search bar, then press Enter. Dates use the YYYY/MM/DD order.
- Open two or three of the results to be sure the batch is what you expect.
- Tick the checkbox at the top left to select the visible page.
- A line appears above the mail. Click Select all conversations that match this search to take in every match, not just the page.
- Click the Archive icon, the box with the down arrow. The whole date range leaves your Inbox and moves to All Mail.
For a very large inbox, work one year at a time. Smaller batches are easier to check and easier to undo.
Undo or move archived emails back
Archiving is reversible, so a wrong sweep is not a problem.
- Straight away: click Undo in the prompt Gmail shows right after you archive.
- Later: open All Mail in the left sidebar or search in:archive, then select the messages and click Move to Inbox. They return unchanged.
Auto-archive old emails with a filter
To keep the inbox clear from now on, let a filter archive matching mail as it arrives.
- Click the filter icon in the search bar to open the search options.
- Set your rule, such as a sender, a subject or the word you want, then click Create filter.
- Tick Skip the Inbox (Archive it), then Create filter again.
New mail that matches now skips the Inbox and waits in All Mail. A filter works on incoming mail, so use the date search above for the backlog.
Archive to your computer and free up space
If your aim is storage, remember Gmail’s Archive keeps everything in your account. To truly free space you have to move the old mail off Gmail. The safe order is to save a copy to your computer, confirm it, then delete that date range from Gmail. A free option is Google Takeout, which exports your mail as an MBOX file, though it gives you the whole mailbox rather than a tidy date range.
For a clean date-range archive, the Corbett Gmail Backup Tool signs in to your account and saves just the mail you choose to your PC as PST, PDF, MBOX or EML, with attachments and labels kept. Its date and sender filter means you archive exactly one span, say a single year, then delete that span from Gmail to reclaim the space. A free demo edition runs on every edition of Windows.
Frequently asked questions
How do I archive emails in Gmail by date?
On desktop, search a date range like in:inbox after:2022/01/01 before:2023/01/01, tick the top checkbox, click Select all conversations that match this search, then click Archive. The range moves to All Mail.
Does archiving in Gmail free up storage?
No. Archived mail stays in your account under All Mail and still counts against your 15 GB. To free space, export the mail to your computer, then delete it from Gmail.
How do I archive all emails older than a year?
Search in:inbox older_than:1y, tick the top checkbox, click Select all conversations that match this search, then Archive. You can also use before: with a specific date instead.
Where do archived Gmail emails go?
They move to All Mail, which holds everything except Spam and Trash. Open All Mail or search in:archive to find them, then click Move to Inbox to bring any back.
Can I automatically archive old emails in Gmail?
Yes. Open the search options, set your rule, click Create filter, then tick Skip the Inbox (Archive it). Matching new mail then bypasses the Inbox. Filters act on incoming mail, so archive the backlog by date first.
Will archived emails come back to my inbox?
Only if someone replies to that thread, which returns it to the Inbox. Otherwise archived mail stays in All Mail until you move or delete it.