How-To

How to Convert MBOX Files to CSV on Mac

February 10, 2026

← All posts

If you’ve ever tried to search through hundreds of old emails in a Thunderbird backup or a Gmail Takeout download, you know the pain. MBOX files are basically giant text blobs that no spreadsheet app can read. Here’s how to turn them into clean, searchable CSV files on your Mac.

Why Convert MBOX to CSV?

People convert MBOX files to CSV for a few common reasons:

CSV gives you structured data you can filter, sort, and search in any spreadsheet app.

Method 1: Using a Dedicated Mac App (Fastest)

The simplest approach is a purpose-built converter. MBOX to CSV handles the entire process in a few clicks:

  1. Open the app and drag your .mbox file onto the window
  2. Choose which fields to export (sender, date, subject, body, etc.)
  3. Click Convert - the app parses the MBOX and outputs a clean CSV

The advantage: it handles encoding issues, malformed headers, and edge cases that trip up scripts. Processing happens entirely on your Mac, so your emails never leave the machine.

For large archives (100,000+ emails), the app processes in batches to avoid memory issues.

Method 2: Using Python (Free, Requires Terminal)

If you’re comfortable with the command line, Python’s built-in mailbox library can parse MBOX files:

import mailbox
import csv

mbox = mailbox.mbox('path/to/your/file.mbox')
with open('output.csv', 'w', newline='') as f:
    writer = csv.writer(f)
    writer.writerow(['From', 'To', 'Date', 'Subject'])
    for message in mbox:
        writer.writerow([
            message['from'],
            message['to'],
            message['date'],
            message['subject']
        ])

This works for simple cases but has limitations:

Good for quick one-off extractions. Not ideal for production use or large archives.

Method 3: Using Thunderbird + Add-on

If you already have Thunderbird installed:

  1. Import the MBOX file into Thunderbird
  2. Install the “ImportExportTools NG” add-on
  3. Right-click the folder and export as CSV

This works but adds unnecessary steps (import into Thunderbird first, then export). It’s also slow for large archives since Thunderbird indexes every message.

Tips for Working with MBOX Files

Gmail Takeout exports come as a single large .mbox file. If your archive is over 2 GB, expect the conversion to take a few minutes regardless of which tool you use.

Apple Mail stores emails in a modified MBOX format (.mbox bundles that are actually directories). Most converters handle this, but check that your tool supports Apple Mail’s format specifically.

Thunderbird profiles store MBOX files without the .mbox extension. Look in ~/Library/Thunderbird/Profiles/ for files named Inbox, Sent, Drafts, etc. These are MBOX files despite having no extension.

Encoding matters. If your emails contain non-English text (Japanese, Arabic, Cyrillic), make sure your converter handles UTF-8 properly. Open the resulting CSV in a text editor first to verify characters display correctly before importing into Excel.

Choosing the Right Approach

Need Best Method
Quick one-time conversion Python script
Large archive (50K+ emails) Dedicated app
Non-technical user Dedicated app
Already using Thunderbird Thunderbird add-on
Automated/recurring exports Python script

For most people, a dedicated converter is the path of least resistance. Write a Python script if you need custom extraction logic or want to automate recurring exports.

Frequently Asked Questions

What is an MBOX file?

MBOX (short for mailbox) is a standard format for storing email messages in a single file. It's used by Thunderbird, Apple Mail, Gmail Takeout exports, and many other email clients. Each message is stored sequentially in plain text, separated by 'From ' lines.

Can I open MBOX files directly in Excel?

No. Excel cannot read MBOX files natively. You need to convert the MBOX file to CSV first, then open the CSV in Excel. Tools like MBOX to CSV by Great Apps handle this conversion automatically.

How do I export Gmail emails as MBOX?

Go to Google Takeout (takeout.google.com), select 'Mail', choose your export format as MBOX, and download the archive. The resulting .mbox file can then be converted to CSV.

Does converting to CSV preserve email attachments?

CSV is a flat text format, so attachments are not included in the spreadsheet. If you need attachments, consider converting to PDF instead (which embeds attachments). The CSV export focuses on metadata: sender, recipient, date, subject, and message body.

What fields are included in the CSV output?

Typical fields include: From (sender), To (recipients), CC, Date, Subject, and Body. Some tools also extract message ID, reply-to address, and custom headers.

Try MBOX to CSV Free

Convert MBOX email archives to organized CSV spreadsheets. macOS 13 or later.

Learn More →