Split MBOX into EML Files
Break one archive into a message per file, downloaded as a zip. An mbox is .eml messages laid end to end, so this takes them apart rather than converting anything.
Processed on your device — no upload
Choose a mailbox archive. Every message in it becomes an .eml file of its own, and they come back as a zip.
How to split MBOX into EML files
- Choose the .mbox archive.
- Leave the escaping switch alone unless you know you want the raw bytes.
- Download the zip of .eml files.
How it works
Nothing here is converted. An mbox is messages written into one file one after another, each introduced by a line beginning with the word From and a space, and what sits between two of those lines is already a complete message in the form every mail client calls .eml. So this is not a converter — it is a pair of scissors. Each message is copied out byte for byte and given a filename.
Which is why the cut is the entire job, and it is not obvious. A message body may contain a line that begins with the word From, because people write sentences. Split on /^From / and one day you will take a message apart in the middle and write two files, one of them a fragment with no headers that no mail client will open — and nothing will report an error. The rule used here needs four things to agree before a line is accepted as a separator: it starts a line, a blank line comes before it or it is the first line of the file, what follows looks like a sender and a date, and the very next line is a header field. The last is what a sentence almost never has under it. Lines that pass the first three and fail the fourth are counted on screen, so the judgement is visible rather than assumed. The blank line is the condition an archive occasionally breaks, so if requiring it would report the whole file as one message, it is read again without that test and the note says so.
The mail store that wrote your archive tried to prevent this by putting a > in front of any body line beginning with From. There are two conventions for it — one escapes From alone, the other escapes an already-escaped line as well — and no file records which it used, so undoing it exactly is not possible in principle. One > is taken back off by default, which is right for archives written the second way, right for Gmail Takeout and Thunderbird, and costs one character in the rare case of a person quoting a line that genuinely began >From. Turn the switch off and each file is byte-for-byte what the archive holds — which is what you want if the files are evidence and their hashes have to match somebody else’s copy.
A large archive comes back as several zips, and that is deliberate. A zip has to be built in memory before a browser can save it, so one holding every message of a 4 GB export is what runs the tab out of memory — the failure people report from the desktop tools that promise it. The messages are grouped into batches of at most two thousand, or 150 MB, whichever comes first, and each batch has its own download button. A directory of a hundred thousand files is also slow to open in Explorer and Finder both, so the batches are worth having on the disk as well.
The names are the message number, padded so they sort in order, followed by the subject with anything a file system objects to removed. Letters of any script are kept — an archive of Arabic or Japanese mail should not come out as forty thousand files called message — and the number is what guarantees no two collide, since a hundred replies on one thread all carry the same subject.
Attachments come through untouched, because they were never touched: they are part of the message, still base64 inside it, and copying the message copies them. If what you want is the attachments rather than the messages, run one message through the attachment extractor instead. To read the archive before deciding what to do with it, use the viewer.
A worked example
Press Load a sample. Three messages, one batch, one button. Press it and you get sample-eml.zip holding:
1-The-March-invoice.eml · 2-Re-The-March-invoice.eml · 3-Café-closes-at-four.eml
The colon in Re: The March invoice is gone from the second name, because Windows will not have a colon in a filename. The accent in the third is not gone, because there is nothing wrong with it. Each file is between 346 and 589 bytes — the message exactly, with the From separator line above it left behind, since that line belongs to the archive rather than to the message.
Open the second file. Its last line reads From here on the new rate applies. In the archive that line is stored as >From here on the new rate applies. — the > was added by the mail store so the line would not look like the start of a new message, and it has been taken back off. Turn the switch off, download again, and the > is there in the file.
The same sample also demonstrates what the cut avoids. The second message contains the line From 2019 to 2024 the rate held at the same figure, which begins a line, has a blank line above it and a four-digit year after it. That is enough for most mbox splitters, and most of them would write it out as a fourth file — a fragment starting mid-sentence, with no From, no Date and no Subject. Here the line under it is checked, it is not a header field, and the note above the buttons counts the near miss instead.
Questions
How do I split an MBOX file into separate EML files?
Choose the archive and download the zip. Every message becomes one .eml, copied out of the archive unchanged — there is no conversion step, because a message inside an mbox already is an .eml.
Why do the files come back in a zip?
Because a browser will not save forty thousand files one at a time — it blocks a burst of downloads after the first few, by design. One archive is one download, and it is packed on your device rather than anywhere else.
How are the .eml files named?
The message number first, so the folder sorts in the order the archive held them, then the subject with anything a file system rejects removed. Letters of any alphabet are kept, and the number is what stops two replies on the same thread overwriting each other.
Does splitting change the messages?
Only in one respect, and it can be switched off: the > that a mail store puts in front of a body line beginning with From is removed. Everything else — headers, encoding, attachments, signatures — is copied byte for byte.
Why is my archive split into several downloads?
A zip is assembled in memory before it can be saved, so one containing a multi-gigabyte export would exhaust the tab. Messages are grouped into batches of two thousand or 150 MB, whichever comes first, and each batch is its own zip.
What is the > in front of some lines that begin with From?
It is escaping added by whichever program wrote the archive, so that a sentence starting with the word From could not be mistaken for the separator between two messages. Two incompatible conventions for it exist and no file says which it used, which is why removing one > is the default and undoing it is a switch rather than a certainty.
Can I open the results in Outlook, Thunderbird or Apple Mail?
Yes — .eml is the format all three read, and double-clicking one opens the message. Thunderbird and Apple Mail will also import a folder of them, which is the usual reason for doing this to an archive.
Is the archive uploaded to be split?
No. It is read in pieces off your own disk, the messages are cut out in the page, and the zip is built there too. A mail export is the most private file most people own, and this one never moves.
Do attachments survive?
They do, because nothing happens to them. An attachment is part of the message, encoded inside it, and the message is copied whole — so the .eml has exactly what the archive had.
Can I split out only some of the messages?
Only by batch — each download covers a numbered range, so you can take the first two thousand and stop. To find particular messages first, open the archive in the viewer, which searches sender, recipient and subject.
Is Split MBOX into EML Files free to use online?
Yes — free, with no account, no daily limit and no watermark. It runs online in your browser, and because the work happens on your own device it keeps working offline once the page has loaded.
Related Email tools
EML to PDF
The message as a document, headers kept
open$termiva mail text message.emlEML to Text
The message, without the markup
open$termiva mail convert message.msgMSG to EML
Outlook’s format, into the standard one
open$termiva mail read message.emlEML Viewer
Open an email without a mail client
open