Create rules to filter your emails

Want to get more out of Google apps at work or school?  Sign up for a Google Workspace trial at no charge.

On your computer, you can manage your incoming emails using Gmail's filters to send email to a label, or archive, delete, star or automatically forward your emails.

Create a filter

Create Gmail filter

  1. Open Gmail.
  2. In the search box at the top, click Show search options photos tune .
  3. Enter your search criteria. If you want to check that your search worked correctly, see what emails show up by clicking Search. 
  4. At the bottom of the search window, click Create filter.
  5. Choose what you'd like the filter to do.
  6. Click Create filter.

Note: When you create a filter to forward messages, only new messages will be affected. ​In addition, when someone replies to a message that you've filtered, the reply will only be filtered if it meets the same search criteria. 

Use a particular message to create a filter

  1. Open Gmail.
  2. Tick the box next to the email you want. 
  3. Click More More.
  4. Click Filter messages like these.
  5. Enter your filter criteria.
  6. Click Create filter.

Edit or delete filters

  1. Open Gmail.
  2. In the top right, click Settings Settings and then See all settings.
  3. Click Filters and blocked addresses.
  4. Find the filter that you'd like to change.
  5. Click Edit or Delete to remove the filter. If you're editing the filter, click Continue when you've finished editing.
  6. Click Update filter or OK.

Export or import filters

If you have a backup of your filters, you can import the filters in Gmail. You can also export your filters.

  1. Open Gmail.
  2. In the top right, click Settings Settings and then See all settings.
  3. Click Filters and blocked addresses.
  4. Tick the box next to the filter. 
Import a filter

An animation showing how to import a filter in Gmail

  1. At the bottom of the page, click Import filters
  2. Choose the file with the filter that you'd like to import.
  3. Click Open file.
  4. Click Create filters
Export a filter

An animation showing how to export a filter in Gmail

  1. At the bottom of the page, click Export
  2. This will give you an .xml file, which you can edit in a text editor if you like.

Related resources

Search
Clear search
Close search
Google apps
Main menu
16714241713498270446
true
Search Help Centre
true
true
true
true
true
17
false
false