Clean Up Your Gmail With Instant Search & Filter Rules
Stop drowning in promotional blasts, stale newsletters, and oversized attachments. Build safe Gmail search queries in 10 seconds and download ready-to-import filter files—with automatic safety guardrails that protect your receipts, invoices, and starred emails.
What do you want to target?
Select the email pattern you want to find or filter out of your Gmail inbox.
How old should matching emails be?
Gmail filters can target historical backlog without touching recent threads.
Protect critical mail automatically
Never accidentally archive receipts, invoices, or important messages.
Copy & run in Gmail
category:promotions older_than:90d -is:starred -is:important -subject:(receipt OR invoice OR order)
Tip: Paste directly into the Gmail search bar at the top to preview matching emails instantly.
Download Gmail .xml filter
Import into Gmail Settings to filter incoming and existing emails automatically.
Filter actions when matched:
How to import into Gmail
- 1Open Gmail in your browser and click the Settings gear icon (top right) → See all settings.
- 2Click the Filters and Blocked Addresses tab.
- 3Scroll to the bottom, click Import filters, select the downloaded purebox-gmail-filter.xml file, and click Open file.
- 4Check "Also apply filter to matching conversations" to bulk-clean your existing backlog, then click Create filter.
When manual Gmail filters break
Static Gmail search operators are great for quick searches, but relying on rigid keyword rules for continuous cleanup carries hidden risks.
- •Brittle keyword matching: If a vendor changes their domain, formatting, or footer, the filter silently stops matching.
- •Catastrophic false positives: A filter matching "invoice" or "order" might archive an important customer inquiry or refund notification without you realizing it.
- •No context or reasoning: Static rules cannot determine if a newsletter is one you actually read every Tuesday or one you haven't opened in 8 months.
- •Rule clutter tax: Over time, users accumulate dozens of forgotten filters that conflict and cause unpredictable mailbox behavior.
- •Engagement-aware intelligence: PureBox looks at your real ~90-day Gmail engagement to separate active interests from genuine noise.
- •Clear 3-track separation: Sorts your mail into Inbox (keep), Archive (reclaim storage), and Trash (purge noise).
- •Plain-English rationales: Every proposed cleanup action includes an understandable rationale explaining why it was categorized.
- •100% review-first and reversible: Nothing moves in your Gmail until you review and click Apply. No surprises, no lost mail.
Frequently asked questions about Gmail filters & search operators
Everything you need to know about testing, importing, and automating Gmail filters safely.
How do I test a Gmail search query before creating a filter?
Copy the generated query string from this tool, open Gmail in your web browser, paste the string into the search bar at the very top, and hit Enter. Gmail will immediately display all matching emails so you can verify that no important messages, receipts, or personal threads are matched before applying changes.
How do I import a downloaded .xml filter file into Gmail?
In Gmail, click the gear icon in the top right and select "See all settings". Go to the "Filters and Blocked Addresses" tab, scroll down to the bottom, and click "Import filters". Choose the downloaded purebox-gmail-filter.xml file and click "Open file". Review the rules and optionally check "Also apply filter to matching conversations" to clean up past emails.
What are the best Gmail search operators for reclaiming storage?
The most effective operators for storage reclamation are "larger:10M has:attachment" (emails larger than 10 MB), "older_than:1y" (emails older than one year), and "category:promotions" (marketing emails). Combining these with safety operators like "-is:starred -is:important" ensures personal milestones and starred threads remain protected.
Does creating a Gmail filter delete existing emails in my inbox?
By default, newly created filters only act on incoming mail. However, when creating or importing a filter, Gmail presents a checkbox: "Also apply filter to matching conversations". If checked, Gmail will retroactively apply the action (e.g. Skip the Inbox / Archive) to existing emails matching the query.
Why do manual Gmail keyword and sender filters break over time?
Static filters rely on rigid keyword matches and static domain names. When companies update their sender infrastructure, rebranding domains, or footer layouts, static filters silently miss them. Furthermore, rigid keywords can accidentally match critical invoices or customer communications, creating dangerous false positives.
How is PureBox different from Gmail filter rules?
Gmail filters execute rigid boolean logic with no understanding of context or urgency. PureBox analyzes your real ~90-day engagement history, categorizes emails into three clear tracks (Inbox, Archive, Trash), provides plain-English rationales for every recommendation, and requires your explicit review before anything is touched in your inbox.
Related Gmail cleanup guides
Why static keyword rules fail and how review-first triage prevents lost mail.
Target storage hogs using size: and larger: operators without deleting receipts.
Safe cleanup strategies for thousands of marketing emails without collateral damage.
Quickly reclaim Google One storage quota before your account stops receiving mail.
Explore tailored cleanup workflows
Triage marketing blasts and promotional offers with personal engagement awareness.
Separate the newsletters you actually read from stale unread subscriptions.
Safely archive years of clutter to avoid Google One storage upgrades.
Estimate how many hours and gigabytes you can reclaim before connecting Gmail.