Gmail search query builder

Gmail's search syntax is powerful but easy to forget. Pick the fields you need, and we'll assemble the query.

Generated Gmail query will appear here.

FAQ

Does Gmail support these operators?
Yes — every operator emitted by this tool is documented in Google's official Gmail search reference.
What's the difference between newer_than: and after:?
newer_than: takes a relative duration (7d, 2m, 1y). after: takes a YYYY/MM/DD date. Both are valid; this tool emits the relative form.
Can I paste the query into Gmail?
Yes. Copy the output and paste it into the Gmail search bar.
Does this work with Workspace search?
Yes. Workspace inherits Gmail's search syntax exactly.