How to Backup Gmail Emails
- Use Google Takeout to export your full mailbox as MBOX files to your computer, Google Drive, OneDrive, Dropbox, or Box.
- Sync Gmail to Outlook, Thunderbird, or Apple Mail over IMAP with an App Password and 2-step verification.
- Enable Gmail Offline in Google Chrome to cache recent messages for offline access.
- Run a dedicated Gmail backup tool to export to PST, EML, MBOX, or PDF with selective folder support.
Why Back Up Gmail Emails?
Gmail keeps deleted messages in Trash for only 30 days. After that, Google removes them permanently and you cannot restore them. Google also does not give you a long-term archive of personal Gmail data outside that window.
As a result, a lost message is gone for good unless you keep your own copy. A local backup also protects you during a Google outage, when you leave Gmail for another provider, or when you must meet legal retention rules.
- Ransomware or account takeover: a compromised account can lose messages before you regain control.
- Accidental deletion: the 30-day Trash window is short if you do not notice the loss quickly.
- Google outages: rare but disruptive, and a local backup keeps critical mail accessible.
- Account migration: moving to Microsoft 365, Outlook, or a Workspace replacement needs a portable copy of your mail.
- Compliance and audits: some industries require multi-year retention beyond Gmail’s defaults.
Which Backup Method Should You Choose?
First, match the method to your goal. Then pick the format and destination that fit your storage and recovery plan.
- Free, official, full mailbox export: Method 1 (Google Takeout).
- Live sync to a desktop client: Method 2 (IMAP with App Password).
- Quick offline reading in the browser: Method 3 (Gmail Offline in Chrome).
- Selective backup to PST, EML, PDF with filters: Method 4 (dedicated Gmail backup tool).
How to Backup Google Workspace Emails
Method 1: Backup Gmail with Google Takeout (Free, Official)
Google Takeout is Google’s native export tool. It packages your Gmail data as MBOX files. Then it delivers the archive as a download link, or pushes it to Google Drive, OneDrive, Dropbox, or Box.
Use Takeout when you want a one-time or scheduled full export at no cost.
What Google Takeout Backs Up
Takeout exports every email in your mailbox in MBOX format. This includes Inbox, Sent, Drafts, Spam, Trash, and all labels. It also exports attachments inside the messages.
However, Takeout does not back up Google Contacts or Calendar by default. You must add those services in the export step if you need them.
Step-by-Step: Export Your Gmail with Takeout
- Sign in to your Google account and go to takeout.google.com.

- Click Deselect all, scroll to Mail, and check the box. By default all folders are included. Then click All Mail data included if you want to pick specific labels.

- Click Next step. Next, choose a delivery method: Send download link via email, Add to Drive, Add to Dropbox, Add to OneDrive, or Add to Box.

- Choose Export once for a single backup. Or pick Export every 2 months for 1 year for six scheduled exports.
- Pick the file type (.zip or .tgz) and the maximum archive size (1 GB to 50 GB). Larger mailboxes are split into multiple files.

- Finally, click Create export. Google emails you when the archive is ready. The wait can run from a few minutes to several hours depending on mailbox size.
Google Takeout for Google Workspace (Admin Export)
Individual Workspace users can run Takeout on their own mailbox the same way personal Gmail users do. This works as long as the admin has enabled the service.
For a domain-wide export covering every user, an admin must use the Data Export tool from the Admin console. This option appears for accounts older than 30 days with fewer than 1,000 users.
- Sign in to admin.google.com/ac/customertakeout.
- Click Start export. Google sends a completion notice when the archive is ready (typically 72 hours, up to 14 days for large tenants).
For more detail on Workspace exports, see our guide on how to backup Google Workspace emails.
Method 2: Sync Gmail to a Desktop Client over IMAP
IMAP keeps a continuous copy of your mailbox in a desktop client like Outlook, Thunderbird, or Apple Mail. As a result, every new message lands on your computer as soon as it arrives in Gmail.
However, IMAP also mirrors deletions. So if you delete a message in Gmail, the client removes it too. To keep an independent archive, copy the synced folders to a local PST or MBOX file on a schedule.
Step 1: Enable IMAP in Gmail
- Open Gmail in a browser. Click the gear icon in the top right and choose See all settings.

- Next, go to the Forwarding and POP/IMAP tab. Under IMAP access, select Enable IMAP and click Save changes.

