Email clients have no split option for MBOX files, so you can split MBOX file archives with a text editor, Thunderbird, an awk command, a Python script, or splitter software. Every manual method must cut between two emails and never inside one, and line based split commands cut emails in half. Splitter software divides one large file by size, date, date range, year, sender, or subject. Check the part sizes and open one part in Thunderbird.
People split MBOX file data because email clients open big files slowly and a FAT32 storage device refuses any file above 4 GB.
Archives from Thunderbird, Apple Mail or Google Takeout get split before a move. Your method matters more than speed because a wrong cut breaks emails.
I wrote this guide to show five methods that cut the file at email boundaries. Stay tuned for the comparison table and the fixes at the end.
Why Split MBOX File Size?
Five problems come with large archives.
- Slow Opening. Mail clients open a large mailbox slowly and searches take long.
- Storage Limits. FAT32 devices cannot store a file above 4 GB.
- Damage Risk. Damage to a large file puts thousands of emails at risk together.
- Targeted Moves. Smaller parts let you move one year, one sender or one subject to a new client.
- Legal Reviews. Reviewers need the emails of one date range and not a ten year mailbox.
How Does an MBOX File Mark an Email?
MBOX stores a mail folder in one text file. Every email in it begins with a From line that names the sender and a date. Format basics are in MBOX file format basics.
Attachments and inline images sit inside the email as encoded text. Byte count cuts fall inside that text and break the email with its attachment. Cuts at From lines protect both emails.
Clean cuts fall between two emails. Cuts inside an email break that email and the next one.
What to Check Before You Split MBOX File Data?
Check four points before the first cut.
- Make a backup and split the copy only.
- Reserve disk space equal to the file size because the parts add up to the original.
- Shut down Thunderbird and Apple Mail before copying the file.
- Decide the part size. Match it to your storage device or destination client.
Remove the source file only when every part opens in your email client.
5 Ways to Split MBOX File Into Smaller Parts
Four methods are free and one is splitter software:
| Method | Works For | Weakness |
|---|---|---|
| Text editor | Small files | One cut position at a time |
| Thunderbird | Files with a few thousand emails | Moves emails by hand |
| awk command | Count based splits on Mac and Linux | Terminal needed |
| Python script | Count based splits on any system | Python needed |
| Splitter software | Size, date, sender or subject splits | Demo splits few emails |
Method #1: Text Editor Cuts at a From Line (Free, Small Files Only)
Text editors split MBOX file content at a From line. Editors store files in memory so choose one built for large files. EmEditor and UltraEdit are two examples.
- Copy the MBOX file twice into a new folder.
- Open the first copy in the editor and search for lines that begin with From followed by a space.
- Go to an email near the middle. Note its subject and delete everything from its From line to the end of file.
- Save the file. Your first copy now contains the first half.
- Open your second copy. Delete everything from the top down to the line above your noted email. Save the file.
Cut only at a From line. Cuts inside an email create two broken emails.
Method #2: Thunderbird Moves Emails by Hand (Free)
Thunderbird has no split button. You move emails into new folders and Thunderbird saves every folder as its own MBOX file.
- Open Thunderbird. Right click Local Folders and choose Settings.
- Copy the path under Local directory.
- Close Thunderbird. Remove the extension from your MBOX file name and paste the file into that directory.
- Open Thunderbird again. Your file appears as a folder under Local Folders.
- Right click Local Folders and choose New Folder. Create one folder for every part you need.
- Open the large folder. Select the first group of emails, right click and choose Move To > Local Folders > your first new folder. Repeat for the next group.
- Open the local directory in your file manager. Every new folder exists there as a file without an extension. Those files are your MBOX parts.
Moving thousands of emails by hand takes time. Use this method for files with a few thousand emails.
Method #3: Command Line Splits by Email Count (Free, Mac and Linux)
Terminal on Mac and Linux includes awk. Windows users get awk in Git Bash or WSL. Awk helps you split MBOX file by email count and always cuts at a From line.
- Open Terminal and move into the directory with your MBOX file.
- Enter the command below. Awk uses a file named big.mbox and sets 5000 emails for every part.
awk 'BEGIN{n=0;c=0} /^From /{ if(c%5000==0){ if(out!=""){close(out)} out=sprintf("part_%03d.mbox",++n) } c++ } {print > out}' big.mbox
- Enter your own email count for 5000 and your own file name for big.mbox.
- Find part_001.mbox, part_002.mbox and more in the same folder.
Avoid the split command with its line option. Line count cuts slice emails in half. My test showed parts that begin in the middle of an email and report wrong email counts.
Method #4: Python Script Splits by Email Count (Free, Needs Python)
Standard mailbox module of Python opens the file and copies one email at a time into a new part. Python escapes a body line that starts with From and so the cuts follow real email boundaries.
- Install Python 3 and save the script below as split_mbox.py in the folder with your MBOX file.
import mailbox, sys
source, size = sys.argv[1], int(sys.argv[2])
part, count, out = 0, 0, None
for message in mailbox.mbox(source):
if count % size == 0:
if out:
out.close()
part += 1
out = mailbox.mbox(f"part_{part:03d}.mbox")
out.add(message)
count += 1
if out:
out.close()
print(count, "emails saved in", part, "parts")
- Open Terminal or Command Prompt in that folder.
- Enter
python split_mbox.py big.mbox 5000using your file name and the number of emails for one part. - Open part_001.mbox, part_002.mbox and the other parts in your email client.
Note: My test split 25 emails into three parts with 10, 10 and 5 emails. Use python3 instead of python on Mac and Linux.
Avoid the split command with its line option. Line count cuts slice emails in half. My test showed parts that begin in the middle of an email and report wrong email counts.
Method #5: Split MBOX File by Size, Date, Sender or Subject With EmailDoctor MBOX Splitter (Free Demo)
EmailDoctor MBOX Splitter divides one large MBOX file into smaller MBOX files. You choose the split rule and MBOX Splitter saves the parts to your chosen folder. MBOX, MBX and MBS files from Thunderbird, Apple Mail, Google Takeout and more than 20 other clients open in the software.
Windows 11 and 10 (64 bit) work with the Windows edition and .NET Framework 4.5 or above must exist on your PC. Mac MBOX Splitter works on macOS 11 Big Sur and later. Select the Mac tab below for the Mac edition.
Large files get six features:
- Split by Size. Set 1 MB to 20 GB for every part.
- Date Options. Split by Date, Date Range or Year.
- Sender and Subject. Split by sender addresses or by a subject line.
- Bulk Add. Add several MBOX files or a full folder together.
- Many Clients. Open MBOX files from more than 20 email clients.
- Standalone Software. Split files without Thunderbird or Outlook on your PC.
Steps to Split MBOX Files on Windows
- Open MBOX Splitter. On Windows open the shortcut menu and select Run as Administrator. MBOX Splitter shows its main screen after the prerequisite check.
- Click Add File(s).
- Browse to your MBOX file, select it and click Open.
- Need a full folder? Click Add Folder and select the folder with your MBOX files.
- Check path and size in MB under Selected Path.
- Click Remove for a wrong file or Remove All to empty the list.
- Click Next.
- Select a split rule under Select Split Options. Choices are Split by Size, Split by Date, Split by Date Range, Split by Year, Split by Sender and Split by Subject.
- Enter your limit under Split Settings. Size accepts 1 MB to 20 GB. Click Change under Select Destination Path and select the output folder. Click Split.
- Click OK on the Split process completed successfully message. Mail Count and Split Status for your file appear in the window.
- Click View Report to see the report of the split.
- Go to the output folder and confirm that every MBOX part exists.
Mac MBOX Splitter shows the same buttons on macOS. Add your file, click Next, select the split rule and click Split.
Start the demo with one small MBOX file. Demo mode splits a limited number of emails per file so a size test finishes in minutes.
MBOX Splitter creates MBOX parts and Outlook accepts PST only. Convert the parts with EmailDoctor MBOX to PST Converter and follow our Import MBOX to Outlook guide for the steps.
Which of the Five Methods Fits Your File?
All five methods create MBOX parts. They differ in the split rule and in the size of file they handle.
| Feature | Text editor | Thunderbird | awk or Python | Splitter software |
|---|---|---|---|---|
| Split rule | Cut position | Chosen emails | Email count | Size, date, date range, year, sender or subject |
| Large files | Small only | Slow | Suits large files | Suits large files |
| Risk of broken emails | High | Low | Low | Low |
| Price | Free | Free | Free | Free demo then paid license |
I suggest Thunderbird for small files, awk or Python for a count based split and splitter software when you need parts by size, date, sender or subject.
Best Practices to Split MBOX File Archives Safely
Four habits protect your data:
- Original Untouched. Split a duplicate and keep the source file as it is.
- Right Storage. Format a USB device as NTFS or exFAT before you copy a file above 4 GB because FAT32 stops at 4 GB.
- Split First. Divide the file before you convert it to PST or EML so every conversion works on a smaller part.
- Spot Check. Open the first and the last part and compare the email count.
What Problems Appear in a Split MBOX File?
Six problems stop MBOX splits.
- Emails Cut in Half. Redo the split with the awk command because awk cuts at From lines only.
- Part Opens Empty. The cut missed a From line. Repeat the split and cut above the next From line.
- Folder Missing in Thunderbird. Close Thunderbird before you copy the file and remove the file extension.
- No Disk Space. Free up space equal to the file size before you start.
- Software Fails to Open. Right click MBOX Splitter and select Run as Administrator.
- Demo Splits Few Emails. Free demo mode splits a limited number of emails per file. Buy a license to split the full file.
Frequently Asked Questions
How do I Split a Large Google Takeout MBOX File?
Use the Python script or splitter software on a copy of the Takeout file. Takeout exports Gmail in MBOX format and both methods cut at email boundaries.
Does a Split MBOX File Lose Any Emails?
No. Splitting copies emails into parts and the source file remains untouched until you remove it.
Can Thunderbird Split an MBOX File?
Not with one click. Move emails into new Local Folders and Thunderbird saves every folder as a separate MBOX file.
Can I Split MBOX Into Single Emails?
Yes. Follow Convert MBOX to EML to create one file for every email.
What Size Should Every Part Have?
Choose a size your destination accepts. FAT32 storage devices stop at 4 GB per file. MBOX Splitter accepts 1 MB to 20 GB for every part.
Can MBOX Splitter Create PST Files?
No. MBOX Splitter creates MBOX parts only. Convert the parts with EmailDoctor MBOX to PST Converter when Outlook is your destination.
Can I Split an MBOX File by Date?
Yes. Select Split by Date for one day, Split by Date Range for a start and end date or Split by Year for one year or yearly parts.
Can I Split an MBOX File by Sender or Subject?
Yes. Enter one or more sender addresses separated by commas or tick all senders. Enter a subject line to get parts with that subject.
Does MBOX Splitter Keep Attachments?
Yes. Attachments, sender, recipient, subject and date remain preserved.
Which File Types Open in MBOX Splitter?
Splitter software opens MBOX, MBX and MBS files. Files from Thunderbird, Apple Mail and Google Takeout work.
Is There a File Size Limit?
No. No limit applies to the file you add. Every part you create falls between 1 MB and 20 GB.
Can Mac Users Split MBOX Files?
Yes. Mac MBOX Splitter works on macOS 11 and later. Thunderbird and Terminal commands also work on macOS.
Is an Email Client Required for MBOX Splitter?
No. MBOX Splitter works without an email client on your PC.
Final Splitting Checklist
Tick every item before you delete the original file:
- Copy. You split a copy of the MBOX file.
- Parts. Every part opens in your email client.
- Count. The email counts of all parts add up to the original.
- Attachments. One email with an attachment opens correctly.
- Original. The source file remains until the checks pass.
Author’s Verdict
People struggle to split MBOX file data because mail clients treat the file as one mailbox. Manual methods cut the file at From lines and cost nothing.
Copy the file and try one small split first. Open one part in Thunderbird and compare the email count and attachments.
Splitter software then handles large archives. Split Settings sets the part size and the date, sender and subject options narrow the emails.
- MBOX files split cleanly only at From lines.
- Text editors suit small files while Thunderbird moves emails by hand and awk or Python split by email count.
- Splitter software divides large files by size, date, date range, year, sender or subject on Windows and Mac.
Next Read: Split Large PST File
Also Read: What is MBOX File | Import MBOX to Outlook