The problem: your Google Takeout mbox will not open
You downloaded a copy of your Gmail through Google Takeout. What you get back is an mbox file: a single file that holds all of your emails stacked one after another. With a full inbox that can easily reach several gigabytes, sometimes tens of gigabytes.
Try to open that file in Thunderbird, Apple Mail or Outlook and one of these things usually happens:
- The program freezes or crashes the moment you import the file.
- The import runs forever and seems to hang.
- Your computer slows to a crawl because the entire file is loaded into working memory at once.
- You get an error that the file is too large or corrupt.
The cause is almost always the same: ordinary mail programs try to read the whole archive in one go. With a few hundred messages that is fine, with hundreds of thousands of messages it is not.
What a viewer with a memory limit does differently
Mbox Viewer by Cloud Captains is a Chrome extension (Manifest V3) built specifically to keep large mail archives manageable. Its homepage is mbox-viewer.online. The trick comes down to two things.
An in-memory limit. The settings include a cap on how many messages may sit in active working memory at the same time. So the viewer does not pull your entire ten-gigabyte archive in at once, it works in manageable chunks. That keeps Chrome responsive, even with a huge file.
A local database. As soon as a message has been read, it is stored in IndexedDB, the database that runs inside your browser on your own device. Your archive therefore lives in a database built to hold a lot of data, not in volatile working memory. Browsing, searching and filtering then run against that database instead of against the raw file.
One hundred percent local and offline
Mbox Viewer uploads nothing. There are no servers, no telemetry and the Chrome permissions are empty. Your mail archive stays entirely on your own device in IndexedDB. That is exactly what you want for a sensitive file such as a full copy of your inbox.
Google Takeout often hands you a .mbox.gz
Google Takeout sometimes gives you your mail packed as a .mbox.gz. That is an mbox file compressed with gzip, so the download is smaller. Many mail programs do not understand a .gz file and ask you to unpack it by hand first.
Mbox Viewer unpacks .mbox.gz automatically the moment you drop it into the window, so you do not need a separate extraction tool. The unpacking also happens locally in your browser, not somewhere online.
Opening a large Google Takeout mbox file
- Open Mbox Viewer in Chrome.
- Go to Settings first and check the in-memory limit (the cap on how many messages stay in working memory). For a very large archive you can lower it a bit for extra stability if needed.
- Drag your Takeout file into the window. It may be a .mbox, .mbx or a .mbox.gz; a .gz is unpacked automatically.
- Wait for the import to finish. Messages are processed in chunks and written to the local database (IndexedDB).
- Browse the list on the left and read messages on the right, using the Preview, Raw and Forensic tabs.
- Use the search bar to find something quickly instead of scrolling by hand through hundreds of thousands of messages.
Finding something fast in a huge archive
With an enormous archive, searching matters more than browsing. Mbox Viewer has a search bar with operators that let you filter very precisely. A few examples:
from:name@example.comsearches by sender,to:by recipient.subject:invoicesearches the subject line.has:attachmentshows only messages with an attachment,has:linkonly messages with a link.after:2020-01-01andbefore:2021-01-01limit to a period, as doolder_than:30dandnewer_than:7d.larger:5Mandsmaller:1Mfilter by size."exact phrase"searches for precise text andNOT termexcludes something.
There is also a regex mode for advanced patterns, and you can save searches so you do not have to retype a frequently used filter every time.
Work with split archives if Takeout gave you several files
Google Takeout sometimes splits a very large export into multiple files already. Feel free to drag them in one by one. Because everything ends up in the same local database, you can then search them as if they were a single whole.
Give the import some time
Reading an archive of many gigabytes takes time, even in Mbox Viewer. The difference from an ordinary mail program is that it does not crash here. Leave the tab open and wait for it to finish. Do not close Chrome halfway through.
What else you can do afterwards
Once your archive is in the viewer, you can organize messages with labels, stars and notes (Captain notes). You can export single messages or a whole selection, for example as PDF, .eml, .html or as a CSV with metadata. For investigation there is a Forensic tab that shows, among other things, the authentication (SPF, DKIM, DMARC), the transport chain and a suspicion score.
External images are blocked by default while reading, so tracking pixels cannot follow you. If you do want to see the images in a specific message, you load them with a button.
Why do Thunderbird or Outlook crash on my Takeout file while Mbox Viewer does not?
Ordinary mail programs try to load the whole archive into working memory at once. With hundreds of thousands of messages that memory fills up. Mbox Viewer uses an adjustable memory limit and writes the messages to a local database, so it works in manageable chunks instead of all at once.
Do I have to unpack my .mbox.gz myself first?
No. Just drag the .mbox.gz file into the window and Mbox Viewer unpacks it automatically and locally. You do not need a separate extraction tool.
Does my mail go to the cloud or to a server?
No. Mbox Viewer works one hundred percent locally and offline. There are no uploads, no servers and no telemetry, and the Chrome permissions are empty. Your archive stays in IndexedDB on your own device.
How do I quickly find a specific message in such a large archive?
Use the search bar with operators, for example from:, subject: and after: or before: for a date range. That way you filter precisely instead of scrolling by hand through hundreds of thousands of messages.
How do I clear the archive again when I am done?
Go to Settings and choose Clear database. That removes the locally stored messages from IndexedDB on your device.
How big is the file allowed to be?
There is no fixed maximum size like there is with ordinary mail programs. Because the viewer works with a memory limit and a local database, even archives of many gigabytes stay manageable. Just give the import the time it needs.