Cleanfox

How to export your Gmail as .mbox with Google Takeout (and other providers)

Get a complete, offline copy of your mail in a standard format — useful for backups and for reading unsubscribe links privately.

Updated 12 Nov 2026 Last verified 12 November 2026
Laptop showing Google Takeout with the title How to Export Your Gmail Data.
Key takeaways
  • An .mbox file stores many emails, with full headers, in one plain-text file.
  • Gmail exports .mbox through Google Takeout; you can export all mail or chosen labels.
  • Apple Mail and Thunderbird can also export mbox; Outlook.com and Yahoo need an extra step.
  • An export contains your whole inbox — store it carefully and delete working copies.

What an .mbox file is

An .mbox file is a simple, long-standing format for storing many emails in a single file. Each message begins with a line that starts with the word “From” followed by a space, then the message's full headers and body. Because it is plain text, almost every desktop mail program can read it, and it keeps everything — including the List-Unsubscribe headers your newsletters carry.

Why export your mail at all?

  • Backup: an offline copy protects you if you lose access to your account.
  • Moving providers: most mail apps can import mbox.
  • Private analysis: you can read sender and unsubscribe information locally, without giving any app access to your account.
  • Records: some people keep yearly archives for taxes or business records.

mbox, eml, pst and msg

FormatWhat it holdsWho uses it
.mboxMany messages in one fileGmail (Takeout), Thunderbird, Apple Mail
.emlOne message per fileMost mail apps when you save a message
.pstA whole Outlook data fileOutlook desktop for Windows
.msgOne Outlook messageOutlook desktop for Windows

Export Gmail with Google Takeout

Google Takeout is Google's official tool for downloading copies of your data.

Step-by-step

  1. Open Google Takeout while signed in to your Google Account.
  2. Click Deselect all so you do not download every Google product.
  3. Scroll to Mail and tick it.
  4. Click All Mail data included if you want only certain labels, such as Promotions, Updates or a custom label. Untick Include all messages in Mail and choose your labels.
  5. Click Next step.
  6. Choose a delivery method — usually a download link by email — and a frequency of Export once.
  7. Choose a file type (.zip is easiest) and a maximum file size. Large mailboxes are split into several parts.
  8. Click Create export.
  9. Wait for Google's email, then download the archive and unzip it.
  10. Inside, open the Mail folder. Your mailbox is the file ending in .mbox.

How long it takes

Small exports can finish in minutes. Large mailboxes with many attachments can take hours or, occasionally, a day or two. Exporting only the Promotions or Updates labels is much faster and is all you need for unsubscribe work.

Download links expire

Google's download links are valid for a limited time. Download the files soon after the email arrives, and keep the email until you have checked the archive opens.

Tips for Gmail exports

  • Exports include labels as message headers, so you can still tell which label a message had.
  • If the archive is split into parts, each part contains its own .mbox file.
  • Use a desktop or laptop for the download; phones may struggle with large files.

Export one Gmail message

If you only need a few messages, there is no need for Takeout.

  1. Open the message on a computer.
  2. Click the three-dot More menu next to Reply.
  3. Choose Download message. Gmail saves a single .eml file.

You can also choose Show original and copy the whole source text.

Export from Apple Mail on a Mac

  1. Select a mailbox in the sidebar, such as Inbox or a newsletters folder.
  2. Choose Mailbox → Export Mailbox.
  3. Pick a destination folder and click Choose.
  4. The export is a folder ending in .mbox. The file named mbox inside it holds the messages.

For a single message, select it and choose File → Save As, then set the format to Raw Message Source.

Export from Thunderbird

Thunderbird already stores local folders in mbox format, but the files have no extension and live inside your profile folder. The easier routes are:

  • One message: select it and choose File → Save As → File to save an .eml.
  • A whole folder: install the third-party add-on ImportExportTools NG, right-click the folder and export it as mbox.

Export from Outlook.com and the new Outlook

Outlook.com does not export to mbox from the web.

Single messages

Open the message and use More actions to view the message source and copy it, or download/save the message where your version offers it.

