Export guide · Checked against Gmail documentation 2026-11-17
How to export all your email from Gmail
A user exports their own Gmail from Google Takeout at takeout.google.com and receives a .zip or .tgz archive. For a whole organization, a super administrator runs the Data Export tool in the Admin console, and a Vault user with export privileges exports searched mail as mbox or PST files with metadata.
Who can export from Gmail
Takeout is the per-user route. Anyone signed in to a Google Account can use it for their own mail, but Google Workspace administrators can manage whether users may download data from each product, so a work account may find it switched off.
The Data Export tool is restricted to super administrators. Google also requires that the super admin account be at least 30 days old, unless the organization itself is newer than that, and that 2-Step Verification is turned on for the admin who starts the export. Google Cloud must be turned on for the admin account that will open the exported data. Organizations with more than 1,000 users are told to contact Google Workspace support before using the tool. At the time of checking, Google says a full export is available in all Google Workspace editions.
Vault exports need three Vault privileges, assigned by a Workspace administrator: Manage Matters, Manage Searches and Manage Exports. If multi-party approval for Vault exports is turned on, a second delegated admin has to approve each export started in the Vault interface.
How to export, step by step
Route 1 of 3
Export your own mailbox with Google Takeout
Any user, if the Workspace admin allows Takeout for Gmail
- 01Sign in to your Google Account and go to the Google Takeout page.
- 02Uncheck the box beside every product you do not want, leaving your email selected.
- 03Select Next step.
- 04Choose a delivery method, an export type, a file type (.zip or .tgz) and a maximum archive size.
- 05Select Create export.
- 06In the email that arrives, select Download archive and follow the steps on the screen.
Takeout cannot export mail for a chosen time period, only the full mailbox. Google says most people get the link the same day, and that large accounts can take up to a few days.
Route 2 of 3
Export the organization with the Data Export tool
Super administrator with 2-Step Verification on
- 01In the Google Admin console, go to Menu > Data > Data import & export > Data export.
- 02Click Set up new export.
- 03Enter a name in the Name box.
- 04In the Scope box, choose Export all user data for the entire organization, or Export data for specific users and pick them on the Group, Org Unit or Users tabs.
- 05Click Start export.
- 06When the export is ready, open the Cloud Storage bucket and download the files, using gcloud storage cp --recursive to copy whole folders.
An export cannot be stopped from the Admin console once it starts. If the admin who started it loses super admin privileges while it runs, it may be canceled with no data exported. The export covers every service for the users in scope, not only Gmail.
Route 3 of 3
Export searched mail with Google Vault
Vault user with Manage Matters, Manage Searches and Manage Exports
- 01Sign in to vault.google.com.
- 02Open the matter and run your search.
- 03Click Export.
- 04Enter a descriptive name for the export, without special characters.
- 05If your organization has a data region policy, select the region.
- 06Choose the message format: PST or mbox.
- 07Choose whether to include confidential mode messages and whether to export linked Drive files.
- 08Click Export again.
- 09Click Exports, wait for the green checkmark in the Status column, then click Download.
Vault exports the results of a search, so it is the route to use when you need a subset of the mail. Google's advice for an export that is too big is to split the query, for example by month or by smaller organizational units.
What comes out
A Takeout archive is a .zip or .tgz file, split into several archives when the data is larger than the maximum size you chose. Google's Takeout article does not name the mail file format. It says each archive includes a file called archive_browser.html that explains the formats inside. Gmail labels are preserved for each message in an X-Gmail-Labels header. Gmail's own help page says the download holds message content, headers and attachments, and that encrypted messages stay encrypted.
A Data Export lands in a Google Cloud Storage bucket. The root folder holds one folder per user, and each user folder holds zip files of that user's data, split by service and by size with labels such as Gmail (Part 1). Data owned by a service, not a person, appears under Resource.
A Vault Gmail export is the most structured. Message files are zipped as export_name-N.zip and each PST or mbox inside is named for the account it came from. Beside them sit export_name-metadata.csv and export_name-metadata.xml, a result counts CSV, an errors XML and an MD5 checksum file. The Rfc822MessageId field in the metadata is the link to each message in the mbox. Labels do not become folders: opened in a mail client, every message appears in a single folder, and the label names live in the Labels metadata field.
| In the export | What it contains |
|---|---|
| Takeout archive (.zip or .tgz) | The user's mail with labels in an X-Gmail-Labels header, plus archive_browser.html describing the formats. |
| export_name-N.zip (Vault) | PST or mbox files of the exported messages, one or more per account. |
| export_name-metadata.csv and .xml | Account, From, To, CC, BCC, Subject, Labels, DateSent, DateReceived and message IDs for each message. |
| export_name-result-counts.csv | Each account with its status, the number of messages exported and the number with errors. |
| export_name-errors.xml | Summary and list of account and message errors. Always present, even when empty. |
| export_name-drive-links.csv | Message ID, Drive hyperlink and Drive document ID for each Drive link, when Export linked Drive files is on. |
| MD5 checksum file | Hash values for all the files in the Vault export. |
| User folders (Data Export tool) | One folder per user holding zip files split by service, such as Gmail (Part 1). |
Before you rely on it
Limits and gotchas.
- A Takeout archive expires in about 7 days and can be downloaded at most 5 times.
- A Data Export is available no earlier than 48 hours after it starts. Google says it typically takes 72 hours and can take up to 14 days.
- Data Export files in the Google-provided bucket are deleted 60 days after the export begins, and some packets can be deleted before others.
- The Data Export tool leaves out accounts created within 24 hours before the export starts, and deleted data unless Vault retained or held it.
- Vault export files are available for 15 days after you start the export. An organization can have no more than 20 exports in progress at once.
- A Vault export that is not complete after 24 hours stops and shows partial results. You download what was retrieved and choose Continue export for the rest.
- In Vault, messages for one account are split into numbered zip files once they exceed 1 GB as PST or 10 GB as mbox. If you exclude confidential mode messages, only their metadata is exported.
Handle with care
Personal data inside a Gmail export.
- Full message text and attachments for every mailbox exported.
- Sender and recipient addresses in the From, To, CC and BCC fields, including people outside your organization.
- Subject lines and label names, which can describe clients, cases or personal matters.
- Account email addresses in Vault file names and in the result counts file.
- Mailbox settings in a Takeout download: signatures, vacation responder text, forwarding addresses, filters and blocked addresses.
- Links to Drive files that were shared by email, in the Drive links file.
An export is a copy outside the access controls of Gmail. Store it encrypted, limit who can open it and delete working copies when you are done. The personal data scrubber removes common identifiers in your browser before a file is shared.
What the export can be worth
Outrich Data is a direct buyer of de-identified company data for AI training, from companies with 50 or more employees. We never connect to your Gmail account: your team runs the export above and removes what is out of scope. Not every export qualifies, and a rights review comes before any offer.
Questions
Exporting from Gmail: common questions.
Can I export Gmail for a specific date range?
What file format does a Gmail export use?
Do Gmail labels survive the export?
How long do I have to download the export?
Sources
- Google Account Help: How to download your Google data2026-11-17
- Gmail Help: Export your data from Gmail2026-11-17
- Google Workspace Help: Export all your organization's data2026-11-17
- Google Vault Help: Export data from Vault2026-11-17
- Google Vault Help: Vault export contents2026-11-17
- Google Vault Help: Review messages exported with Vault2026-11-17
Steps were checked against Gmail documentation on 2026-11-17. Vendors change menus, plans and limits, so confirm against the linked pages. Gmail is a trademark of its owner. Outrich Data is not affiliated with Gmail.
Find out if your data qualifies.
Eleven questions, about five minutes, no call required. You get an answer on screen and a written follow-up.