Posted by Sponsored Post Posted on 20 March 2024

How to Migrate from Gmail to Office 365? A Step-by-Step Guide

We all are aware of the fact that Gmail is an email exchanging platform, whereas Office 365 is a collaborative and productive suite from Microsoft. Office 365 comes with an assortment of intelligent services, applications, and other business tools. To leverage the benefits of these services and tools, users migrate to Office 365 from email platforms, like Gmail. However, there is no direct way to migrate from Gmail to Office 365. In this article, we will help you to migrate your emails and other data from Gmail to Office 365. 

Methods to Migrate from Gmail to Office 365

Follow the given methods to migrate data from Gmail to Office 365.

Method 1: Migrate Emails from Gmail (G-Suite) using IMAP

As Gmail supports IMAP, you can migrate emails from Gmail to Office 365 using the IMAP migration method. Here is the step-by-step process.

Step 1: Generate a third-party App-password and Enable 2-Step Verification in Google

You need to first generate a third-party app password. Here’s how:

  • Sign in to your Google account and click on Account options.
  • Go to Security tab and enable the 2-step verification.
  • Now, click on App passwords and generate the third-party app password.

Step 2: Verification of Office 365 Domain Authority

Next, you are required to verify the Office 365 domain by following these steps:

  • Log in to your Office 365 account and open the Admin center.
  • Click the Go to setup menu and select the Domains option. 
  • Now, click on the Add Domain.
  • Enter the Domain name and click Next
  • Now, check the Add a TXT record instead option to verify the domain and click Next.
  • Copy the TXT value and add the DNS record to your host provider.
  • Click on Verify to complete the verification. 

Step 3: Add Users to Office 365

Now, you need add users to Microsoft Office 365. You can add one user or multiple users at a time. Follow the steps given below:

  • Open the Admin Center. On the right panel, click on Users. 
  • Select Active Users and then click on More.

  • To add a single user, select Add user. To add multiple users, select Import Multiple Users. You can import the information of multiple users through a CSV file and create the mailboxes for the users.

  • Once you upload the file, click on the Verify button.
  • Select and assign appropriate licenses to the users or choose the option ‘Create user without product license’. 

Step 4: Make a List of Gmail Mailboxes to Migrate

Next, create a list (Excel file) of user mailboxes that you want to move from Gmail to Office 365. Here are the steps:

Note: You must also know the password of every Gmail mailbox you’re going to migrate. 

  • Sign in to G-Suite as an administrator.
  • Go to Users and select the list of users from Google Admin Center.
  • Note down the email address of each user that you want to migrate.
  • Sign in to Office 365 Admin Center. Go to Users and select Active users.

  • Generate an Excel sheet using the collected address and users’ passwords and save it as CSV.

Step 5: Create Migration Endpoint 

You need to now create migration endpoint that contains the configuration settings required to establish connection for smooth transfer of mailboxes from Gmail IMAP to Office 365. Follow the steps given below to create the migration endpoint: 

  • Open Exchange Admin Center.
  • Go to Recipients and select Migration. 
  • Click on the three dots (…) and select Migration endpoints.

  • Click on New (+) and select IMAP.
  • On the IMAP migration configuration page, enter the IMAP server and settings (IMAP Server: and Settings: default). Then, click Next.
  • Provide a migration endpoint name in the ‘Enter general information page’. 
  • Do not fill the other two boxes and click only on New.


Step 6: Create Migration Batch for Migration of Mailboxes

You need to create a migration batch with Gmail mailboxes. Here’s how: 

  • In Office 365, go to Admin Center and click on Exchange.

  • Navigate to Recipient and then click Migration
  • Click New (+) and select Migrate to Exchange Online.

  • Select IMAP migration and then click Next. On the Select the Users window, click on Browse and select the CSV file created above (Step 4). Click Next
  • Once the validation is completed, Office 365 displays the Gmail mailboxes. Click Next
  • On the Set the migration endpoint screen, select the previously created migration endpoint. 
  • On the IMAP migration configuration window, maintain the default values and click on Next
  • On the Move configuration page, enter the name (with no spaces and special characters) of the migration batch. Also, provide the names of the folders that are to be excluded. Click Add (+) sign to add them into the excluded list and click ‘Next’.
  • On the Start the batch window, click on ‘Automatically Start the Batch and then New to start migration.


Note: The above manual process is lengthy, tedious, and requires technical skills to complete it successfully. Also, if you make any mistake or miss any step, then it may lead to failure of entire process. 

Method 2: Use an MBOX to PST Conversion Tool

There is a simple and quick way to migrate from Gmail to Office 365. In this, you need to first download Gmail emails using Google Takeout – a free service provided by Google Inc. to download data from its products, like Gmail, YouTube, etc. When you download Gmail data using Google Takeout, it is saved in MBOX file format. You can then convert this MBOX file to PST format using a third-party MBOX to PST conversion tool, like Stellar Converter for MBOX. Once the MBOX file is converted to PST, you can then import the PST file into Office 365. The tool can also directly migrate data from MBOX file to Office 365. Moreover, it can convert multiple MBOX files at once.


Above, we have discussed different methods to migrate data from Gmail to Office 365. Migrating Gmail data to Office 365 using IMAP is lengthy, cumbersome, and involves risk of data loss. It requires you to have technical proficiency and skills to complete the process successfully. 

Alternatively, you can download the Gmail data in MBOX file using Google Takeout. Then, use a specialized tool, like Stellar Converter for MBOX to convert the Google Takeout MBOX file into PST. The tool extracts all the MBOX file data and converts it into PST or export it to Office 365 with 100% accuracy. 

From our advertisers