← All Tools
Guide

How to export Gmail to an MBOX file (and open it)

MBOX is the standard single-file format for a mailbox: all your emails, one after another, with their attachments inside. Gmail's official way to create one is Google Takeout. It is free and needs no extra software. Step-by-step: 1. On a computer, go to takeout.google.com and sign in to the Gmail account you want to export. 2. Click "Deselect all", then scroll down and tick only "Mail". 3. Click "All Mail data included" if you only want some labels (for example Inbox and Sent). Leave everything selected for a full backup, including Spam and Trash. 4. Click "Next step". Choose "Send download link via email", "Export once", .zip, and a file size. 50 GB keeps a large mailbox in fewer pieces. 5. Click "Create export". Google emails you when it is ready, which can take hours or days for large mailboxes. The download link works for about a week. 6. Download the ZIP and keep it as your original copy. Where the MBOX file is: - Unzip the download and open Takeout, then Mail. - A full export is one file, usually named "All mail Including Spam and Trash.mbox". - Very large accounts are split into numbered parts, such as -001.zip and -002.zip, so the mailbox can be split across them too. - Each email keeps its Gmail labels in a hidden "X-Gmail-Labels" header line, so which label it belonged to is not lost. How to open it: - Thunderbird and Apple Mail can import an MBOX file directly. - Outlook for Windows cannot open MBOX; you would need to convert it first. - To search it and pull out emails or attachments without installing a mail program, use the Gmail MBOX Search & Export tool (link below). Upload the Takeout ZIP or the .mbox file, search by sender, subject, or date, and download CSV, HTML, EML, or the attachments as a ZIP. The tool reads the file in your browser and never uploads it. The current beta loads the whole mailbox into memory, so for a mailbox of many gigabytes, export a few labels at a time from Takeout. Gmail and Google Takeout are trademarks of Google LLC. Missing Features is not affiliated with Google.