Search in Gmail

To quickly find emails and attachments, use search chips, advanced search, and other search features in Gmail.

Learn what happens when you search in Gmail

  • To help you search faster, Gmail suggests search terms as you enter words. These search terms are based on information from your Gmail account, like:
    • Contacts
    • Labels
    • Messages
    • Past searches
  • To improve your search experience, searches you make in Gmail that return no results show related results instead.
  • You can sort search results by relevancy or by chronological order. To sort your results, select Most relevant or Most recent.

Search for emails

In this article, learn how to:

Use the search bar

An animation of searching in Gmail on desktop

Important: If you don’t have an internet connection, you can only search for emails synced with your device. Learn how to use Gmail offline.

  1. On your computer, open Gmail.
  2. At the top, in the search bar, enter your search criteria.
  3. Press Enter.

Tip: To sort emails in chronological order, above the search results, click Most relevant and then Most recent.

Narrow your search results

To narrow your search, you can:

  • Use search chips for emails & attachments
  • Use advanced search
  • Use search operators
  • Ask Gemini in Gmail
Use search chips for emails & attachments
  1. On your computer, open Gmail.
  2. At the top, in the search box, enter your search criteria.
  3. Press Enter.
  4. Under the search box, select a chip:
    • From: Search for anything from a specific email address.
    • Any time: Search for anything that’s sent within a certain date range or specific date.
    • Has attachment: Search for anything with attachments or have a specific type of attachment:
      • Google Docs
      • Google Sheets
      • PDF
    • Exclude calendar updates: Search for anything that isn't a Google Calendar update.
    • To: Search for anything you sent to a specific email address.
    • Is unread: Search for anything that’s currently marked as "Unread."

Tip: If you use Chat in Gmail, you can find additional search chips under the search box:

  • Mail: Search for emails in your inbox.
  • Conversations: Search for messages in Chat.
  • Spaces: Search for spaces in Chat.
Use advanced search

You can use the advanced search option menu to search for additional functions, like saved filters.

  1. On your computer, open Gmail.
  2. At the top, in the search box, click Show search options photos tune.
  3. Fill in any of these sections:
    • From: Search for anything from a specific email address.
    • To: Search for anything you sent to a specific email address.
    • Subject: Search for anything that matches the subject line of an email.
    • Has the words: Search emails that match specific words and phrases.
    • Doesn’t have: Excludes emails from your search that match specific words and phrases.
    • Size: Searches for emails that match a certain size.
    • Date within: Search emails sent within a specific timeframe.
    • Search: Search emails listed in other areas of Gmail, like:
      • Custom labels
      • Spam
      • Trash
  4. At the bottom, click Search.

Tip: To create a filter based on your search results, click Create filter. Learn more about filters.

Use search operators

To filter Gmail search results, you can use search operators, like words or symbols. If you search for emails, you can combine multiple search operators.

For example, you can search for:

  • Senders: sam@your-company.com
  • Date ranges: after:2025/01/01 before:2025/05/01
  • Files, attachments, and other attributes: has:attachment

For a full list of search operators, learn how to refine searches in Gmail.

Tips:

  • If you search for a person’s email address, the results show emails that include their alias.
    • To limit the search to only the original email, enclose the search in quotes. For example, "from:john.doe@example.com."
  • If you search "from:email," the results show Drive files shared by that email address.
Ask Gemini in Gmail

If you have an eligible Google Workspace or Google AI plan, you can ask Gemini in Gmail to search for emails.

For example:

  • "Show my unread emails."
  • "Emails from [person] sent last week."
  • "Show unread emails from this week."

Learn how to collaborate with Gemini in Gmail.

Search for emails in Spam & Trash

Important: By default, emails in Spam and Trash aren’t included in a standard search. To find emails in Spam and Trash, use advanced search in Gmail.

An animation where someone clicks the "Show search options" icon and then chooses "Mail & Spam & Trash" in the Search menu. After they select where to search, the user enters "adam" and clicks "Search."

  1. On your computer, open Gmail.
  2. At the top, in the search box, click Show search options photos tune.
  3. Next to "Search," in the dropdown menu, click the "All Mail" and then Mail & Spam & Trash.
  4. Enter information that’s in the email.
    • If you're not sure about the exact words or details to enter, leave the fields blank.
  5. Click Search.

Tips:

Clear search history

  1. On your computer, open Gmail.
  2. At the top, click the search box.
    • Your most recent search may show.
  3. On the right, in the search result, click Delete .

Learn how searches are saved in your Google Account

Important: The words you use to search and browse in Gmail are saved. This feature improves suggestions in your future searches. To use this feature, on the "Activity controls" page, turn on Web & App Activity.

  • If you clear your search history in Gmail, all your email searches are removed across all devices.
  • To control your saved activity, go to My Activity.
  • You can also clear your search history from Google servers. Learn how to delete your activity.

Related resources

Search
Clear search
Close search
Main menu
5578765879614071970
true
Search Help Center
true
true
true
true
true
17
false
false
false
false