Choose a time filter
Select Between two dates for fixed boundaries, or Older than/Newer than for a rolling period that stays useful over time.
Create a Gmail search for an exact date range or relative age, then combine it with sender, subject, status, and attachment filters.
Date controls are prioritized below. Choose an exact range or find messages older or newer than a number of days, months, or years.
Use after:YYYY/MM/DD and before:YYYY/MM/DD to search between dates. Gmail treats after: as the lower boundary and before: as an exclusive upper boundary, so a January search ends before February 1.
For a rolling period, use newer_than:30d or older_than:1y. The builder formats either approach and checks that the range is logically valid.
Select Between two dates for fixed boundaries, or Older than/Newer than for a rolling period that stays useful over time.
Enter an After and Before date, or a positive amount with days, months, or years. The builder validates the order.
Use sender, subject, attachment, location, or status filters when the date range still returns too many messages.
These queries show fixed ranges and relative ages. Replace the dates and addresses with your own values.
Gmail date operators use year, month, and day. An exact month is easiest to express as an inclusive start and an exclusive next-month boundary. For a single day, search after the previous day and before the following day, then review local time behavior.
Date interpretation can be affected by time zone and message timestamps. If a message close to midnight is missing, widen the window by one day and then narrow it with another condition.
Date alone can still return thousands of messages. Add from: for a sender, subject: for a topic, filename:pdf for a file type, or is:unread for outstanding mail. Gmail treats the separate terms as conditions that must all match.
Avoid adding several uncertain filters at once. Begin with the date window, confirm it returns plausible results, and then add one constraint at a time.
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.
A Gmail search by date can serve either an investigation or a routine. Use fixed after and before dates when you need to reproduce the same accounting period, trip, launch, or support incident later. Use newer_than for a dashboard-like search that should keep moving forward. Record the intended time zone when results may be audited by another person, and widen the range before concluding that a message was never received.
Use YYYY/MM/DD, such as after:2026/01/01. Four-digit years are the clearest choice.
No. before:2026/02/01 normally excludes February 1, making it useful as the upper boundary for January.
Use older_than:1y. You can change y to m for months or d for days.
Yes. Combine filters, for example from:person@example.com after:2026/01/01.
Operator syntax is based on Google’s official Gmail search documentation. InboxQuery is independent and does not access your account.