Understanding the difference between OST and PST files in Microsoft Outlook helps you manage email data effectively, whether you're using an Exchange account, working offline, or backing up messages. OST files synchronize with Exchange servers and enable offline access, while PST files store data locally for archiving or IMAP/POP3 accounts. This guide explains their roles, how to locate them, and when to use each.

What You'll Need

  • A Windows computer with Microsoft Outlook installed (2016, 2019, 2021, or Microsoft 365)
  • An email account configured in Outlook (Exchange, IMAP, or POP3)
  • Administrator access to the computer (if locating or moving files)
  • File Explorer to navigate folders

Step-by-Step

  1. Identify your account type in Outlook: Open Outlook, go to File > Account Settings > Account Settings. Under the Email tab, check the Type column. Exchange accounts use OST files for offline sync; IMAP and POP3 accounts typically use PST files for storage.
  2. Locate the OST or PST file associated with your account: In the same Account Settings window, select your account and click Change > More Settings > Advanced tab. Look for the Outlook Data File path, which shows the full location of the OST or PST file.
  3. For Exchange accounts using Cached Exchange Mode: The OST file is automatically created and managed by Outlook. It mirrors your mailbox on the server and updates when you reconnect. Do not manually move or delete this file unless instructed by IT, as it can cause sync issues.
  4. To back up or export data from an Exchange account: Use Outlook’s Import/Export wizard. Go to File > Open & Export > Import/Export > Export to a file > Outlook Data File (.pst). Select your mailbox or specific folders, choose a save location, and complete the wizard. This creates a PST copy of your data for archiving.
  5. For IMAP or POP3 accounts: Data is stored in a PST file by default. To locate it, follow Step 2. You can copy this PST file to another location for backup, but ensure Outlook is closed to avoid file locking issues.
  6. To open an existing PST file: Go to File > Open & Export > Open Outlook Data File. Browse to the PST file and select it. It will appear in the Outlook folder pane, allowing you to access its contents without affecting your primary mailbox.
  7. To set a PST file as the default delivery location (for POP3): In Account Settings > Data Files tab, select the PST file and click Set as Default. Note: This only applies to POP3 accounts; Exchange accounts always deliver to the OST unless Cached Exchange Mode is disabled.
  8. Compact an OST or PST file to reduce size: Go to File > Account Settings > Account Settings > Data Files tab. Select the file, click Settings, then click Compact Now. Outlook removes wasted space caused by deleted items. This process may take time for large files.

Common Mistakes

  • Manually deleting or moving an OST file to free up space, which can cause Outlook to fail to start or lose offline access until it rebuilds the file from the server.
  • Assuming OST files are interchangeable between computers or user profiles — OST files are tied to the specific Outlook profile and Windows user that created them and cannot be simply copied to another system.
  • Using a PST file as the primary storage for an Exchange account instead of relying on the OST and server sync, which defeats the purpose of Cached Exchange Mode and can lead to data inconsistency.
  • Attempting to open an OST file directly in Outlook like a PST file — OST files cannot be opened independently; they require the associated Exchange account and profile to function.
  • Neglecting to compact large PST or OST files over time, leading to unnecessarily large file sizes that can slow Outlook or increase corruption risk.

Tips

  • Regularly archive old emails to a separate PST file to keep your primary OST or PST file size manageable and improve Outlook performance.
  • If using an Exchange account, leave Cached Exchange Mode enabled unless you have a specific reason to disable it (e.g., troubleshooting sync issues). It provides the best offline experience.
  • Before making changes to data file locations, close Outlook completely to prevent file locks or corruption.
  • Label backup PST files clearly with dates and content descriptions (e.g., "Archive_2024_Inbox.pst") to avoid confusion later.
  • If you suspect an OST file is corrupted, use the ScanPST.exe tool (Inbox Repair Tool) on a copy of the file — never on the original while Outlook is using it.
  • For IMAP accounts, consider using a PST file for local archiving of old messages to reduce server storage usage, especially if your provider imposes limits.

Troubleshooting

  • If Outlook won’t start and shows an error about the OST file: Rename the OST file (e.g., to .ost.bak) in File Explorer, then restart Outlook. It will create a new OST file and resync with the Exchange server. This may take time depending on mailbox size and connection speed.
  • If you can’t locate the OST or PST file: Ensure hidden items are visible in File Explorer (View > Show > Hidden items). Outlook data files are often stored in the AppData folder, which is hidden by default.
  • If exporting to a PST file fails or hangs: Disable add-ins temporarily (File > Options > Add-ins > Manage COM Add-ins > Go > uncheck all), then retry the export. Third-party add-ins can interfere with Outlook operations.
  • If a PST file appears to be missing emails: Check if the file is the correct one and not an older backup. Use Search Folders in Outlook to look for missing items across all data files.
  • If Compact Now takes too long or seems stuck: Close Outlook, ensure no other programs are accessing the file, and try again. Very large files may benefit from being archived into smaller PST files first.

Frequently Asked Questions

Can I convert an OST file to a PST file?

Not directly — OST files cannot be opened or converted independently. To export data from an OST, use Outlook’s Import/Export feature while connected to the Exchange account and profile that created it.

Is it safe to delete an OST file to free up space?

Yes, but only if Outlook is closed. Deleting the OST file forces Outlook to rebuild it from the server on next startup, which resyncs all mailbox data. This does not delete server data.

  • Where are Outlook data files stored by default?
  • By default, OST and PST files are stored in the local AppData folder: C:\Users\[Username]\AppData\Local\Microsoft\Outlook\. However, the location can be changed during account setup or via Account Settings.

    Can I use the same PST file on two different computers?

    Only if Outlook is closed on one computer before opening it on the other. Simultaneous access from multiple machines can corrupt the file. For shared access, use Exchange or IMAP instead.

    What happens if I disable Cached Exchange Mode for my Exchange account?

    Outlook will connect directly to the Exchange server and use an OST file only for temporary caching. All data is read from and written to the server in real time, requiring a constant connection for full functionality.

    How often should I compact my OST or PST file?

    Compacting is only necessary after deleting a large number of items. There’s no set schedule — run it when you notice the file size is much larger than your actual mailbox content, or if Outlook feels sluggish.