Repair Outlook Data Files (.pst and .ost)

You can use the Inbox Repair tool (SCANPST.EXE) to diagnose and repair errors in your Outlook data file. The Inbox Repair tool checks the Outlook data files on your computer to see if they're in good shape.

You might want to use the Inbox Repair tool in the following situations:

  • You receive a message that Outlook can't open your data file
  • You receive a message that Outlook can't open the set of folders
  • You think your Outlook data file may be damaged

If you're using an Exchange email account, you can delete the offline Outlook Data File (.ost) and Outlook will recreate the offline Outlook Data File (.ost) the next time you open Outlook.

Repair an Outlook data file (.pst) file

  1. Exit Outlook and browse to one of the following file locations:
    • Outlook 2019: C:\Program Files (x86)\Microsoft Office\root\Office16
    • Outlook 2016: C:\Program Files (x86)\Microsoft Office\root\Office16
    • Outlook 2013: C:\Program Files (x86)\Microsoft Office\Office15
    • Outlook 2010: C:\Program Files (x86)\Microsoft Office\Office14
    • Outlook 2007: C:\Program Files (x86)\Microsoft Office\Office12
  2. Open SCANPST.EXE.
  3. Select Browse to select the Outlook Data File (.pst) you want to scan. If you need help locating your Outlook Data File, see Locating the Outlook Data Files.
  4. Choose Start to begin the scan.

  5. If the scan finds errors, choose Repair to start the process to fix them.
  6. When the repair is complete, start Outlook with the profile associated with the Outlook Data File you just repaired.
  7. What happens after you repair an Outlook Data File?

    In the Folder Pane, you might see a folder named Recovered Personal Folders that contains your default Outlook folders or a Lost and Found folder. Although the repair process might recreate some of the folders, they may be empty. The Lost and Found folder contains any folders and items recovered by the repair tool that Outlook can't place in their original structure.

    Create new data file

    You can create a new Outlook Data File and drag the items in the Lost and Found folder into the new data file. After you've moved all the items, you can remove the Recovered Personal Folders (.pst) file, including the Lost and Found folder. To create a new Outlook Data File, see Create an Outlook Data File.

    Recover items from the backup (.bak) file

    If you can open the original Outlook Data File, you might be able to recover additional items. The Inbox Repair tool creates a backup file with the same name as the original, but with a .bak extension, and saves it in the same folder. There may be items in the backup file that you might be able to recover that the Inbox Repair tool couldn't.

    1. Browse to the folder where the .pst file is stored and you'll find the .bak file (for example, kerimills01@outlook.com.bak) created by the Inbox Repair tool.
    2. Make a copy of the .bak file and rename it with a bak.pst extension. For example, kerimills01@outlook.com.bak.pst.
    3. Import the bak.pst file into Outlook, and use the Import and Export Wizard to import any additional recovered items into the newly created .pst file.