How to Import MBOX to Gmail: Step-by-Step Guide
In this article
You cannot import an MBOX file directly into Gmail with a single upload. Gmail's import tool only accepts a Google-format archive or connects to another IMAP account, so the reliable route is to load the MBOX into a desktop mail client that speaks IMAP, then let Gmail pull the messages in through its own import feature. This guide walks through that route, plus the mistakes that cause duplicates, missing folders and half-finished imports.
What You'll Need
- The MBOX file itself, ideally a copy rather than your only original.
- A desktop computer (Windows, macOS or Linux). The import cannot be done from the Gmail mobile app.
- A desktop email client that can open MBOX files and connect to Gmail over IMAP. Mozilla Thunderbird is the usual choice because it opens MBOX natively.
- A Gmail account with IMAP enabled. In Gmail, go to Settings > Forwarding and POP/IMAP and confirm IMAP is turned on.
- Enough free storage in your Google account for the imported mail.
- An app password if your Google account uses 2-Step Verification and the client does not offer Google sign-in. Create one at myaccount.google.com under Security > App passwords. Labels and menu names can differ slightly by version, device or region.
Step-by-Step
- Back up the MBOX file. Copy it to a second location before you touch it. Import tools can modify or lock the file, and a corrupted MBOX is painful to recover.
- Check the file size. Very large MBOX files (multiple gigabytes) are slow to open and slow to upload. If yours is huge, consider splitting it first with an MBOX splitter tool, or import it in batches.
- Install Thunderbird from the official Mozilla site and set up your Gmail account in it using Google sign-in or an app password. Let it finish syncing before you continue.
- Create a local folder for the MBOX. In Thunderbird, right-click Local Folders in the folder pane and choose New Folder. Give it a clear name such as Imported.
- Import the MBOX into that folder. Thunderbird has an ImportExportTools NG add-on that adds an Import MBOX option. Install it from the Thunderbird add-ons page, then right-click the folder you created, choose the import option, and select your MBOX file. If you prefer not to use an add-on, you can place the MBOX file directly into your Thunderbird profile's Mail/Local Folders directory while Thunderbird is closed, then reopen it and the folder will appear.
- Verify the messages. Open the new folder and check that subjects, dates, attachments and sender addresses look correct. Fix or discard anything that imported badly before it reaches Gmail.
- Select the imported messages in Thunderbird (Ctrl+A or Cmd+A selects all in the folder), right-click and choose Move To, then pick your Gmail account and the label or folder you want them in. Moving rather than copying avoids leaving duplicates behind.
- Wait for the upload. Thunderbird pushes the messages to Gmail over IMAP. A few thousand messages can take a while; keep the computer awake and Thunderbird open until the sync indicator stops.
- Confirm in Gmail. Open Gmail in a browser and check the label or folder you targeted. If messages are missing, give it a few minutes and refresh, then check the All Mail view.
- Clean up. Once everything is in Gmail, you can remove the local folder in Thunderbird and delete the temporary copies if you no longer need them, keeping your original backup.
Common Mistakes
- Looking for an MBOX upload button in Gmail. There isn't one. Gmail's import screen expects a Google archive or another IMAP account, not a raw MBOX file.
- Importing the same file twice. Gmail does not always deduplicate IMAP uploads, so a second run can double every message. Check before repeating.
- Using the wrong folder type. Importing into a Gmail-labelled folder in Thunderbird before the local copy is complete can cause partial uploads. Import locally first, then move.
- Ignoring storage limits. A large MBOX can push a free Google account over its quota, which stops new mail arriving. Check your storage before importing gigabytes of old mail.
- Closing Thunderbird mid-sync. The upload pauses and some messages may never arrive. Let it finish.
- Skipping the backup. If the import goes wrong, the original MBOX is your only copy.
Tips
- Import in batches of a few thousand messages rather than one giant file. It is easier to spot failures and restart.
- Create a dedicated Gmail label for the import so you can find, review and delete it later if needed.
- Keep the original MBOX file until you have confirmed every message is in Gmail and readable.
- If you only need a handful of messages, open the MBOX in Thunderbird and forward the important ones to yourself instead of importing the whole archive.
- Check attachment sizes. Gmail rejects messages over its attachment limit, so oversized ones may silently fail.
Troubleshooting
- Thunderbird will not connect to Gmail. Confirm IMAP is enabled in Gmail settings, then sign out and back in. If 2-Step Verification is on, use an app password. Check Google's service status page if sign-in fails for everyone.
- The MBOX will not open. The file may be corrupted or not a true MBOX. Try opening it in a different client or a dedicated MBOX viewer to confirm it is valid.
- Messages appear in Gmail but attachments are missing. The original message may have had an attachment Gmail could not accept, or the MBOX export was incomplete. Re-export that message from the source if possible.
- Only some messages arrived. Reopen Thunderbird and let it finish syncing. If the count still does not match, move the remaining messages again in smaller batches.
- Duplicates everywhere. Delete the duplicated label or folder in Gmail, then re-import more carefully, checking the message count before and after.
- Gmail storage full. Delete large old mail or empty Spam and Trash, or buy more storage, then resume the import.
Frequently Asked Questions
Can I import an MBOX file straight into Gmail?
No. Gmail has no MBOX upload option. You need a desktop client such as Thunderbird to open the file and push the messages to Gmail over IMAP.
Will the original dates and senders be preserved?
Usually yes, because the messages are uploaded as they were stored. Check a sample after import, since some clients rewrite headers during export.
Does this work on a phone or tablet?
Not practically. The import needs a desktop mail client, so use a Windows, macOS or Linux computer.
How long does the import take?
It depends on message count and attachment size. A few hundred messages can take minutes; tens of thousands can take hours. Keep the computer awake.
Can I import into a specific Gmail label?
Yes. In Thunderbird, move the messages into the Gmail folder that corresponds to the label you want, and they will appear under that label in Gmail.
What if I do not want to install Thunderbird?
Some paid email migration tools can convert MBOX to a Gmail-compatible format, but check they are reputable and official before using them. The Thunderbird route is free and uses only official software.