Export emails from Gmail and Microsoft 365 to PST, MBOX, EML or PDF

Export Gmail, Microsoft 365, Exchange or IMAP email to PST, MBOX, EML, MSG, PDF or ZIP, and import PST, MBOX and EML files back, step by step.

The Backup tab's Export page for finance@contoso.com: Some folders with INBOX/Invoices ticked, and the As list open with EML, MBOX, MSG, PST, PDF and ZIP, PST chosen

Need your mail as files? Maybe a PST for Outlook, an MBOX archive, or a PDF of each email for a lawyer or an auditor. Mail Attachment Downloader exports emails from Gmail and Google Workspace, Microsoft 365 and Outlook.com, Exchange, or any IMAP or POP3 mailbox to PST, MBOX, EML, MSG, PDF or ZIP.

It also works the other way: it imports PST, MBOX and EML files. This post shows both, with the names you see in the program.

What you need

  • PRO Backup or any edition above it. Export and Import are on the Backup tab. The Free edition shows that tab as a preview only.
  • Windows 10 or later, 64-bit. No Outlook or other email program is needed, not even to write a PST file: the program connects to the mail server itself.
  • The mailbox added with Add account. Gmail, Google Workspace, Microsoft 365 and Outlook.com sign in with your browser.

Step 1: back up the mailbox

Export doesn’t read the mail server. It writes the files from the account’s backup: an encrypted copy of the emails, kept on your own system. So the mailbox is backed up first. The full walkthrough is in Back up Gmail and Microsoft 365 email. In short:

  1. Open the Backup tab and pick the account with Change account.
  2. On the Configuration page, choose Its own and set Hold everything for to Forever (or as long as you need). An email with no copy in the backup can’t be exported.
  3. On the Run a backup page, click Back up now.

The first backup reads the account’s folders from its start date and copies each email. A big mailbox can take hours. You can stop it at any time, and the next run goes on where it stopped. For older emails, use Backfill emails… on the Downloads tab.

The Run a backup page of the Backup tab for finance@contoso.com, a Microsoft 365 account: 18,431 emails in the backup since 3/3/2019, the last backup an hour ago, the Back up now button, and how a backup works
Back up the mailbox first. Later runs add only the new emails.

Step 2: export the emails

  1. On the Backup tab, open the Export page.
  2. Under Which emails, choose The whole backup, Received between two dates, or Some folders and tick them, for example INBOX/Invoices.
  3. Under As, choose the format (see the next section).
  4. Under To, click Browse… and choose the folder, for example D:\Exports\Finance.
  5. Click Export. A line shows how far it got, and Stop ends it early.
  6. When it’s done, click Open the folder.

The files follow the mailbox’s folders. Each file is named by the date, time, sender and subject, such as 2026-11-11 0902 - Acme Corp - Invoice 4411. Exporting again replaces the files instead of adding copies, so you can repeat an export each month.

If some emails have no copy in the backup, the page lists them, and the export goes on without them.

The Export page for finance@contoso.com: Which emails set to Some folders with INBOX/Invoices ticked, As set to PST: one Outlook data file with the folders, To D:\Exports\Finance, and the result: Exported 2,901 of 2,904 emails, 3 of them with no copy in the backup
Export the Invoices folder of a Microsoft 365 mailbox to one PST file.

Want just a few emails? On the Search page, type a subject, sender or file name and click Search in History. The results open in the Downloads tab. Pick one email, or several with Ctrl or Shift, and choose “Export N emails…”. The Export page then offers “The 12 emails picked in the Downloads tab” (with your number) under Which emails.

Which format to choose

