Thunderbird is one of the most popular desktop mail clients, and under the hood it stores your mail as MBOX files, one per folder. That makes it easy to back up, move and archive your mail, once you know where the files are and how they're named. This guide covers finding the files on each operating system, exporting and importing folders, and opening the files without Thunderbird.
How Thunderbird stores mail
Every Thunderbird profile has a folder on disk. Inside it:
- Mail/Local Folders/ holds Local Folders and POP accounts.
- ImapMail/server-name/ holds local copies of IMAP accounts (for example
ImapMail/imap.gmail.com/). - Each mail folder is a file with no extension, such as
Inbox,Sent,DraftsorArchive. That file is an MBOX. - Each folder also has a .msf file (
Inbox.msf), which is only an index. - Subfolders live in a directory named after the parent with .sbd added. For example, the subfolders of
Inboxare inInbox.sbd/.
Messages you delete in Thunderbird stay in the MBOX file, hidden, until the folder is compacted. Choose File → Compact Folders before copying files if you don't want deleted mail included.
Where is the Thunderbird profile?
The reliable way on any system is Help → Troubleshooting Information → Profile Folder → Open Folder (press Alt if the menu bar is hidden). The usual default locations are:
| System | Profile location |
|---|---|
| Windows | %APPDATA%\Thunderbird\Profiles\ then the folder ending in .default-release |
| macOS | ~/Library/Thunderbird/Profiles/ (in Finder use Go → Go to Folder) |
| Linux | ~/.thunderbird/ (Snap installs: ~/snap/thunderbird/common/.thunderbird/; Flatpak: ~/.var/app/org.mozilla.Thunderbird/.thunderbird/) |
To see where a particular account keeps its mail, open Account Settings, choose the account's Server Settings, and look at Local Directory at the bottom.
Step by step: find and copy a folder's MBOX file
Exporting folders with ImportExportTools NG
The free ImportExportTools NG add-on gives you menu commands for exporting and importing:
- Open Tools → Add-ons and Themes, search for ImportExportTools NG and add it.
- Right-click the folder you want to export.
- Choose ImportExportTools NG → Export folder to save it as an MBOX file, or pick another option to export messages as EML, HTML, PDF or plain text.
It's the easiest way to get a properly named .mbox file with subfolders, and works for IMAP folders as long as their messages have been downloaded.
Importing an MBOX file into Thunderbird
With ImportExportTools NG
- Right-click Local Folders (or the folder that should hold the import).
- Choose ImportExportTools NG → Import mbox file.
- Choose to import as a new folder, then select the file.
This works for MBOX files from anywhere, including a Google Takeout MBOX. Gmail labels won't be recreated; all messages land in one folder.
Without an add-on
- Open the profile folder as above and quit Thunderbird.
- Copy the MBOX file into
Mail/Local Folders/. - Rename it to remove any extension (for example
Takeoutinstead ofTakeout.mbox). - Start Thunderbird. The folder appears under Local Folders and Thunderbird builds a new index.
Moving a whole profile
To move all your Thunderbird mail to a new computer, use Thunderbird's own File → Export (or Tools → Export) to create a profile backup ZIP, and Tools → Import on the new computer to restore it. This keeps accounts and settings as well as mail.
Opening Thunderbird MBOX files without Thunderbird
Sometimes Thunderbird isn't an option: the old computer died and you only have the drive, you're on a work machine where you can't install software, or you need to give a colleague a folder of email. The files are plain MBOX, so any MBOX reader can open them.
The quickest is the MBOX viewer in your browser. Drop the extensionless file, such as Inbox, and it opens as a searchable inbox. Don't drop the .msf file; if you do, InboxVue explains that it's an index and asks for the file with the same name and no extension. If your account used Maildir storage, each message is a separate file, which you can open with the EML viewer.
To turn a folder into documents, use MBOX to PDF. For every other way to open MBOX files, see how to open an MBOX file.
Troubleshooting
A folder appears empty after copying. Delete the folder's .msf file (not the mail file) with Thunderbird closed, then restart so it rebuilds the index.
The file is much bigger than the folder looks. It still contains deleted messages. Compact the folder in Thunderbird and copy it again.
My IMAP folder file has almost nothing in it. Messages weren't stored offline. In Account Settings → Synchronization & Storage, turn on Keep messages for this account on this computer, wait for the download to finish, then copy the file.
I can't find the profile on a Mac. The Library folder is hidden. In Finder, choose Go → Go to Folder and type ~/Library/Thunderbird/Profiles/.
Subfolders are missing. They're stored in the .sbd directory next to the parent folder's file. Copy that directory too.
Thunderbird says the folder is in use. Quit Thunderbird completely before copying or replacing files, so it doesn't change them mid-copy.
Summary
Each Thunderbird folder is an extensionless MBOX file in your profile, with a .msf index beside it and subfolders in .sbd directories. Use Troubleshooting Information to find the profile, ImportExportTools NG or a manual copy to move folders in and out, and a browser MBOX viewer when you need to read the files without Thunderbird.