Choose older than
Set the age amount and unit. One year is a practical starting point, while several years creates a smaller historical set.
Create a Gmail search for messages older than a chosen number of days, months, or years, then narrow the result before reviewing or cleaning up.
The default recipe searches messages older than one year. Change the age or add sender, file, status, and location filters.
Use older_than:1y to find Gmail messages older than one year. Replace 1 with another amount and y with m for months or d for days.
For a fixed historical cutoff, use before:YYYY/MM/DD. Add sender, attachment, or size filters to turn a broad archive into a manageable review list.
Set the age amount and unit. One year is a practical starting point, while several years creates a smaller historical set.
Add a sender, file type, location, status, or size threshold so the search aligns with your cleanup or research goal.
Run the query in Gmail and review conversations. Searching is safe; deletion and bulk changes occur only when you choose them in Gmail.
Relative age queries stay current, while before: queries preserve a fixed cutoff date.
older_than:1y moves with the current date, which makes it convenient for a saved cleanup routine. before:2024/01/01 always refers to the same historical boundary and is better for audits or a known event.
Choose one date strategy rather than stacking contradictory age conditions. The builder keeps the mode explicit and prevents a reversed exact range.
Age alone does not tell you whether a message is disposable. Old contracts, receipts, account notices, family records, and legal documents may remain valuable. Add categories or known senders only when they accurately represent the material you intend to review.
A search query does not delete anything. If you choose a bulk action in Gmail, check the Select all conversations scope and confirm that the query excludes messages you need.
Use sender and recipient addresses, subject text, included words, an exact phrase, and comma-separated exclusions. Blank fields remain outside the query, so you can work with incomplete information.
Combine a fixed date range or rolling message age with read status, mailbox location, Gmail category, attachment presence, filename, and complete-message size limits.
The result is standard query text for Gmail’s search box. InboxQuery also describes each fragment, flags conflicting boundaries, offers one-click copying, and creates a direct Gmail search link.
Begin with the condition you know is true. That may be a sender address, a broad date window, an attachment type, or a mailbox location. Run that simple query first. When the result contains the target but is too large, add one more condition. This incremental method is easier to debug than starting with a long query made from several uncertain memories.
If a query returns nothing, remove the condition you trust least. Display names can hide a different sender address, subject wording may not be exact, categories can be assigned unexpectedly, and date boundaries can exclude messages near midnight. Switching to in:anywhere is useful when Spam or Trash may contain the message, but it does not search another account or restore permanently deleted mail.
The builder handles empty, valid, and invalid states without contacting Gmail. A blank form shows a clear empty result. A valid combination enables copy and search actions. Reversed date boundaries, non-positive age values, and an impossible size band display an error and disable the actions until the input is corrected. Gmail—not InboxQuery—decides which existing messages match the finished query.
Copying the query is useful when you want to inspect or edit it in Gmail before searching. The direct link is faster when the generated text already matches your intent. Both actions use the same visible query, and neither grants InboxQuery permission to your account. Rolling age filters change over time, while fixed dates continue to describe the same period.
When you find old emails in Gmail, separate discovery from deletion. First identify records that support taxes, warranties, contracts, identity recovery, medical history, or personal correspondence. Then narrow disposable groups by sender, category, attachment type, or size. This staged approach reduces the chance that a broad age query becomes an unsafe bulk action. If a record must be retained outside Gmail, verify the export or backup before removing the original conversation.
Search older_than:1y in Gmail. Use older_than:2y for two years or older_than:6m for six months.
Use before:YYYY/MM/DD, such as before:2024/01/01.
Yes. Combine older_than: with has:attachment, for example older_than:1y has:attachment.
No. It creates search text only. Any selection, deletion, or archive action happens inside Gmail under your control.
Operator syntax is based on Google’s official Gmail search documentation. InboxQuery is independent and does not access your account.