Import filters with mailFilters.xml

Import filters in Gmail: a mailFilters.xml that installs all your rules at once

Choose the rules you need, fill in your placeholders, and download the file. Gmail creates them all at once from Import filters, instead of clicking fifteen times. Free, no account needed, and no connection to your inbox.

Gmail knows how to import filters from a file. What it doesn't provide is the file.

Almost nobody knows that Gmail has a filter importer: it's in Settings → See all settings → Filters and Blocked Addresses, at the end of the list, next to 'Export filters'. It accepts a file called mailFilters.xml with all the rules inside and creates them in one go. The problem is that this file can only be obtained by exporting it from another account that already has the filters created, which is exactly what you don't have.

This functionality creates that file. You select the rules you want from the recipe book (17 curated recipes in 7 groups), fill in the placeholders required for each one —your domain, the sender you want to silence, the name of your label— and click download. The file is built in your browser with the Atom format of 'Export filters' from Gmail: one entry per rule, with its criteria (from, to, subject, hasTheWord, doesNotHaveTheWord, hasAttachment, size with its operator and unit) and its actions (label, shouldArchive, shouldMarkAsRead, shouldStar, shouldNeverSpam, shouldAlwaysMarkAsImportant, shouldNeverMarkAsImportant, forwardTo…). If you have entered your name and email in the profile, the file is signed with them.

As a pure client, there is no call to any AI, no quota, no registration, no cost: the file is generated instantly and comes directly from your browser to your download. We do not touch your inbox at any moment: we do not ask for Google permissions, we do not read or send emails, and we do not see your current filters. You import the file and Gmail does the rest.

And we make it clear: the scheme is built against the public format of 'Export filters', but it has not yet been verified against a real export from an account, so on screen it appears marked 'UNVERIFIED DATA (v1)'. That's why the same button always gives you the alternative: the recipes in text, with the same search and the same actions, to create the filters manually if your account rejects the file. We do not leave you hanging in either case.

No sign-up

Try Import filters with mailFilters.xml right here

Loading the tool…

Use it free without an account. If you want to save your result, you can sign up afterwards.

Save / Sign up

Benefits of Import filters with mailFilters.xml

Fifteen clicks become one

you choose N rules and Gmail creates them all in the same import, instead of opening the filter form once per rule, pasting the search, and checking the boxes again.

The exact path, displayed on the screen

Settings → See all settings → Filters and Blocked Addresses → Import filters → choose the file → Open file → Create filters. Including the checkbox 'Also apply to matching conversations' so that the rules clean what you already have in your inbox, not just what arrives.

Your placeholders are filled in once and travel everywhere

you enter your domain or your label and the value goes into the search, into the file criteria, and into the label names at the same time, without repeating it rule by rule.

Only complete rules enter the file

if a recipe has an unfilled placeholder, it stays out and alerts you to how many are missing. You don’t download an XML with an empty from: that Gmail accepts and then filters nothing.

Free, instant, and no account required

the XML is built in your browser, not on the server, so it doesn’t use AI, there’s no download limit, and it works as a guest.

The label tree, separate and copyable

the hierarchical labels your rules need (Administration/Bills, Orders/In transit…) are copied all at once to create them before importing, which is the order that avoids surprises.

Honesty about the scheme

the file is marked 'UNVERIFIED (v1)' on the screen, with a note explaining why. We prefer to tell you rather than have you discover it with a Gmail error.

Alternative output always

along with the XML, you get the recipes in text (recetas-filtros.txt) and the button to copy them, with the same search, the same criteria, and the same actions to create them manually.

Set up your filters once and let Gmail create them all at once

Choose your rules, fill in your placeholders, and download the file. No registration, no AI, and no connecting your Gmail account.

In the features that use AI, responses are generated by artificial intelligence and are not a substitute for professional advice.

Import filters in Gmail: generate your mailFilters.xml for free