# Gmail Cleanup > A free mailbox cleanup report that runs in the browser. Drop the .mbox file from a Gmail export (Google Takeout), Thunderbird or Apple Mail and see which senders send the most email and take the most space, with the Gmail search that selects their mail and the unsubscribe links they put in their own headers. Nothing is uploaded. URL: https://gmail-cleanup.skillsafe.ai/ ## What it does (free, in the browser) - Reads .mbox files of any size in 8 MB pieces. Only headers and sizes are kept; message bodies are counted and dropped as the file is read. - Every sender (or sending domain): emails, size with attachments, first and last date, the Gmail tab most of its mail sits in (from the X-Gmail-Labels header in a Takeout export), whether it stopped sending, and its List-Unsubscribe link (RFC 2369), marked one click when it also sends List-Unsubscribe-Post (RFC 8058). - Your own sent mail is left out; spam and trash are left out unless you count them. - All mail, or only mail older than one or two years (counted back from the newest email in the file). - Tick senders to build the Gmail search: from:a@example.com, several as {from:a from:b}, with older_than:1y or older_than:2y; a sending domain is searched by every address seen from it; long lists are split into searches of 25 addresses. - The 10 largest single emails. - Downloads: senders CSV, a Markdown cleanup list with the searches, and a copyable summary. - Three made-up sample mailboxes (reserved .example domains) run the same code as a real file. ## Optional AI step (metered, sign-in on press) Task `sort`. Input: `task` ("sort"), `note` (what to keep or clear, may be empty, up to 300 characters) and `facts` (JSON text: up to 60 senders, biggest by count, each with id, address, display name, emails, MB, last month, Gmail tab and share, has_unsubscribe, one_click, high_volume, large_storage, mostly_promotions, stopped and two recent subject lines with long numbers and addresses masked). Reply: one JSON object {"senders":[{"id","kind","action","why"}]}, ids only. Kinds: newsletter, promotion, social, receipt_order, account_alert, bill_finance, travel_booking, work_business, personal, other. Actions: keep, unsubscribe, delete_old, delete_all, review. Reasons: has_unsubscribe, high_volume, large_storage, mostly_promotions, stopped, note_keep, note_drop, transactional, personal_sender, bulk_sender. The page checks every answer: unsubscribe only where the mail carries a link and the sender has not stopped; never delete_all for personal, work, bills or receipts; a measured reason must be true of the counts; a note reason needs a note; a missing sender is listed to look at yourself. It then writes the Gmail searches per action and the space each frees. Model: llm-default. API guide: https://gmail-cleanup.skillsafe.ai/api.html ## Source Adapted from the agent skill @claude-office-skills/email-classifier (https://skillsafe.ai/skill/@claude-office-skills/email-classifier, claude-office-skills/skills, MIT): its email types and actions (keep, archive, delete, look at it yourself), applied to whole senders. Not affiliated with Google. The page never signs in to Gmail and deletes nothing; you paste the search into Gmail yourself.