Outlook data files are the storage containers where Microsoft Outlook keeps your emails, calendar events, contacts, and tasks. Depending on your account type, Outlook uses either a .pst (Personal Storage Table) file for POP3 accounts and local archives, or an .ost (Offline Storage Table) file for Exchange, IMAP, and Outlook.com accounts. Managing these files allows you to archive old messages to save server space, back up your data for security, and migrate your information between different computers.

What You'll Need

  • A computer with Microsoft Outlook installed.
  • Administrative permissions on the PC to move or delete files in system folders.
  • An external hard drive or cloud storage folder if you intend to back up your data files.
  • Knowledge of your account type (POP3, IMAP, or Exchange) to determine which file type you are managing.

Step-by-Step

Because Outlook handles data files differently based on whether you are creating a new archive or managing an existing system file, these steps cover the most common administrative tasks. Note that menu labels may differ slightly depending on your version of Outlook or region.

How to Create a New Data File (.pst) for Archiving

  1. Open Outlook and click on the File tab in the top-left corner of the ribbon.
  2. Select Account Settings from the left-hand sidebar and then click Account Settings again from the resulting dropdown menu.
  3. In the Account Settings window, click on the Data Files tab.
  4. Click the Add... button. This opens a file explorer window.
  5. Choose a location on your hard drive where you want the file to be stored. It is highly recommended to store this in a dedicated folder rather than the root directory.
  6. Give the file a descriptive name (e.g., "Archive_2023") and click OK.
  7. The new data file will now appear as a separate folder structure in your Outlook folder pane on the left side of the main screen. You can now drag and drop emails from your primary inbox into this file to remove them from the server while keeping them locally.

How to Import an Existing Data File

  1. Click the File tab and select Open & Export from the sidebar.
  2. Select Import/Export from the menu options.
  3. In the Import and Export Wizard, select Import from another program or file and click Next.
  4. Choose Outlook Data File (.pst) and click Next.
  5. Click Browse to locate the .pst file on your computer or external drive, then select it and click Open.
  6. Choose how you want to handle duplicate items (e.g., "Replace duplicates with items imported") and click Next.
  7. Select the folder you want to import from (usually the top-level folder) and ensure the checkbox Include subfolders is checked.
  8. Click Finish. The imported data will now merge into your current Outlook profile.

How to Back Up Your Data Files

  1. Close Microsoft Outlook completely. The application must be shut down, or the data files will be "locked" and cannot be copied.
  2. Open File Explorer and navigate to the default storage location. For most users, this is C:\Users\<Username>\Documents\Outlook Files or C:\Users\<Username>\AppData\Local\Microsoft\Outlook.
  3. Locate the files ending in .pst or .ost.
  4. Right-click the file and select Copy.
  5. Navigate to your backup destination (such as a USB drive or a synced OneDrive folder) and Paste the file there.

Common Mistakes

One of the most frequent errors users make is attempting to open an .ost file directly. Unlike .pst files, which are designed to be portable and standalone, .ost files are synchronized caches of what exists on a server. You cannot simply "import" an .ost file into a new Outlook profile; it must be recreated by connecting to the mail server. If you only have an .ost file and no access to the server, you will need specialized third-party conversion software, as Outlook does not natively support .ost imports.

Another common mistake is storing active .pst files on a network drive or a cloud-synced folder (like Dropbox or Google Drive) while Outlook is running. Because Outlook constantly writes small amounts of data to these files, the sync software may attempt to upload the file while Outlook is using it. This often leads to file corruption, "File in use" errors, or the creation of multiple "conflict copies" of your entire mailbox, which can waste significant disk space.

Users also frequently confuse "Archiving" with "Deleting." When you move an email to a local .pst data file, it is removed from the mail server. This means that if you check your email on a smartphone or via a web browser, those archived emails will no longer be visible. They exist only on the specific computer where the .pst file is stored.

Tips

To keep Outlook running smoothly, monitor the size of your data files. While modern versions of Outlook support very large files, performance often degrades once a .pst file exceeds 20GB to 50GB. To prevent this, create separate data files for different years (e.g., "Archive 2022", "Archive 2023") rather than one massive file. This makes backups faster and reduces the risk of a single point of failure.

Use the Compact Now feature to reclaim disk space. When you delete emails from a data file, Outlook doesn't immediately shrink the file size on your hard drive; it simply marks that space as "available." To actually shrink the file, go to File > Account Settings > Account Settings > Data Files, select the file, click Settings > Advanced > Outlook Data File Settings, and click Compact Now.

Always create a naming convention for your local files. Instead of leaving the default "Outlook.pst," rename your files to include the account email and the date of the backup. This prevents confusion when you are restoring data from multiple accounts on a single machine.

Troubleshooting

If Outlook refuses to open or displays an error stating that the data file cannot be opened, the first step is to check if another instance of Outlook is running in the background. Open the Task Manager (Ctrl+Shift+Esc), find any "Outlook.exe" processes, and end them before trying again.

If the file is corrupted, use the built-in Scanpst.exe tool. This is the Inbox Repair Tool provided by Microsoft. You can typically find it in the Microsoft Office installation folder (e.g., C:\Program Files\Microsoft Office\root\Office16). Run the tool, browse to your corrupted .pst file, and click Start. If errors are found, click Repair. Warning: Always make a manual copy of your .pst file before running Scanpst, as the repair process can occasionally result in data loss if the corruption is severe.

If you see a "Your data file is not accessible" error for an .ost file, the safest solution is to delete the .ost file and let Outlook rebuild it. Close Outlook, navigate to the AppData folder mentioned in the backup section, delete the .ost file, and restart Outlook. The application will automatically download a fresh copy of your mail from the server. This will not delete your emails, as they are stored on the server, not just in the local cache.

Frequently Asked Questions

What is the difference between a PST and an OST file?

A PST file is a local storage file used for POP3 accounts or for archiving data. It exists independently of a server. An OST file is an offline copy of your mailbox used by Exchange and IMAP accounts to allow you to work without an internet connection; it synchronizes automatically with the server.

Can I move my data file to a different drive?

Yes, but you cannot simply move it via File Explorer while Outlook is configured to look for it in the old location. You must move the file, then open Outlook and, when the error message appears saying the file is missing, browse to the new location to re-link it.

Why is my PST file so large even after deleting emails?

Outlook does not automatically reduce the physical size of the file on your disk when items are deleted. You must use the "Compact Now" utility in the Data File settings to remove the "white space" and shrink the file size.

Will deleting an OST file delete my emails?

No, provided you are using an Exchange, Office 365, or IMAP account. The OST is merely a local mirror. Deleting it forces Outlook to download a fresh copy of your data from the server the next time you launch the app.

Can I password protect my data file?

Yes. When creating a new .pst file or via the Data File settings, Outlook provides an option to add a password. This encrypts the file so that other users cannot open it on another computer without the password.