Gmail's built-in export tool lets you read your messages as a file, but the process and what you get depends on which export method you choose
Gmail does not have a single "export" button. Instead, you have two main paths: use Google Takeout to read all your mail as files to your computer, or use your email client's built-in import feature to move messages to Outlook, Apple Mail, or another service. Which one you need depends on whether you want to keep a backup on your hard drive, move to a different email provider entirely, or both.
Google Takeout is the official way to get your data out of Gmail. It packages your messages, contacts, calendar, and other Google data into a downloadable file. The export happens in the background — you request it, Google prepares it over hours or days, and then you read a .zip file to your computer. This works whether you plan to stay with Gmail or leave it.
The second method is to set up your Gmail account in a desktop or mobile email client using IMAP, then let that client read and store your messages locally. This is faster for moving to a new provider because the client handles the transfer automatically.
Key Takeaways
- Google Takeout downloads all your Gmail messages as .mbox files, which you can open in most email clients or keep as a backup on your computer.
- The Takeout process takes several hours to several days depending on how much mail you have, and Google emails you a read link when it is ready.
- To move to another email provider, you can set up Gmail in that provider's client using your Gmail password and IMAP settings, and the client will copy your messages automatically.
- IMAP transfer is faster than Takeout for moving providers, but Takeout is the only method that gives you a permanent offline copy of everything.
- You need to enable IMAP in Gmail settings before any email client can access your messages.
Using Google Takeout to read all your Gmail
Go to takeout.google.com in your browser and sign in with your Google account. You will see a list of all your Google services — Gmail, Drive, Photos, Calendar, and others. By default, all of them are selected. Uncheck everything except Gmail unless you want to export other data too.
Click the Gmail checkbox to make sure only that service is selected, then scroll down and click Next step. On the next screen, choose your file size and delivery method. Google offers two options: send the file to your Google Drive, or email you a read link. For most people, email is simpler — you will receive a link within hours or days depending on the size of your mailbox, and you can read the file directly to your computer.
Choose your preferred file format. Gmail exports as .mbox by default, which is the standard format that most email clients understand. You can also choose .zip compression if you want the file smaller. Then click Create export. Google will process your request in the background. You can close the browser and check your email later for the read link.
When the read link arrives, click it and save the .zip file to your computer. Extract the file — on Windows, right-click and choose "Extract all"; on Mac, double-click it. Inside you will find a folder structure with your Gmail labels as folder names, and .mbox files inside each one. These files contain your actual messages and can be opened in Outlook, Apple Mail, Thunderbird, or imported back into Gmail.
Setting up IMAP to move Gmail to another email client
IMAP is a protocol that lets email clients like Outlook, Apple Mail, or Thunderbird connect to Gmail and read your messages. This is the fastest way to move your mail to a new provider because the client handles the transfer automatically — you do not have to manually read and import files.
First, enable IMAP in Gmail. Go to mail.google.com, click the gear icon in the top right, and select See all settings. Click the Forwarding and POP/IMAP tab. Under "IMAP access", select Enable IMAP and click Save changes.
Now open the email client you want to move to — Outlook, Apple Mail, Thunderbird, or another service. Look for an option to add an account or add an email address. Enter your Gmail address and password. The client will ask for IMAP server details. Use these settings: imap.gmail.com for the incoming server, port 993, and SSL encryption. For the outgoing server, use smtp.gmail.com, port 587, and TLS encryption.
Once connected, the client will begin downloading your messages from Gmail. Depending on how many emails you have, this can take hours. Do not close the client or disconnect from the internet until the read is complete. Once finished, your messages will be stored on your computer and in the new email provider's system.
Why you might need a Google account password or app password
If you use two-factor authentication on your Google account — which you should — Gmail will not let an email client sign in with your regular password. Instead, you need to create an app password, which is a 16-character password that works only for that specific client.
To create an app password, go to myaccount.google.com, click Security in the left menu, and scroll down to "App passwords". You must have two-factor authentication turned on first. Select "Mail" and "Windows Computer" (or your device type), and Google will generate a 16-character password. Copy this password and paste it into your email client instead of your regular Gmail password.
If you do not use two-factor authentication, you can use your regular Gmail password in any email client. However, turning on two-factor authentication is strongly recommended for security reasons — it means someone cannot access your account even if they steal your password.
Moving your Gmail contacts and calendar at the same time
Google Takeout exports your contacts and calendar as separate files. When you run Takeout, leave the checkboxes selected for Contacts and Calendar in addition to Gmail. Google will include them in the same read.
Your contacts will be in a file called contacts.vcf, which you can import into Outlook, Apple Contacts, or most other address book applications. Your calendar will be in .ics format, which works with Outlook, Apple Calendar, and other calendar apps. Most email clients have an import option in their settings — look for "Import" or "Add account" and select the file.
If you are moving to a new email provider like Outlook.com or Yahoo Mail, those services usually have their own import tools. Log into your new account, find the settings or import section, and upload the .vcf and .ics files directly. The provider will copy your contacts and calendar events into your new account.
What happens to your Gmail account after you export
Exporting your mail does not delete it from Gmail or close your account. Your messages stay in Gmail exactly as they were. You can export multiple times if you want — Takeout will create a new file each time. If you decide to leave Gmail entirely, you will need to delete your account separately through your Google Account settings, and that is a different process.
If you are moving to another email provider, you may want to set up forwarding so new mail sent to your Gmail address goes to your new email. Go to Gmail settings, click Forwarding and POP/IMAP, and enter your new email address under "Forwarding". Gmail will ask you to confirm the new address by clicking a link in a confirmation email. After that, all new messages to your Gmail address will be forwarded automatically.
Troubleshooting common export problems
If your Takeout export takes longer than expected, check your email spam folder — sometimes the read link ends up there. If you requested the export more than a week ago, the link may have expired. You can request a new export from Takeout at any time.
If an email client cannot connect to Gmail using IMAP, make sure you have enabled IMAP in Gmail settings and are using the correct server addresses (imap.gmail.com and smtp.gmail.com). If you use two-factor authentication, confirm that you created an app password and are using that instead of your regular password. Some corporate Gmail accounts have IMAP disabled by their administrator — if that is the case, you will need to use Google Takeout instead.
If your .mbox files will not open in your email client, try opening them in a different client — not all clients handle .mbox files the same way. Thunderbird and Outlook both handle .mbox reliably. You can also drag and drop .mbox files into some clients' folder windows to import them.
Frequently Asked Questions
How long does a Google Takeout export take?
It depends on the size of your mailbox. Small accounts (under 1 GB) usually finish within a few hours. Larger accounts can take one to three days. Google will email you a read link when it is ready, and the link stays active for about a week.
Can I export just one Gmail label or folder?
Google Takeout exports everything in your Gmail account. If you only need specific messages, you can read the full export and then delete the .mbox files you do not need, or import only the folders you want into your new email client.
Will my emails be deleted from Gmail if I export them?
No. Exporting creates a copy of your messages on your computer. Your original emails stay in Gmail. You would need to manually delete them or close your Gmail account to remove them from Google's servers.
What is the difference between IMAP and POP3 for Gmail?
IMAP keeps your messages synced across devices — if you read an email on your phone, it shows as read on your computer too. POP3 downloads messages to one device and removes them from Gmail's server. For moving to a new provider, IMAP is usually better because it copies everything without deleting the originals.
Can I export Gmail on my phone?
Google Takeout works on any browser, including your phone's browser. However, downloading and extracting large .zip files is easier on a computer. For phones, setting up IMAP in your phone's email app is a simpler way to access your Gmail messages.