Guide
How to Convert MBOX to CSV, EML, and Text (and Extract Attachments)
A practical guide to exporting an MBOX file into CSV spreadsheets, individual EML messages, plain text, and PDF — plus how to extract every attachment in bulk — using Mbox Viewer on Mac.
Published
An MBOX file is a great archive, but sometimes you need your email in a different shape: a spreadsheet for analysis, individual .eml files for another mail client, plain text for grepping, or just the attachments pulled out into a folder. This guide shows you how to do all of that on a Mac with Mbox Viewer.
Choosing the right output format
Each format serves a different purpose. Pick the one that matches what you’re trying to do.
| Format | Best for | What you get |
|---|---|---|
| CSV | Analysis, reporting, audits | One row per email with date, sender, recipient, subject, size |
| EML | Importing into another mail app | One standalone file per message, headers intact |
| Text | Search with command-line tools, plain reading | Readable plain-text body of each message |
| Sharing, legal, printing | A formatted, fixed snapshot of a message | |
| Attachments | Recovering files | The original files, saved to a folder |
Convert MBOX to CSV
A CSV export turns thousands of emails into a tidy spreadsheet you can open in Numbers or Excel. It’s ideal for spotting who emails you most, auditing a date range, or handing a summary to someone else.
- Open your
.mboxfile in Mbox Viewer. - (Optional) Search or filter to narrow down to the messages you care about — for example
from:billing@ date:2025. - Select the messages you want (or press Cmd-A to select all).
- Choose File → Export → CSV.
- Pick a destination and save.
Each row contains the key metadata fields, so you can sort, pivot, and chart your mail however you like.
Convert MBOX to EML
EML is the universal “one message, one file” format. Exporting to EML is the cleanest way to move selected emails into Apple Mail, Outlook, or Thunderbird without dragging the whole archive along.
- Select one or more messages in Mbox Viewer.
- Choose File → Export → EML.
- Choose a folder.
Mbox Viewer writes one .eml file per message, preserving headers, formatting, and attachments. You can then drag those files straight into another mail client.
Export to text or PDF
- Text: Select messages and choose Export → Text to get clean, readable bodies — perfect for
grep, indexing, or pasting into a document. - PDF: Select a message and choose Export → PDF for a formatted, shareable snapshot. This is the go-to format for legal hand-offs and printing, because the layout is fixed.
Extract attachments in bulk
Hunting through hundreds of emails for that one PDF invoice is tedious. Mbox Viewer can pull every attachment out at once.
- Select the messages (or all of them).
- Choose File → Export → Attachments.
- Pick a destination folder.
The app saves each attachment with its original filename, so you end up with a clean folder of documents, images, and files — no email wrapper around them.
Tip: Combine search with extraction. Run
has:attachment from:accounting@first, then export attachments to grab just the invoices.
A typical workflow
Here’s how these pieces fit together for a common task — archiving a year of project email:
- Open the MBOX and search
subject:"Project Atlas" date:2025. - Export the matching messages to EML for safekeeping.
- Export the same set to CSV for a quick index.
- Extract attachments into a
Project Atlas/Filesfolder.
In a few minutes you’ve turned one giant archive into organized, reusable pieces — and nothing ever left your Mac.
Your email, in any format you need
Mbox Viewer makes MBOX a starting point, not a dead end. Convert, export, and extract with a few clicks.
Open your archive with Mbox Viewer
Native macOS app. Streams MBOX and EML files of any size, fully offline.
Mac App Store