Migrate Calendar from IMAP to Office 365
In this article
Migrating your calendar from an IMAP account to Office 365 means moving your events, appointments, and reminders from a mail server that uses IMAP (like Gmail, Yahoo, or a legacy Exchange account) into your Microsoft 365 mailbox. Unlike email, IMAP does not natively sync calendar data, so you cannot simply drag-and-drop. Instead, you export the calendar to a file and import it into Outlook or the Outlook on the web. This guide covers the entire process, including what you need, step-by-step instructions, common pitfalls, and troubleshooting.
What You'll Need
- Access to your old IMAP account (webmail or Outlook client) to export the calendar.
- An Office 365 account with a valid license (business or enterprise) that includes Exchange Online.
- Outlook desktop client (recommended) or access to Outlook on the web (OWA).
- Local storage on your computer to save the exported calendar file.
- Your Office 365 login credentials (email address and password).
Step-by-Step
- Export the calendar from your IMAP account.
- If you use Outlook desktop with the IMAP account configured, open Outlook, go to File > Open & Export > Import/Export. Choose Export to a file, then select Comma Separated Values (CSV) or Outlook Data File (.pst). For calendars, CSV is easier to import; select your calendar folder and save the file.
- If you use webmail (e.g., Gmail), go to Google Calendar, click the gear icon > Settings > Import & export > Export. This downloads a .zip file containing an .ics file for each calendar. Extract the .ics file.
- For Yahoo or other providers, look for an “Export” or “Download” option in the calendar settings. Usually, you get an .ics file.
- Prepare the exported file.
- If you have a .pst file, you can import it directly into Outlook (see step 4). If you have an .ics file, you can import it into Outlook or OWA.
- If you have a CSV file, you may need to convert it to .ics using a tool or import it into a calendar app that supports CSV (like Google Calendar) and then export as .ics. For simplicity, try to get an .ics file.
- Sign in to Office 365.
- Go to outlook.office.com and sign in with your Office 365 credentials. This is the Outlook on the web interface.
- Import the calendar file into Outlook on the web (OWA).
- In OWA, click the calendar icon in the left navigation (or the app launcher).
- On the calendar view, click Add calendar (usually a + icon) in the left pane.
- Choose Upload from file and select your .ics file. The events will be added to a new calendar named after the file.
- Alternatively, you can use the desktop Outlook client: open Outlook, go to File > Open & Export > Import/Export, choose Import an iCalendar (.ics) or vCalendar file, and select your .ics file.
- Verify the migration.
- Check that all events appear in the new calendar. Look for recurring events, reminders, and time zones. If some events are missing, re-export and re-import, or check for date range filters during export.
- Move events to your primary calendar (optional).
- If you want all events in your default calendar, select all events in the imported calendar (Ctrl+A) and drag them to your main calendar. Or, you can leave them in a separate calendar for reference.
- Set up any recurring sync (if needed).
- This migration is a one-time import. If you need ongoing sync, consider using a third-party tool or connecting your IMAP calendar via a connector (if available). For most users, a one-time import is sufficient.
Common Mistakes
- Exporting only a date range: Many export tools default to a limited date range (e.g., next 30 days). Ensure you select “all events” or a wide range (e.g., 1900-2100).
- Importing a CSV directly into OWA: OWA only accepts .ics files. If you have a CSV, convert it to .ics first using a free online converter or a desktop app.
- Forgetting time zones: Events may shift by hours if the time zone is not preserved. Use an .ics file, which includes time zone definitions, and verify a few events after import.
- Overwriting your existing calendar: When importing, OWA creates a new calendar. If you import into an existing calendar, it may merge or overwrite. Always import into a new calendar first.
- Ignoring recurring events: Some export tools may break recurring series. After import, check that recurring events are intact and not duplicated.
Tips
- Use the Outlook desktop client for import if you have it, as it handles .ics and .pst files more robustly than OWA.
- Before migrating, clean up your old calendar—remove old or irrelevant events to reduce import time.
- Test with a small sample (e.g., one month) first to confirm the process works, then do the full import.
- If you have multiple calendars (e.g., personal, work), export each separately and import them as separate calendars in Office 365.
- After import, share your new calendar with colleagues if needed, using Office 365 sharing permissions.
Troubleshooting
- Events not appearing: Check the calendar view—you may have multiple calendars and the imported one is hidden. Click the calendar name in the left pane to show it.
- Import fails with an error: Ensure the .ics file is not corrupted. Try opening it in a text editor to see if it starts with “BEGIN:VCALENDAR”. If not, re-export.
- Events are duplicated: If you imported twice, you may have duplicates. Delete the duplicate calendar and re-import only once.
- Time zone issues: If events show wrong times, check the time zone settings in your Office 365 account (Settings > General > Region and time zone). You may need to adjust the time zone in the .ics file before importing.
- Recurring events break: Some export tools only export the first occurrence. If that happens, use a different export method (e.g., from the desktop Outlook client instead of webmail).
Frequently Asked Questions
Can I migrate my calendar without exporting a file?
No, IMAP does not support calendar sync. You must export to a file (like .ics) and import it into Office 365.
Will my calendar events sync automatically after migration?
No, the import is a one-time copy. Future events on your old calendar will not appear. You need to either keep using the old calendar or set up a recurring export/import, which is not practical.
Can I import a .pst file into Office 365?
Yes, if you have a .pst file from Outlook, you can import it using the Outlook desktop client (File > Open & Export > Import/Export > Import from another program or file). This will bring in emails, contacts, and calendar items.
Does the import overwrite my existing Office 365 calendar?
No, it creates a new calendar. You can then move or merge events manually if desired.
What if my calendar has attachments or reminders?
Attachments and reminders are usually preserved in .ics files, but attachments may not import if they are external links. Reminders should import, but you may need to reset them.
Can I do this from a Mac?
Yes, you can export from Apple Calendar (File > Export > Export) and import into Outlook on the web. The steps are the same.