How to Open an MBOX File (Gmail Takeout Export)
Quick answer: An MBOX file is a whole mailbox saved as one file, which is what Google Takeout gives you when you export Gmail. To open it, import it into a desktop mail app: Thunderbird with the free ImportExportTools NG add-on on Windows, Mac or Linux, or Apple Mail on a Mac. Gmail itself cannot open the file.
You exported your Gmail with Google Takeout, unzipped the download, and found a single file ending in .mbox. Double-clicking it may not open anything useful, and a text editor shows a wall of raw text. That is normal. The file is fine. It just needs a mail app to read it.
This guide covers:
- What an MBOX file is and how Google Takeout creates it
- Opening it in Thunderbird or Apple Mail
- Why Gmail can’t open it, and the workaround
- Converting it to PDF or EML and getting the attachments out
Every method here is free and runs on your own computer.
What is an MBOX file?
An MBOX file is a mailbox stored as one plain-text file. The emails sit one after another. Each one starts with a separator line that begins with From (the word “From” and a space), followed by the full message: headers, body, and attachments encoded as text. RFC 4155 describes the format and notes that no single official specification exists, so details vary between the apps that write it.
Compared with the other email file types:
| Format | What it holds | Typical source |
|---|---|---|
| .mbox | Many emails in one file | Google Takeout, Thunderbird, Apple Mail export |
| .eml | One email | Gmail “Download message”, most mail apps |
| .msg | One email, Microsoft’s binary format | Outlook on Windows |
If you have a single .eml file instead, read what an EML file is or open it in our free EML Viewer. The EML Viewer does not open MBOX files.
Where your Gmail MBOX file comes from
Google Takeout is Google’s export tool. When you select Mail, Takeout packs your messages and attachments into MBOX files. Google’s help page adds a few details that explain what you see:
- It arrives as zip files. Unzip the download first. The MBOX file is inside the Mail folder.
- Big exports are split. If your mail is larger than the archive size you picked, Takeout creates several zip files. Download and unzip all of them. Google suggests choosing the 50 GB size to make a split less likely.
- Download links expire. The archive expires in about 7 days. After that, create a new export.
- Labels become a header. Each message keeps its Gmail labels in a header called
X-Gmail-Labels. Google notes that mail apps do not turn this header into folders today.
According to Gmail Help, the export includes message content, headers, attachments and labels. Encrypted messages stay encrypted in the download.
If you have not exported yet and only need part of your mail, our guide to backing up Gmail emails with attachments compares Takeout with lighter options.
How to open an MBOX file in Thunderbird (Windows, Mac, Linux)
Thunderbird is a free mail app from Mozilla. With the free ImportExportTools NG add-on, it imports MBOX files, which makes it the simplest choice on Windows and Linux. It works on a Mac too.
- Install Thunderbird from thunderbird.net.
- Add ImportExportTools NG. Open the menu, choose Add-ons and Themes, search for “ImportExportTools NG”, and add it.
- Import the file. In the folder pane, right-click Local Folders, open the ImportExportTools NG menu, choose the mbox import option, and select your
.mboxfile. - Read and search. The MBOX appears as a new folder under Local Folders. Click it to read, search, and open attachments like any other mail.
One rule from the add-on’s own notes: MBOX import works into Local Folders, not into an IMAP account folder. Import locally first, then copy messages elsewhere if you need to.
How to open an MBOX file in Apple Mail on a Mac
Apple Mail reads MBOX files without any add-on. Apple’s Mail User Guide gives these steps:
- Open Mail and choose File > Import Mailboxes.
- Select Files in mbox format and continue.
- Choose the folder that contains your
.mboxfile. - The messages appear in a new mailbox called Import in the sidebar. Drag them to other mailboxes or keep them there.
Can you open an MBOX file in Gmail?
No. Gmail on the web has no way to open or upload an MBOX file. Its Import mail and contacts setting copies mail from another email account, as Gmail Help describes, not from a file on your computer.
If you need the emails back inside Gmail, a desktop mail app can do the copying:
- Import the MBOX into Thunderbird’s Local Folders, as above.
- Add your Gmail account to Thunderbird.
- Select the imported messages and copy them into a folder of your Gmail account. Gmail shows that folder as a label.
The copied mail counts toward your Google storage. If your storage is already tight, read Gmail storage full before you start.
How to convert an MBOX file to PDF or EML
You do not need a paid converter for this. Import the MBOX into Thunderbird first, then use ImportExportTools NG:
- To PDF. Select the messages, right-click, and use the ImportExportTools NG export option for PDF. For a single email, open it and print it to PDF.
- To EML. Export the messages as EML files, one file per email. Each
.emlfile then opens in almost any mail app, or in our EML Viewer without installing anything.
Exports can include the attachments or leave them out. A PDF holds the message text only, not the attached files.
How to get the attachments out of an MBOX file
Attachments are inside the MBOX, encoded as text, so you cannot pick them out of the raw file. Two ways work:
- One email at a time. Import the MBOX into Thunderbird or Apple Mail, open the email, and save its attachments.
- Many emails at once. In Thunderbird, use the ImportExportTools NG export with attachments included.
If the attachments were the only reason you exported, you can skip the MBOX completely. While the emails are still in Gmail, Save Bulk Gmail Attachments saves every attachment from the emails you select to a ZIP file or a Google Drive folder, as normal files. It does not read MBOX files, so this only helps before you delete the mail. See how to download Gmail attachments in bulk for the full walkthrough.
Is it safe to open an MBOX file?
An MBOX file is plain text. It cannot run by itself. The risk is the same as for any old email: links and attachments inside it. Do not open attachments you would not have opened when the email first arrived.
Two practical cautions:
- Avoid upload sites for private mail. An online MBOX viewer has to receive your whole mailbox. Thunderbird and Apple Mail read the file on your own computer.
- Work on a copy. Keep the original zip from Takeout until you have checked that the import shows the emails you need, old and recent.
Frequently Asked Questions
What is an MBOX file?
An MBOX file is a mailbox saved as one file. It stores many emails one after another, each starting with a 'From ' line, with attachments encoded inside. Google Takeout exports your Gmail as MBOX.
What program opens an MBOX file?
Thunderbird (Windows, Mac, Linux) with the free ImportExportTools NG add-on, and Apple Mail on a Mac through File > Import Mailboxes. Both are free and read the file on your computer.
Can I open an MBOX file in Gmail?
Not directly. Gmail's import feature copies mail from another email account, not from a file. To put MBOX emails back into Gmail, import the file into Thunderbird, connect your Gmail account, and copy the messages into a Gmail folder.
How do I open an MBOX file on Windows?
Use Thunderbird, which is free. Install it, add the ImportExportTools NG add-on, then import the .mbox file into Local Folders.
How do I convert an MBOX file to PDF?
Import the MBOX into Thunderbird, select the messages, and export them as PDF with ImportExportTools NG. For one email, open it and print it to PDF.
Does an MBOX file include attachments?
Yes. Attachments are stored inside each message in the MBOX file, encoded as text. A mail app shows them as normal attachments once you import the file.
Why did Google Takeout give me several files?
Takeout splits an archive into several zip files when it is larger than the size you chose. Download and unzip every part. Choosing the 50 GB size makes a split less likely.