Why Are My Labels Missing in Google Takeout? (Fix)
X-Gmail-Labels header on each message inside the MBOX — but most mail clients ignore that header when you import the file, so your folder structure does not reappear. The reliable fix is to export one label at a time, so each file maps to a label and the structure lives in your own folders.You carefully organised Gmail into labels over the years, ran a Google Takeout export to back it up, and then — after importing the MBOX somewhere — every message is dumped into a single folder with no labels in sight. It is a frequent and frustrating complaint. The good news is that the labels were not deleted. Understanding what actually happened points straight to the fix.
What's really going on
Gmail does not use folders; it uses labels, and a single message can carry several at once. When Takeout builds your MBOX archive, it preserves that information by writing an X-Gmail-Labels header into each message listing every label applied to it. So the data is genuinely there in the file.
The problem is on the import side. MBOX is a generic mailbox format, and the standard has no concept of Gmail labels. When you import the file into a mail client, that client decides what to do with non-standard headers like X-Gmail-Labels — and most simply ignore them, dropping all the messages into one folder. Nothing was lost; the receiving software just did not translate the label data back into a structure you can see.
Why this trips people up
- Labels aren't folders. A message in three labels cannot map cleanly to three folders on import, so clients often give up and use one.
- The header is non-standard.
X-Gmail-Labelsis Gmail-specific; generic clients have no rule for it. - It looks like data loss. Because the structure disappears, people assume the export was incomplete when it was not.
Fix 1 — Confirm the labels are still in the file
If you want proof before doing anything else, open the MBOX in a tool that shows raw headers (Thunderbird with ImportExportTools NG, or a viewer) and look at any message. You will find a line like X-Gmail-Labels: Work,Clients,Important. That confirms the data survived; only the reconstruction failed. For the full how-to on reading the archive, see how to open an MBOX file.
Fix 2 — Export one label at a time (recommended)
The cleanest way to keep your structure is to stop relying on MBOX to rebuild it and instead capture each label separately at the source. When you export a single Gmail label to its own file, the structure lives in your file names and folders — no header translation required.
- In Gmail, click the label in the left sidebar so only its messages show.
- Export just those results to a file named after the label (for example
clients.csv). - Repeat for each label you care about.
- Keep the files in folders that mirror your label hierarchy.
Our step-by-step export a Gmail label to a spreadsheet guide walks through this. A 1-click extension makes it quick: open the label, click once, and you get a CSV or Excel file with one row per email — sender, subject, date and snippet — that you can sort and search immediately. Because each export maps to exactly one label, your organisation is preserved by design.
Keep your labels — export each one in a click
Open a label, export just those emails to CSV or Excel, privately in your browser. One file per label.
Add to Chrome — It's FreeTakeout vs per-label export, at a glance
| Takeout (MBOX) | Per-label export | |
|---|---|---|
| Label data stored? | Yes, in X-Gmail-Labels header | N/A — one label per file |
| Structure visible after? | Usually not on import | Yes — your files/folders |
| Output | Single MBOX archive | CSV / Excel per label |
| Effort | One export, messy result | One click per label, tidy result |
| Best for | Full raw backup | Keeping label organisation |
If you must reconstruct labels from an existing MBOX
Should you only have the MBOX and need the labels back, importing into Thunderbird with ImportExportTools NG sometimes gives you more control, and there are scripts that read the X-Gmail-Labels header to sort messages into folders. These work but take effort. If the mail is still in your Gmail account, re-exporting per label is almost always faster and cleaner than salvaging structure from the archive. The broader trade-offs are in Gmail Exporter vs Google Takeout.
Summary
Labels are not deleted by Takeout — they are stored in a header that most mail clients ignore on import, so the structure does not reappear. To preserve your organisation, export each label to its own file at the source rather than depending on an MBOX round-trip to rebuild it.
Frequently asked questions
Why are my Gmail labels missing after a Takeout export?
They are usually still in the MBOX as an X-Gmail-Labels header, but most mail clients ignore that header on import, so the folder structure is not rebuilt. The data is there; it just was not reconstructed.
Does Takeout include label information?
Yes — each message's labels are stored in an X-Gmail-Labels header. The limitation is on import: the receiving client decides whether to turn that into folders, and most do not.
How do I keep my labels when exporting?
Export one label at a time to its own named file. The structure then lives in your file names and folders instead of relying on a client to rebuild it.
Can I see the labels inside an MBOX?
Yes — inspect the raw headers and you will find an X-Gmail-Labels line per message. Reading them that way is tedious, so a per-label export is more practical.
Will re-importing the MBOX restore my labels?
Not reliably. It depends on the importing client and add-ons; many drop the structure into one folder.
Is there a faster way to export by label?
Yes — a browser extension lets you open a label and export those messages to CSV or Excel in one click, so each file maps to one label.