Splitting a Mail Archive Into One File per Message
Published 9/8/2026 · 3 min read · File tools
Daniel Okonkwo — Front-end developer and tech writer at OneKitly
Web performance · File formats
Checked against 3 sources
Splitting an archive turns a single opaque object into a folder of ordinary files, and almost everything you want to do with old mail gets easier at that point. Your operating system's search indexes .eml files and does not index inside an .mbox; a mail client opens one on a double-click and cannot open the archive at all; a backup that copies changed files copies one small message rather than the whole multi-gigabyte archive every time you receive something. Deleting also becomes possible per message rather than all or nothing. The split reads the separator lines — From, a sender, a date — and writes one file per message, which you download together as a zip. Nothing is uploaded: the archive is read in your browser, which for a mailbox is the difference between a conversion and a disclosure.
An .mbox is one enormous file your operating system cannot search. Turn it into .eml files and every message becomes something your machine indexes, your mail client opens and you can delete one at a time.
One file per message is a filing system
Once messages are separate files, the tools you already have start working on them. Sorting by date, moving a year into its own folder, keeping the twenty that matter and deleting the rest, attaching one to another message, putting a few under version control with a project — none of that is possible while everything is glued into one archive, and all of it is ordinary once the archive is a folder.
What to keep, and for how long
An archive you cannot open is not an archive, it is a file you are afraid to delete. Splitting it lets you make an actual decision: keep the correspondence that documents something — a contract, a diagnosis, a dispute, a family exchange — and let the rest go. It also lets you extract the attachments once and store those where they belong, which is usually where the real value was hiding.
Frequently asked questions
- How are the individual files named?
- From the archive's own name plus a number, in the order the messages appear in the file — which is the order they arrived. That keeps the sequence intact and avoids the two ways message-derived names go wrong: subjects contain characters a filesystem refuses, and dozens of messages in one thread share a subject exactly.
- Do the attachments come along?
- Yes — each .eml is the complete message, attachments encoded inside it exactly as they were in the archive. That is why the split files add up to roughly the size of the archive rather than to something smaller. Extracting the attachments as separate files is a second step, and worth doing for the large ones.
- Can I put the messages back into a mail client?
- Yes. Most clients import .eml by dragging the files into a folder, and Thunderbird, Apple Mail and Outlook all accept them. What you will not get back automatically is the folder structure, since that lived in the account rather than in the messages — create the folders first and drop the right files into each.
Articles you may find interesting
All guides →Related tools
Sources
Spotted a mistake in this article?