How to Export Gmail with Google Takeout (and Open the MBOX File)
A step-by-step guide to exporting Gmail with Google Takeout: choosing all mail or certain labels, what's inside the ZIP, and how to open and search the MBOX file afterward.
A step-by-step guide to exporting Gmail with Google Takeout: choosing all mail or certain labels, what's inside the ZIP, and how to open and search the MBOX file afterward.
Google Takeout is Google's free tool for downloading a copy of your data. For Gmail, it gives you your email as MBOX files inside a ZIP. People use it to back up a mailbox, keep a copy before closing an account, hand email to a lawyer, or answer a records request.
This guide walks through each Takeout screen, explains what is inside the download, and shows how to open and search the MBOX file once you have it.
Go to takeout.google.com and sign in. You will see a long list of Google products, most of them checked.
Click Deselect all at the top of the list, then scroll down and check Mail. Exporting only Mail keeps the download smaller and faster.
Under Mail, click All Mail data included. You have two choices:
Picking labels is the best way to keep the export small. It also helps if the tool you plan to use has a file size limit.
Click Next step. Choose a delivery method. "Send download link via email" is the simplest. You can also send the export to Google Drive, Dropbox, OneDrive, or Box.
Choose Export once unless you want Takeout to repeat the export on a schedule.
Choose .zip as the file type. It opens on Windows and Mac without extra software, and most tools that read Takeout exports expect it.
The file size setting controls when Takeout splits the export into several ZIP files. If your mailbox is larger than the size you pick, you get several parts with names ending in -001, -002, and so on. Pick a larger size to get fewer parts.
Click Create export. Google emails you when it is ready. Download every part from the link in that email. The link expires after about a week, so download soon.
When you unzip the download, the email is in a folder called Takeout/Mail. What you find there depends on the choice you made in Step 3.
| You exported | What you get |
|---|---|
| All mail | One file named All mail Including Spam and Trash.mbox, plus a User Settings folder with your filters, forwarding addresses, and vacation responder |
| Certain labels | One .mbox file per label, such as Inbox.mbox and Sent.mbox |
A few details are worth knowing before you open the files:
X-Gmail-Labels. A good MBOX viewer reads that header and rebuilds your folders.Clients/Acme becomes a file called Clients_Acme.mbox. The label inside each email keeps its real name.For more on how MBOX compares to PST, EML, and MSG, read our guide to email file formats.
ViewExport's MBOX viewer opens Takeout exports without any unzipping. Upload the Takeout ZIP as Google gives it to you, or upload a single .mbox file. ViewExport turns each Gmail label into a folder, merges duplicate copies, and lets you search every email by keyword, sender, recipient, and date. You can export the results to CSV, JSON, or PDF.
This is the best fit when you need to review the email rather than just read it, for example for a lawsuit, an HR investigation, or a data subject access request. ViewExport also handles Slack exports and PST files, so you can search a person's email and chat history in one place.
Thunderbird is a free email app for Windows, Mac, and Linux. Install the ImportExportTools NG add-on, then use it to import the .mbox file into a local folder. Thunderbird does not read Gmail labels, so the whole file appears as one folder.
In Apple Mail on a Mac, choose File > Import Mailboxes, pick "Files in mbox format", and select the folder that holds your .mbox file. The email appears under "On My Mac". Apple Mail also ignores Gmail labels.
It depends on the size of the mailbox. Small exports are often ready within an hour. Large mailboxes with many attachments can take a day or more. Google emails you when the export is ready.
Gmail has no direct MBOX import. You can import the file into Thunderbird or Apple Mail with a Gmail account connected, then drag the email into Gmail folders, but this is slow for large mailboxes.
Attachments make up most of the size of a typical mailbox. Spam and Trash are also included when you export all mail. To get a smaller file, export only the labels you need.
Takeout is for people exporting their own account. Google Vault is an admin tool in some Google Workspace plans that lets a company search and export many users' email for legal holds and investigations. Both produce MBOX files. Our Google eDiscovery guide covers Vault in more detail.

PST, EML, MSG, and MBOX are four different ways to package email data, and they don't work interchangeably. Here's what each one stores, where it comes from, and which tools open or convert it.

PST files are Outlook's local email archive format. They show up in migrations, eDiscovery exports, and investigations. Here's what they contain, how to open one with or without Outlook, and why PST makes a poor long-term archive.

What EML files are, where they come from, how to open them on Windows and Mac, and how to convert EML to PDF for review or production in a legal or compliance context.