Whole mailboxes

  1. Add your Outlook.com account to Thunderbird or Apple Mail using IMAP.
  2. Let the mail sync.
  3. Export the folder as mbox using the steps above.

Outlook desktop for Windows

Outlook desktop exports to .pst, not mbox. Dragging a message to the desktop creates a .msg file. Neither format is mbox; use the IMAP route above if you need mbox.

Export from Yahoo Mail

Yahoo Mail on the web does not offer an mbox export. You can open a message's View raw message option to copy its source, or add the account to Thunderbird or Apple Mail with IMAP and export from there. Yahoo may require an app password for IMAP access; create one in your Yahoo account security settings and delete it when you are done.

What to do with your .mbox file

Open it in a mail app

Thunderbird and Apple Mail can import mbox files so you can browse the messages offline.

A browser-based reader can open the file locally and list every sender with its List-Unsubscribe links, one-click support and warning signs, without uploading anything. Large files of several gigabytes can be read in chunks so the browser stays responsive.

Keep it as a backup

Store the file on an encrypted drive or in encrypted cloud storage, and label it with the account and date.

Keep the file safe

This file is your whole inbox

An mbox export contains private conversations, receipts, and possibly passwords or security codes sent by email. Never upload it to websites you do not trust, store it encrypted, and delete working copies when you are done.

Practical storage tips

  • Turn on full-disk encryption (BitLocker on Windows, FileVault on Mac).
  • Use an encrypted folder or password-protected archive for copies on USB drives.
  • Delete downloads from your Downloads folder after moving them.
  • Empty your computer's Recycle Bin or Trash afterwards.

Troubleshooting

“The download is a .zip, not .mbox”

Unzip it. The .mbox file is inside the Takeout → Mail folder.

“The file is huge”

That is normal for years of mail. Export only the labels you need next time, or use a tool that reads large files in chunks.

“My mail app cannot open the file”

Check the extension. Some programs expect .mbox; rename the file if needed. Thunderbird may need an add-on to import mbox.

“Some messages look garbled”

Older messages may use unusual character sets. Good readers decode most of them; a few may still show odd characters.

Exporting only what you need

A full export of a long-used Gmail account can be tens of gigabytes. For most purposes you need far less.

For unsubscribe work

Export only the Promotions and Updates labels, or create a label called “Newsletters” using a search such as unsubscribe older_than:1y, apply it to all matching conversations, and export just that label. The resulting file is small, quick to download and contains every List-Unsubscribe header you need.

For a yearly archive

Create a label for the year, apply it with a search such as after:2025/01/01 before:2026/01/01, and export that label. You get a tidy, dated archive.

For moving providers

Export everything, but check your new provider's import limits first. Some limit the size of each file they will accept.

Comparing export options

ProviderSingle messageWhole mailboxFormat
GmailDownload messageGoogle Takeout.eml / .mbox
Apple MailSave As → Raw Message SourceExport Mailbox.eml / mbox
ThunderbirdSave As → FileImportExportTools NG (add-on).eml / .mbox
Outlook.comView message sourceVia IMAP in another apptext / .mbox
Yahoo MailView raw messageVia IMAP in another apptext / .mbox

Checking your export worked

  1. Note the size of the .mbox file; an empty export is usually only a few kilobytes.
  2. Open it in a mail app or a reader and check that the number of messages looks right.
  3. Spot-check one recent and one old message.
  4. Only then delete the downloaded archive or the original email from Google.

Frequently asked questions

Does exporting delete my email?

No. Takeout and other exports create a copy. Your mailbox stays exactly as it was.

Can I export only newsletters?

In Gmail, yes: choose the Promotions or Updates label in Takeout, or create a label for newsletters first and export only that label.

How often should I export?

For backups, once or twice a year is reasonable. For unsubscribe work, export whenever you want a fresh list.

Can I import an mbox back into Gmail?

Not directly through the web. You can import it into a desktop mail app connected to Gmail via IMAP and copy the messages across.

Is .mbox the same on every app?

There are small variations, such as how lines starting with “From” inside messages are escaped, but good tools handle the common variants.

cleanfox.org is independent and not affiliated with Foxintelligence, NielsenIQ or any mail provider.