Gmail to Office 365 Email Migration: Step-by-Step
In this article
To migrate email from Gmail to Office 365, you copy your Gmail messages, contacts, and calendar into your Microsoft 365 mailbox, then optionally set up forwarding so new mail keeps arriving. The most reliable method for most home users and small businesses is Microsoft's built-in IMAP migration or the Outlook desktop app's import/export tools, because they work without third-party software and keep your folder structure. Before you start, make sure you have your Gmail address, your Gmail app password (if 2-Step Verification is on), your Microsoft 365 email address and password, and enough free space in your Microsoft 365 mailbox for everything you are moving. Labels can differ slightly by app version, device, or region, so treat the menu names below as a guide rather than a guarantee.
What You'll Need
- Your Gmail address and password. If 2-Step Verification is enabled, create an app password in your Google Account security settings (Google calls it an "App password") and use that instead of your normal password.
- Your Microsoft 365 email address and password, and access to the Microsoft 365 admin center if you are moving a whole domain.
- A desktop computer with Outlook installed (part of Microsoft 365) for the manual export/import method, or a web browser for the IMAP method.
- Enough mailbox storage in Microsoft 365. Check your current usage in Gmail and compare it with your Microsoft 365 plan's mailbox size; if Gmail holds more than your new mailbox allows, move the oldest mail to a local Outlook data file (.pst) first.
- A stable internet connection and time. Large mailboxes can take hours, so start when you do not need the computer for anything else.
Step-by-Step
- Back up Gmail first. In Gmail on a computer, open Google Takeout (takeout.google.com), deselect everything except Mail, and create an export. This gives you a downloadable archive you can keep as a safety copy. It is not required for the migration, but it protects you if something goes wrong.
- Enable IMAP in Gmail. In Gmail, click the gear icon and choose See all settings. Open the Forwarding and POP/IMAP tab and select Enable IMAP, then save changes. This lets Outlook and Microsoft 365 read your Gmail messages.
- Decide on the migration method. For a single mailbox, the Outlook desktop import is simplest. For a domain with several users, use the Microsoft 365 admin center's IMAP migration, which copies mail server-to-server without needing Outlook open.
- Method A: Outlook desktop import (single mailbox). In Outlook, go to File > Add Account and add your Gmail account using your app password. Let Outlook sync fully; this can take a while. Then go to File > Open & Export > Import/Export, choose Export to a file, select the Gmail account, and save a .pst file. Next, add your Microsoft 365 account to Outlook, then use File > Open & Export > Import/Export again to import that .pst into the Microsoft 365 mailbox. Finally, drag messages from the imported folders into your Microsoft 365 inbox folders if you want them merged.
- Method B: Microsoft 365 IMAP migration (multiple mailboxes). Sign in to the Microsoft 365 admin center, go to Exchange admin center > Migration, and choose New > Migrate to Exchange Online > IMAP migration. Upload a CSV file listing each Gmail address and password (use app passwords), then start the batch. Microsoft 365 connects to Gmail and copies the mail. You can check progress in the migration dashboard.
- Verify the copy. After the migration finishes, open Outlook on the web or the Outlook desktop app and check that folders, read/unread status, and attachments look right. Compare a few random messages against Gmail. Note that Gmail labels become Outlook folders, and some Gmail-specific features such as categories or snooze do not transfer.
- Set up forwarding for new mail (optional). In Gmail, go to Settings > Forwarding and POP/IMAP > Add a forwarding address and enter your Microsoft 365 address. Confirm the verification email in Microsoft 365. Then choose Forward a copy of incoming mail to your new address. This keeps new messages arriving while you finish the switch.
- Update your contacts and calendar. Export Gmail contacts as a CSV (Google Contacts > Export) and import them in Outlook on the web under People > Manage > Import contacts. For calendar, use Google Calendar's export to .ics and import into Outlook calendar. Check recurring events and time zones after import.
- Tell people about the new address and update accounts. Send a short note from your Microsoft 365 address, update your signature, and change your email address in banking, shopping, and social accounts. Keep the Gmail account active for at least a few weeks so forwarded mail and password resets still reach you.
Common Mistakes
- Using your normal Gmail password when 2-Step Verification is on. IMAP and Outlook need an app password; without it the connection fails with an authentication error.
- Forgetting to enable IMAP in Gmail. The migration tools cannot read the mailbox until IMAP is turned on in Gmail settings.
- Migrating before checking mailbox size. If Gmail holds more than your Microsoft 365 mailbox allows, the migration stops partway. Clear space or archive old mail first.
- Assuming labels and categories transfer perfectly. Gmail labels become folders, but Gmail's category tabs and some filters do not carry over; recreate important filters in Outlook.
- Deleting the Gmail account too soon. Keep it active until you have confirmed all mail, contacts, and calendar items arrived and you have updated your important accounts.
Tips
- Run the migration overnight or over a weekend; large mailboxes can take many hours and slow your connection.
- Create the folder structure in your Microsoft 365 mailbox before importing so messages land in the right places.
- Use a wired connection or a stable Wi-Fi network for the Outlook desktop method; interruptions can leave a partial .pst file.
- Keep the Google Takeout archive until you are fully satisfied with the migration.
- If you only need new mail in Microsoft 365 and do not care about old messages, forwarding alone is enough and much faster.
Troubleshooting
If the migration does not go to plan, work through these checks in order. First, confirm you can sign in to both Gmail and Microsoft 365 in a browser. If Outlook cannot connect to Gmail, re-check that IMAP is enabled and that you are using an app password, not your regular password. If the Microsoft 365 IMAP migration batch shows errors, open the batch details and read the error message; common causes are wrong passwords, a CSV with the wrong column headers, or Gmail blocking the sign-in. For Gmail blocking, sign in to the Gmail account and check for a "less secure apps" or security alert, and allow the connection if prompted. If messages are missing, check whether they were in Gmail's Spam or Trash; those folders are often not migrated by default. If the import stalls, restart Outlook and try importing again; a partial .pst can be re-exported. If you hit mailbox storage limits, move older mail to a local .pst in Outlook and remove it from the server. Finally, if nothing works, fall back to Google Takeout: download the archive, open it in a mail client that supports .mbox, and copy messages into your Microsoft 365 mailbox manually. That is slower but reliable.
Frequently Asked Questions
Can I migrate Gmail to Office 365 without third-party tools?
Yes. Outlook's export/import and the Microsoft 365 admin center's IMAP migration are both built-in and work without paid tools.
Will my Gmail labels become Outlook folders?
Yes, labels are converted to folders during IMAP migration. Gmail's category tabs and some filters do not transfer.
Do I need to keep my Gmail account after migrating?
Keep it active for a few weeks so forwarded mail and password resets still reach you, then close it once you are sure nothing important is missing.
How long does the migration take?
It depends on mailbox size and connection speed. A small mailbox can finish in under an hour; large ones can take many hours or overnight.
What happens to my Gmail contacts and calendar?
They do not move automatically with email. Export them from Google Contacts and Google Calendar and import them into Outlook separately.
Can I migrate on a phone or tablet?
The admin center IMAP migration runs in a browser and can be started from a mobile browser, but the Outlook desktop export/import method needs a computer. For most people, a computer is the practical choice.