Google Vault Guide

Vault Export in One Folder Why Gmail labels are not folders, and how to rebuild them from the metadata XML

You opened a Google Vault export and every email is sitting in a single folder. Inbox, Sent and all your labels have merged into one pile. Nothing is broken and nothing is lost. Google Vault does not turn Gmail labels into folders, and it keeps the label names in a separate file. This guide shows where they are and how to put the folders back.

By ⏲️ 7 min read 📅 23 September 2026 ✓ Confirmed against Google Vault Help 🖥️ Windows 10 and 11

A Google Vault export shows all emails in one folder. Vault records Gmail labels in a metadata XML file instead of turning them into mailbox folders. The label names are not lost. They sit in the metadata XML file that ships with the export. To get the folder tree back, read that XML with a converter and rebuild each label as a folder. This affects the Vault PST export too, not only the MBOX.

This one surprises almost everyone who exports from Vault for the first time. You expect the folder tree you saw in Gmail and you get a wall of mail in a single folder. The instinct is that the export failed or the labels were dropped. Neither is true.

What happened is a mismatch between how Gmail stores mail and how a mailbox file stores it. Understanding that mismatch is the whole fix, so it is worth two minutes before the steps.

Why Are Gmail Labels Not Folders?

Gmail never had folders. It has labels, and a single message can carry several at once, so one email can be in Inbox, in Important and under a client label all at the same time. A mailbox file like MBOX or PST is built the old way, where a message lives in exactly one folder. Those two models do not line up.

When Vault exports a mailbox it takes the safe path. It writes each message once into a single flat container and records the labels it carried as data in the metadata XML. Google states this plainly in the Vault documentation. Gmail labels do not become mailbox folders on export, so opening the file in a mail client shows a single folder holding the lot. The structure is not gone. It is held as metadata rather than as folders.

Where Did the Label Names Go?

Into the metadata XML file that ships inside the export ZIP, next to the MBOX or PST. Open it and each message has a Labels entry listing the labels it held, tied to the message by its Rfc822MessageId and GmailMessageId. Inbox, Sent, Important, Category tabs and every custom label are all there.

Single-folder Vault archive in Outlook beside the message label metadata.
A flat mailbox view does not mean the labels have disappeared. Check the accompanying metadata; the right panel shows a readable sample excerpt.

So the export is complete. What is missing is only the presentation, the folder tree a mail client would show. To get that back, something has to read the label names from the XML and turn each one into a folder, then file every message under the labels it carried. That is exactly what the steps below do.

People assume the export lost their labels. It did not. The label names sit in the XML the whole time. Our job is to read them and turn each one back into a folder, so the archive looks like the mailbox it came from.
Nick Rogers, Founder, Univik

How Do I Rebuild the Label Folders?

Four steps. The one that matters is reading the metadata XML, because that is where the folder names come from.

One Gmail email with Inbox and Projects labels represented in two Outlook folders.
A message with multiple labels may be represented in multiple output folders. Account for that mapping when comparing folder counts after conversion.
1

Find the metadata XML in your export

The label names live here, not in the mail

Unzip the Vault download. Sitting next to the MBOX or PST is a metadata XML file. Open it in any text editor and look for the Labels field on a message. Inbox, Sent, Important and your custom label names are all recorded there, matched to each message through its Rfc822MessageId. The mail file holds no folders of its own, so a client shows one big pile.

2

Load the export into Univik Google Vault Converter

MBOX or PST plus the XML, read as one job

Start Univik Google Vault Converter and use Add ZIP or Add Folder to bring in the unzipped export. The software loads the mail file next to its metadata XML, so every message arrives with the labels it carried. A plain MBOX tool ignores that XML, which is the exact reason it hands you a single folder.

3

Turn on rebuild labels as folders

Inbox, Sent, Drafts and custom labels come back

In the output options switch on Rebuild Gmail labels as folders. The converter reads each label name from the XML and recreates it as a folder, placing every message under the labels it carried. A message with two labels lands in both, which matches how Gmail showed it. Nested labels like Clients/Acme become nested folders.

4

Pick your output and convert

PST for Outlook, MBOX for Thunderbird, PDF for records

Choose the format you need. PST imports into Outlook or Microsoft 365, MBOX suits Thunderbird and review platforms, PDF gives a fixed record. Pick one file per custodian or a single merged file. Run the conversion and the output opens with its folder tree in place instead of the single Vault folder.

Does the PST Export Fix This?