Step 2: Generate an App Password (Required Since 2022)
- Go to myaccount.google.com/security. Then enable 2-Step Verification if it is not already on.
- Open myaccount.google.com/apppasswords. Enter an app name (for example, Outlook desktop) and click Create.
- Finally, copy the 16-character password Google generates. Use this in place of your Gmail password when you configure the desktop client.
Step 3: Configure Outlook, Thunderbird, or Apple Mail
- In Outlook desktop, go to File > Add Account. Enter your Gmail address.

- When prompted for the password, paste the App Password, not your Gmail password.
- Outlook auto-detects IMAP settings (imap.gmail.com, port 993, SSL; smtp.gmail.com, port 587, STARTTLS). Click Done.

Thunderbird and Apple Mail follow the same pattern. Add a new account, enter the Gmail address, paste the App Password, and let IMAP populate the local folders.
Method 3: Enable Gmail Offline in Google Chrome
Gmail Offline is a Chrome-only feature. It caches recent messages so you can read, search, and write mail without an internet connection.
However, it is not a true backup. You still need an online sync to recover lost messages. As a result, treat it as a convenience layer, not a long-term archive.
- Open Gmail in Chrome. Click the gear icon and choose See all settings.
- Next, go to the Offline tab and check Enable offline mail.

- Choose how many days of mail to sync (7, 30, or 90). Also choose whether to include attachments, and how to handle cached data on logout.
- Finally, click Save changes. Chrome caches the selected window of mail on disk.

To use offline mode later, just open mail.google.com in Chrome while disconnected. Only the messages cached during the last online session are available.
Method 4: Use a Dedicated Gmail Backup Tool
A dedicated tool gives you the most control. You can pick file formats, filter messages, and back up to any local or network location. In addition, most tools support direct migration to other mailboxes.
Email Bakup is one such tool. It runs on Windows, supports OAuth and App Password sign-in, and writes to PST, EML, MBOX, PDF, HTML, CSV, or TXT.
- Export Gmail to PST, EML, MBOX, PDF, HTML, CSV, or TXT.
- Direct migration to Microsoft 365, another Gmail mailbox, or any IMAP server (Yahoo, Outlook.com, iCloud, AOL, GoDaddy, and more).
- Filter by sender, subject, keyword, or date range before backup.
- Selective folder backup (Inbox only, Sent only, custom labels).
- Preview every message and attachment before export.
- Extract only attachments, only email addresses, or only phone numbers if needed.
Common Errors and Fixes
Username and password not accepted
This usually means you used your Gmail password instead of the App Password. Therefore, generate a new App Password and paste the 16-character string into your client.
IMAP sync is slow
Gmail throttles IMAP at high request rates. As a result, you should limit Outlook to one connection. Also, let large mailboxes sync overnight.
Takeout MBOX file too big to open
First, use a free MBOX viewer or split the file with a converter. Most email clients accept MBOX over 5 GB only after a long import.
Frequently Asked Questions
Is Google Takeout free?
Yes. Takeout is free for personal Gmail and Google Workspace accounts. There is no per-GB fee.
Will backing up Gmail delete messages from the cloud?
No. Google Takeout, Gmail Offline, and dedicated backup tools all copy messages without removing them from Gmail. However, IMAP clients can delete messages if you remove them locally, so disable that behavior in client settings.
How often should I back up Gmail?
For most users, a monthly Takeout export plus a continuous IMAP sync is enough. In addition, regulated industries should run weekly or daily incremental backups with a dedicated tool.
Can I back up Gmail to an external hard drive?
Yes. Run Takeout with Send download link via email and save the resulting ZIP to an external drive. Also, backup tools can write directly to the external drive path.
Does Gmail have built-in long-term archiving?
No. Gmail keeps deleted messages for 30 days in Trash and indefinite mail in All Mail. However, Google does not offer a versioned long-term archive. Therefore, you need a separate backup for true retention.
Final Thoughts
Backing up Gmail is straightforward once you pick the right method. Use Google Takeout for a free, complete export. Use IMAP sync with an App Password if you want a desktop client that mirrors Gmail in real time.
In addition, use Gmail Offline in Chrome for quick offline access to recent mail. Finally, use a dedicated Gmail backup tool when you need filters, multiple formats, or direct migration to another service.
As a best practice, combine two methods. For example, run scheduled Takeout exports for full archives and keep an IMAP sync for daily access. That way your mail lives in at least two places.
