How to export Gmail as an .mbox

Google will give you your mail as a file, but the feature is called Takeout and the file is called an mbox, so it is hard to find if you do not already know both words. You do not need to connect any account to this site.

The steps

  1. Go to takeout.google.com, signed in to the account you want.
  2. Choose Deselect all. Takeout defaults to every Google product you have ever touched.
  3. Scroll to Mail and tick it.
  4. Click All Mail data included, untick Include all messages in Mail, then tick only the labels you actually want and press OK — see below.
  5. Scroll to the bottom and click Next step.
  6. Leave Send download link via email and Export once, then Create export. Google emails a link when it is ready.
  7. Unzip the download. The .mbox is inside the Mail folder.

Two things worth knowing first

Pick your labels before you export. A whole mailbox can take hours or days to prepare and arrive as many gigabytes. One label is usually minutes and a few megabytes, and it is almost always what you actually wanted.

The archive expires after about 7 days, and allows 5 downloads. If yours has lapsed or you have used them up, nothing is lost: request the export again from Takeout and you get a fresh link.

Then make it readable

Upload the .mbox. You will see how many messages it found before paying anything.

Your export

A WhatsApp export (.zip or _chat.txt), an .mbox, or a Slack export .zip.

Your export is read to count the messages, held only until your archive is delivered, then deleted. If you never pay it is deleted within 24 hours and nothing is charged. What the finished archive looks like.