No, and this trips people up. Vault lets you export Gmail as PST instead of MBOX, and since PST is Outlook's own format it feels like the structured choice. It is not. A Vault PST still puts every message in one folder, because the label to folder gap is at Google's end and has nothing to do with the file format you pick.

Choosing PST at export only saves you the later MBOX to PST step. It does not restore the labels. Whether your export is MBOX or PST, the way to get folders is the same: read the metadata XML and rebuild the labels. Univik Google Vault Converter handles both, so it does not matter which format you already have.

Which Way Restores the Vault Folders?

The same export opens three ways. Only the last shows mail by label the way Gmail did.

What you needOpen the MBOXVault PST straight inRebuild from the XML
Shows Gmail labels as foldersNo, one folderNo, one folderYes, from the XML
Uses the metadata XML fileNoNoYes
Message under all its labelsNoNoYes, optional
Nested labels keptNoNoYes
Opens in OutlookNoYes, flatYes, structured
Good forA quick lookA rough dumpReview, case, clean archive
Put the Gmail label folders back

Univik Google Vault Converter reads the export ZIP with its metadata XML, recreates Inbox, Sent and every custom or nested label as a folder. It writes the result to PST, MBOX, PDF, MSG or EML. One file per custodian or a single merged archive.

Runs on Windows without Outlook · the free trial converts 25 messages from each export

The short version

  • Vault does not convert Gmail labels to folders, so the export opens as one folder.
  • The label names sit in the metadata XML, in the Labels field per message.
  • A PST export from Vault has the same one-folder result, format does not change it.
  • Read the XML with Univik Google Vault Converter and switch on rebuild labels as folders.
  • Inbox, Sent, custom and nested labels come back in the PST, MBOX or PDF.

Rebuild Gmail label folders, free trial

Google Vault Questions

Why does my Google Vault export show all emails in one folder?
Google Vault keeps Gmail labels as metadata and never builds them into mailbox folders. Gmail organises mail with labels rather than folders, so on export Vault writes each message once into a flat container and stores the label names in a separate metadata XML file. Google documents this behaviour in its Vault Help. The upshot is that Inbox, Sent and every custom label sit together as one folder when the MBOX or PST opens in a mail client.
Are the Gmail labels lost in a Vault export?
No, the labels are not lost, they are moved. Each message keeps its label names inside the metadata XML file that ships with the export, in the Labels field beside the Rfc822MessageId. The mail file has no folder structure, so a normal viewer cannot show them. A converter that reads the XML can recover every label and rebuild it as a folder, so nothing is actually missing from the export.
Does exporting Google Vault as PST keep the folders?
No. A PST export from Vault still puts all mail in one folder, the same as the MBOX export, because the label to folder gap is at Google's end, not in the file format. Choosing PST at export time only saves the MBOX-to-PST conversion, it does not restore the structure. To get real folders you read the metadata XML and rebuild the labels, which Univik Google Vault Converter does for both MBOX and PST exports.
How do I rebuild Gmail label folders from a Vault export?
Bring the export into Univik Google Vault Converter, which reads the MBOX or PST beside the metadata XML, then switch on the option to rebuild labels as folders. The software takes each label name from the XML and recreates it, filing every message under the labels it held. Inbox, Sent, Drafts and custom or nested labels all come back as folders in the PST, MBOX or PDF output.
Will a message with two labels appear twice?
Yes, and that is correct. In Gmail a message can carry several labels at once, so when the folders are rebuilt the message is placed under each label it held, matching what the user saw in Gmail. If you would rather have one copy per message you can turn that behaviour off in Univik Google Vault Converter and keep a single primary folder, which some review workflows prefer.
Can I see the labels without special software?
You can open the metadata XML file in a text editor or a browser and read the Labels field for each message, which confirms the label names are present. What you cannot do that way is browse the mail by label, because the messages stay in one folder. To actually navigate the archive by label you rebuild the folders with a converter that reads the XML.
About This Guide

This guide was written for Univik by . Univik builds Windows software for email and file formats and has done since 2013. The behaviour described here, that Gmail labels are not converted into folders and stay in the metadata XML, was verified against Google Vault Help in September 2026. The label rebuild was tested on a Gmail export that mixed nested and shared labels. 23 September 2026. Labels still not showing? Reach support from the link below.

Sources: Vault export contents (Google Workspace Help) · Reviewing messages exported from Vault · Univik Google Vault Converter product page