How To Repair A Corrupt Outlook PST Or OST File (2026)
Outlook says it cannot open your data file or a set of folders, and you suspect the PST or OST is damaged.
Microsoft includes a free repair tool called the Inbox Repair tool, scanpst.exe, for exactly this.
It usually takes a few minutes, but the order of the steps matters, so back up the file first.
Quick answer: PST or OST, and what to do
The fix depends on which kind of data file is damaged.
| File type | Used by | What Microsoft says to do |
|---|---|---|
| .pst | Archives, POP accounts, files you opened or exported | Run the Inbox Repair tool (scanpst.exe) |
| .ost | Exchange and Microsoft 365 accounts | Delete it and let Outlook recreate it |
The Inbox Repair tool does not connect to or analyze the data in your Exchange mailbox, so it cannot fix mail stored on the server.
When should you use the Inbox Repair tool?
Microsoft lists three situations for scanpst.exe.
- Outlook reports that it cannot open your data file.
- Outlook reports that it cannot open a set of folders.
- You suspect the data file is damaged.
Outlook may also show “Cannot start Microsoft Outlook. Cannot open the Outlook window” when it will not open at all, and Microsoft lists the repair tool as the first step for that error.
If you are stuck before the inbox even appears, read our guide on Outlook not opening or stuck on Loading Profile first.
Step 1: back up your data file first
Microsoft tells you to back up the existing data file before you repair it.
- Close Outlook.
- Find the file using the steps in the next section.
- Copy the file to another folder or a USB drive.
A repair can drop items that were badly damaged, so the copy is your safety net.
Step 2: find where your data files are stored
You can see every data file and the account it belongs to inside Outlook.
- Open Outlook and select File, then Account Settings, then Account Settings again.
- Select the Data Files tab.
- Read the list of .pst and .ost files and note the location of the one that has the problem.
Step 3: close Outlook and open scanpst.exe
Exit Outlook completely before you start the tool.
For Outlook 2019 and Outlook 2016, Microsoft gives this location for the tool:
C:\Program Files (x86)\Microsoft Office\root\Office16
Microsoft’s page does not list a folder for Outlook 2021 or 2024, so search your Office folder for SCANPST.EXE if the path above is empty.
The tool is installed with Office, and if it will not start, Microsoft suggests repairing the Office program instead.
Step 4: scan the file and repair it
- Select Browse and choose the .pst file you want to scan.
- Optionally select Options to skip the log file or append results to an existing log.
- Select Start to scan the file.
- If the scan finds errors, select Repair.
- Optionally type a new name or location in the Enter name of backup file box, or select Browse to pick one.
Microsoft says you may need to run the tool more than once.
Some items may be unrecoverable if they were permanently deleted or badly corrupted.
Step 5: restart Outlook with the repaired file
When the repair finishes, start Outlook using the profile that is linked to the repaired file.
You may see a new folder in the Folder Pane after the repair.
| Folder you see | What it holds |
|---|---|
| Recovered Personal Folders | The rebuilt structure of the file |
| Lost and Found | Items Outlook could not place in a folder |
Some of the recovered folders may be empty.
How do you keep the recovered data?
Microsoft’s advice is to move the recovered items into a clean file.
- Create a new Outlook data file.
- Move the items from Lost and Found into the new file.
- Remove the Recovered Personal Folders file from your profile.
You can also use our guide to exporting Outlook email to a PST file to make a clean backup afterwards.
How do you recover more items from the backup copy?
The tool saves a .bak copy in the same folder as the original, with the same name.
- Copy the .bak file.
- Rename the copy so it ends in .pst.
- Import it into Outlook with the Import and Export Wizard to pull out extra items.
Always work on a copy, never on the only .bak file you have.
What if the damaged file is an OST?
For an Exchange or Microsoft 365 account, the OST is only an offline copy of your mailbox.
Microsoft says you can delete the offline .ost file and Outlook recreates it the next time it opens.
Your mail stays on the server, so this does not delete the messages themselves.
Does the repair tool work with new Outlook?
The Inbox Repair tool belongs to the classic desktop version of Outlook, and Microsoft’s PST page for new Outlook adds several limits you should know.
| New Outlook and PST files | What Microsoft says |
|---|---|
| Needs classic Outlook installed | Yes, with the same 32-bit or 64-bit architecture |
| Opens PST in the ARM version | No |
| Opens PST in Safe or Recovery mode | No |
| Add a PST file | Settings, Files, Outlook Data Files, Add file |
So repair the file in classic Outlook first, then add it back in new Outlook if you use that version.
Not sure which one you run? Classic Outlook shows only the icon in the top app bar, while new Outlook shows the product name beside it.
Is it corruption, or is the file just full?
Not every data file error needs a repair.
| What you see | Likely meaning |
|---|---|
| Outlook cannot open the data file or a set of folders | Possible damage, run scanpst.exe |
| “Can’t move the items. The file has reached its maximum size” | Size limit reached, not corruption |
Microsoft’s size-limit page says a full file can also stop sent messages from saving to Sent Items.
What if the repair does not fix it?
- Run the tool again, because Microsoft says more than one pass may be needed.
- Run an Office repair if the tool will not start.
- Create a new Outlook profile, as covered in our Loading Profile guide.
Official sources: Microsoft’s pages on repairing Outlook data files and Microsoft’s page on PST files in new Outlook, and PST and OST size limits.