The Backup tab's Export page for finance@contoso.com: Some folders with INBOX/Invoices ticked, and the As list open with EML, MBOX, MSG, PST, PDF and ZIP, PST chosen
The six formats on the Export page, each with what it makes.
  • PST: one Outlook data file with the folders. For Outlook. The whole export is one Unicode PST file, with the mailbox’s folders inside it. In classic Outlook, open it with “File › Open & Export › Open Outlook Data File”.
  • MBOX: one file per folder. For Thunderbird, Apple Mail and archive tools. Thunderbird needs an import add-on, such as ImportExportTools NG, to open MBOX files.
  • EML: one file per email, as the server sent it. The standard email file. Outlook, Thunderbird and most email programs open it, and nothing is changed in it.
  • MSG: one Outlook file per email. Outlook’s own single-email format. Handy when a case file, a ticket or a document management system wants Outlook items.
  • PDF: one per email, its attachments next to it. For reading, printing and legal or audit requests. Each PDF has the email’s header and text, and its attachments are saved beside it as they are.
  • ZIP: the EML files in one zip. One file to hand over, upload or keep.

Save emails as PDF in bulk

To save a whole folder or a date span as PDFs, choose PDF: one per email, its attachments next to it, as in step 2. That’s a one-time export. To turn new emails into PDFs as they arrive, use a rule with a Convert documents step instead (PRO Rules Client). See convert emails to PDF or TIFF.

Import PST, MBOX and EML files

Old mail in a file can go into an account’s backup, where you can search it, export it or restore it.

  1. On the Backup tab, pick the account and open the Import page.
  2. Under Mail files, in What, choose PST: an Outlook data file, with its folders, MBOX: a Thunderbird or Apple Mail file, or a folder of them, or EML: a folder of .eml files (its subfolders are folders).
  3. Under From, click Browse… and choose the file or folder, for example D:\Old mail\archive-2019.pst.
  4. Click Import.

Each email keeps its folder from the file. An email already in the backup (the same Message-ID) is left out, so importing the same file again adds nothing. Imported emails are only kept in the backup: your rules don’t run on them, and nothing is uploaded to the mailbox. Each import shows up as a run under Backup runs.

The Import page for finance@contoso.com: What set to PST: an Outlook data file, with its folders, From D:\Old mail\archive-2019.pst, and the result: Imported 12,840 emails, 1,204 were already in the backup, 2 could not be read; below it, Another computer's backup
Import an old PST file into the account’s backup. Emails already there are skipped.

Convert MBOX to PST (and PST to MBOX)

There is no direct file-to-file converter. Converting is two steps: import, then export.

  1. Import the MBOX file into an account’s backup, as above.
  2. On the Export page, tick the imported folders under Some folders, and choose PST: one Outlook data file with the folders under As.

Note: the file’s Inbox goes into the account’s Inbox, so exporting that folder takes the account’s own Inbox emails too.

The same works from PST to MBOX, EML, MSG or PDF, and from a folder of EML files to PST. The emails stay in the backup afterwards. Want them in a mailbox instead of a file? The Restore page puts a backup’s emails back on the mail server, or, with Another account: in its Into box, into a different kind of account. See Restore.

Extract data: addresses and email details to CSV

Sometimes you don’t need the emails, just a list. The Extract data page writes a CSV file that Excel opens, from the same backup:

  • One row per email: received, from, to, cc, reply-to, subject, folder, attachments and size.
  • One row per email address: the people in these emails, each once: name, domain, first and last email. Tick Leave out this account’s own addresses, and no-reply ones (noreply@, mailer-daemon@…) to keep the list clean.

Click Extract now, or tick After each backup run, add the addresses of the emails it backs up. An address extracted again replaces its own row, so the file never lists it twice. Sending marketing emails to these people may need their consent. The Free edition can try it on up to 25 emails of the last day.

The Extract data page for sales@contoso.com: The whole backup, One row per email address, addresses from From, To, Cc and Reply-To, the columns Name, Seen as, First email and Last email, the CSV path D:\Marketing\sales-contacts.csv, and the result: Wrote 2,316 addresses from 18,431 emails
Extract data: one row per email address, written to a CSV file.

Good to know

  • POP3: POP3 accounts can be backed up and exported, but not restored.
  • Export and Import don’t change the mailbox.

Try it: download Mail Attachment Downloader and start with the free edition, or compare the PRO editions, each with a 30-day money-back guarantee.

Related

Questions about this post? Contact us.