Categories About Us Contact Us Become a Member

How to fix a MemoryError or hang on a large MBOX file

This happens when a tool tries to load a multi-gigabyte MBOX file all at once and runs out of memory, so it throws a MemoryError or simply hangs. The fix is to work with the file in smaller pieces. Jump to your situation below or work through the methods in order.

By Neeraj Singh ~6 min Updated Jun 2026 89% found this helpful
Error message
MemoryError. The application stopped responding while loading the MBOX file.
Summary

A MemoryError or a hard freeze when opening an MBOX file means the tool tried to read the whole file into memory at once and ran out. MBOX is a single flat text file, so a large mailbox can be several gigabytes, and a converter or importer that loads it all at once will exhaust the available RAM, especially a 32-bit application. The reliable fix is to stop loading the whole thing: split the MBOX into smaller chunks (around 1 GB each) with a splitter tool and process the parts, or use a 64-bit, streaming importer that reads the file message by message rather than all at once. Closing other applications to free memory, and adding RAM, help, but splitting the file is what removes the wall.

What this error means

MBOX stores an entire mailbox as one continuous text file. That is simple and portable, but it means there is no easy way for a naive tool to read just part of it, so many converters load the whole file into memory before processing. On a multi-gigabyte mailbox that can ask for more RAM than the machine has.

A 32-bit application makes it worse, since it can only address about 2 GB no matter how much RAM is installed, so it hits the wall sooner. The cure is to avoid loading the whole file at once, either by splitting the MBOX into smaller files or by using a tool that streams through it message by message.

Common causes

A multi-gigabyte MBOX loaded entirely into memory at once.
A 32-bit application limited to about 2 GB of memory.
Not enough free RAM on the system.
Other heavy applications consuming memory.
A converter that does not stream the file.
A single enormous message or attachment in the file.
Expert insight

“The mistake is treating a 12 GB mailbox like a small file and asking the tool to swallow it whole. MBOX is one long text file, so a lot of converters load the entire thing into RAM before they do anything, and the machine simply runs out. I split the file into one-gigabyte chunks first, then process the pieces, and the MemoryError vanishes. If a tool offers a streaming or 64-bit mode, use it, that reads the file message by message instead of all at once.”

How to fix it

Method 1

Split the MBOX into chunks

1Use an MBOX splitter to break the file into smaller pieces, around 1 GB each.
2Process or import the chunks one at a time.
3This is the most reliable fix for a file that will not load.
Method 2

Use a 64-bit, streaming tool

1Use a 64-bit importer or converter, which can address far more memory than a 32-bit one.
2Prefer a tool that streams the file message by message rather than loading it whole.
3Thunderbird with ImportExportTools NG handles large files better than many converters.
Method 3

Drop it into Thunderbird directly

1For Thunderbird, you can place the MBOX file directly in the profile Local Folders directory rather than importing it, which avoids loading it all at once.
2See our over-4-GB guide for the exact steps.
3Thunderbird then indexes it in place.
Method 4

Free system memory

1Close other heavy applications and browser tabs to free RAM before processing.
2Add more RAM if you regularly handle very large mailboxes.
3Then retry on the smaller chunks.

The wall is loading a multi-gigabyte file all at once, so the fix is to stop doing that: split the MBOX into roughly 1 GB chunks, or use a 64-bit streaming tool that reads it message by message. A 32-bit converter is the worst case, since it runs out of memory long before the RAM does, so prefer 64-bit tools for big mailboxes.

Frequently asked questions

Why does my MBOX file cause a MemoryError?
Because the tool loaded the whole multi-gigabyte file into memory at once and ran out. MBOX is a single flat text file, so a large mailbox can exceed the available RAM.
How do I open a very large MBOX file?
Split it into smaller chunks, around 1 GB each, with an MBOX splitter and process the parts, or use a 64-bit streaming importer that reads it message by message.
Does a 32-bit tool make it worse?
Yes. A 32-bit application can only use about 2 GB of memory regardless of how much RAM is installed, so it hits the limit much sooner. Use a 64-bit tool for large files.
Can Thunderbird handle a large MBOX?
Yes, better than many converters. You can place the MBOX directly in the profile Local Folders directory so Thunderbird indexes it in place rather than loading it all at once.
Will splitting the file lose any mail?
No. A proper MBOX splitter divides the file at message boundaries, so every message is preserved across the chunks.
How big is too big?
It depends on the tool and your RAM, but multi-gigabyte files routinely cause problems with converters that load the whole file. Splitting at around 1 GB is a safe target.

Still not working?

If even split chunks fail to load, a single enormous message or attachment inside the file may be the cause. Split that chunk further to isolate the oversized message, or extract it separately, then process the rest normally. You can also submit your error to us for a tailored fix.

Was this fix helpful? Thanks for your feedback!