Skip to content
Mbox Viewer

MBOX

.mbox · mbox file · mailbox file

A plain-text file format that stores multiple email messages concatenated together, each beginning with a "From " separator line. It is the format Google Takeout produces when you export your Gmail archive.

MBOX (short for mailbox) is one of the oldest and most widely supported email storage formats. Every message is appended one after another in a single text file, with each message separated from the next by a line that starts with "From " (note the trailing space) followed by the sender address and a timestamp. Because the entire archive lives in a single file, MBOX is easy to copy, compress, and store as a long-term backup.

Google Takeout produces MBOX files when you export Gmail data, sometimes splitting very large mailboxes into multiple files. Other services and desktop clients — Apple Mail, Thunderbird, Postfix — also use MBOX variants (mboxo, mboxrd, mboxcl2), which differ mainly in how they escape embedded "From " lines within message bodies.

Opening a large MBOX file without a specialized tool can be slow because most programs parse the entire file before showing any messages. Mbox Viewer addresses this with a streaming parser that reads the file incrementally and a binary index that enables subsequent opens in under a second, regardless of file size.

One last thing, because it sends people to the wrong place: the name collides with things that have nothing to do with email. Makita's M-Box is a stackable tool case, and the Ford Thunderbird is a car — while Thunderbird, the Mozilla email client, does store its mail in MBOX files. If you got here after downloading something ending in .mbox from Google, Apple Mail or Thunderbird, you are in the right place: it is a mailbox, and it is plain text.

Step-by-step guides

Related terms

Read your MBOX files on Mac and Windows