About MBOX to CSV Converter
MBOX is the Unix one-file-per-mailbox format that
Gmail Takeout, Thunderbird, Apple Mail and most Unix mailers all
speak. The trouble is that nothing else does. Open an
All Mail.mbox from a Gmail export in a text editor and
you get megabytes of From -separated raw RFC 822 with
MIME-encoded headers and base64 attachments. The desktop options
(Thunderbird's ImportExport NG add-on, MBOX Viewer Pro) work but
require an install and a multi-step click path. Online converters
almost always upload, sometimes cap at small file sizes, and almost
never expose the Gmail-specific
X-Gmail-Labels header.
This MBOX to CSV converter walks the archive and
produces both CSV (one row per message, ready for
Excel) and JSON (structured for scripts) in a
single pass. Per-message fields include sender, recipient, CC, date,
subject, snippet, attachment count and — when the archive came from
Gmail Takeout — the X-Gmail-Labels header, so the
category and label structure of a Gmail account survives the
conversion. Top-sender frequency is computed on the
fly so you can see who actually fills your inbox without writing a
pivot table. MIME-encoded headers
(=?utf-8?B?...?=, =?gbk?Q?...?=,
ISO-2022-JP) are decoded so subjects in non-English scripts come
through in their original characters. Files up to 50 MB
with up to 10,000 messages per pass.
Use it to index a Gmail Takeout archive in Excel without restoring
it to a live IMAP server, audit who an old inbox actually
corresponded with, search a Thunderbird archive in a spreadsheet,
build a JSON dataset of historical correspondence for a research
project, or just open a 2 GB All Mail.mbox without
spinning up a mail client. Files are processed in a stateless
serverless function and discarded immediately after the response.