How to Organize Gmail Into Folders Automatically

Last updated: September 13, 2026 · Ook beschikbaar in het Nederlands

Gmail can auto-sort mail (the feature is just called "filters") and it's buried in Settings. It works, but it's rule-at-a-time, flat-label-only, and offers no help figuring out which rules you actually need. Here's how to set it up, how Gmail's automatic categories fit in, and exactly where both run out.

We make Email Elysium, a Chrome extension that adds a real nested folder tree to Gmail, so we have a horse in this race. Most of this page is about Gmail's built-in tools, because for a lot of people they're enough on their own.

Organizing your inbox into folders by hand

Before automating anything, it helps to have somewhere for mail to go. Gmail's folders are called labels: create one from Settings › Labels or by clicking Create new label at the bottom of the sidebar, then file messages into it by selecting one and clicking Move to, or by dragging a message onto the label directly. Nest a label under another with Nest label under to build a shallow hierarchy; see what that option actually does if you want the full mechanics.

Doing this by hand works fine for a backlog you're clearing once. It doesn't hold up against a busy inbox, which is what the rest of this page is about.

How to automatically move emails to a folder in Gmail

"Move" isn't quite the right word for what Gmail does, but this is the setup that gets closest to it: a filter that applies a label and skips the inbox at the same time, so the message never sits in your inbox and is reachable only under that label.

Setting up a Gmail filter

  1. Open Settings › See all settings › Filters and Blocked Addresses, or click the small dropdown arrow inside the search bar.
  2. Enter match criteria (sender, subject, keyword, or a combination) and click Create filter.
  3. Choose an action: apply a label, skip the inbox, mark as read, star, categorize, forward, or delete. You can stack several actions on one filter.
  4. Optionally check "Also apply to matching conversations" to retroactively sort mail already sitting in your inbox.

This runs automatically on every new email from then on, which is the real value: set it up once for "everything from Stripe" or "anything with 'invoice' in the subject," and you never touch it again.

Combine Apply the label with Skip the Inbox and you get the closest thing Gmail offers to filing: the message never appears in your inbox and is reachable only under its label. That's the closest Gmail gets to a real move, and it's the setup most "auto-organize your Gmail" advice is describing.

How to auto-categorize emails in Gmail

"Categorize" means something specific in Gmail, and it's not the same thing as labelling. Gmail ships five categories (Primary, Social, Promotions, Updates and Forums), which appear as tabs across the top of your inbox. Turn them on under Settings › Inbox › Categories and tick the ones you want.

Gmail assigns incoming mail to these automatically using its own classifier. You are not writing the rules; you are accepting Google's. Two things follow from that:

So: auto-categorizing into Gmail's categories is free and automatic. Auto-categorizing into your categories is the thing that takes work, and the rest of this page is about that.

Auto-sorting into nested folders instead of flat labels

Here's the wrinkle that trips people up. Gmail filters file into labels, and a label is a tag attached to a message, not a place the message moves to. One email can carry five labels at once and still sit in your inbox. A folder, in every other email client, holds a message in exactly one location.

Gmail does support nesting labels one level deep, via the Nest label under option in the label menu, so you can build Clients / Brightlane. But nested labels collapse by default, the expand state doesn't reliably persist, and a filter pointed at a nested label is still just applying one flat tag. We wrote up the full mechanics in labels vs folders and why nested labels keep disappearing.

The practical consequence: if your filing plan is three or four levels deep, Gmail's automatic sorting will get the mail tagged correctly and still leave you with a sidebar you can't navigate.

Where it runs out

Gmail filters vs auto-sort rules: a side-by-side

  Gmail filters Email Elysium rules
Files into A flat label (nestable one level) A nested folder tree, any depth
Rule nesting None: every filter is independent Parent/child rules; deepest match wins
Ordering Not configurable Top-down, first match wins
Suggests rules No Yes: from patterns in your own inbox
Preview before saving No Yes: shows which existing mail matches
Account access needed Built in: it is your account None: no OAuth, no scope, no consent screen
Works on phone / IMAP Yes, everywhere No: desktop Gmail tab only

A rule builder that suggests rules and files into real folders

Email Elysium's rule builder works the way you'd expect a Gmail filter to work if it had grown up: rules can nest (a client rule with a sub-rule for that client's invoices), matches file directly into the real nested folder tree instead of a flat label, and you can preview exactly which existing emails a rule would match before saving it.

It also solves the "notice the pattern yourself" problem: it looks at your own inbox and suggests rules for senders and domains you actually get repeat mail from, so the starting rule set isn't blank.

All of it runs locally. The extension requests no Gmail permission (no OAuth, no sign-in) and reads only the message list Gmail has already rendered in your tab.

The honest tradeoff, stated plainly: because nothing is written back to your Google account, the folder tree lives in the Gmail tab on the computers where you've installed the extension. It does not follow you to the Gmail mobile app or an IMAP client. If sorting has to be visible on your phone, Gmail's own filters and labels are the right tool, and you should use them.

Nested folders for Gmail, computed in your browser.

Add to Chrome, free (opens in new tab) No Gmail permission. No account required. Privacy policy.

FAQ

Can Gmail automatically sort incoming email into folders?

Yes, via Settings › Filters and Blocked Addresses. Match on sender, subject, or keywords, and apply a label, skip the inbox, categorize, or forward; it runs automatically on new mail from then on. The caveat is that Gmail files into labels rather than folders: a label is a tag attached to a message, not a location it moves to.

How do I automatically categorize emails in Gmail?

Gmail has five built-in categories (Primary, Social, Promotions, Updates and Forums), enabled under Settings › Inbox › Categories. Gmail assigns mail to them automatically, and a filter's "Categorize as" action can override that. You can't create your own categories; for categories you define yourself you need labels plus filters, or a third-party rule builder.

What are the limits of Gmail's filters?

One flat label per filter, no rule reordering or if/then nesting, and no pattern suggestions; you have to notice the clutter and build each filter yourself. There's also no dry-run preview of which existing emails a new filter would catch.

Why do my emails go to the wrong category in Gmail?

Category assignment is an automated classifier, not a rule you control, so it sometimes disagrees with you. Correct it per message by dragging the email to the right tab, or permanently with a filter that matches the sender and uses the "Categorize as" action.

Is there a way to get auto-sort rules with real nested folders?

Extensions like Email Elysium file mail into an actual nested folder tree and can suggest rules based on patterns already in your inbox, rather than requiring you to build each one from scratch.

Do automatically sorted folders sync to the Gmail mobile app?

Gmail's own filters and labels do, because they live in your Google account. A browser extension that builds its tree locally does not: it lives in the Gmail tab on the computers where you installed it. That's the tradeoff for never requesting access to your account.

How do I make Gmail automatically move emails to a folder?

Create a filter, tick Apply the label and choose the destination, then also tick Skip the Inbox. The message never appears in your inbox and is reachable only under that label, the closest thing Gmail offers to a real move.

How do I organize my Gmail inbox into folders?

Create labels under Settings › Labels, then file mail into them by hand with Move to or by dragging, or automatically with a filter. Nest a label under another with Nest label under to build a shallow hierarchy.