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.
Choose an exact range or a moving age filter, then add sender, subject, status, or attachment details.
Use Gmail search by date when a message is tied to a known day, month, or rolling age. For a fixed range, combine after:YYYY/MM/DD with before:YYYY/MM/DD; the builder keeps the boundaries visible so you can check the result before opening Gmail.
For a single day, use the previous day as the after: boundary and the next day as the before: boundary. If you mean a moving window, use newer_than:7d or older_than:1y instead of rewriting calendar dates.
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.
A Gmail search date range is easiest to reproduce when the start and end are explicit. Use after: for the lower boundary and before: for the next boundary; before: is exclusive, so before:2026/02/01 keeps January as the working range.
Search in Gmail by date first, then add one reliable clue such as from:, subject:, filename:, or is:unread. Sorting messages by date is a different task and is not the purpose of this query builder.
Start with the date condition that you know is correct. If the result is too broad, add a sender, attachment, or status filter one at a time. If the result is empty, remove the least certain condition before changing the whole date range.
The tool creates query text locally in your browser. Gmail returns the messages, while InboxQuery does not read, modify, or delete your mailbox.
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.
Use fixed after: and before: dates when the same historical period must be reproducible. Use newer_than: for a moving review queue. Open representative results and confirm the account, sender, date, and thread before any bulk Gmail action.
Use after:YYYY/MM/DD with before:YYYY/MM/DD, such as after:2026/01/01 before:2026/02/01. The second date is the exclusive upper boundary.
Use the day before as the after: date and the day after as the before: date, then review the results for time-zone edge cases.
Combine a date operator with from:, for example from:[email protected] after:2026/01/01 before:2026/02/01.
No. Date operators filter the results; they do not create a separate sort-by-date view.
Use older_than for a moving age such as older_than:1y. Use before: when you need the same historical cutoff every time.
Operator syntax is based on Google’s official Gmail search documentation. InboxQuery is independent and does not access your account.