How to convert OST to PST
- Last updated: Aug 25, 2026
- Email Conversion & Migration
Outlook versions: Outlook for Microsoft 365, Outlook 2024, 2021, 2019, 2016, and 2013
OST to PST conversion lets you save Outlook mailbox data from an OST file in a PST file. The best method depends on whether you can access the mailbox in Outlook, need to recover an inaccessible or orphaned OST, or want to convert specific data rather than the entire file.
You can convert an OST to PST using Outlook or a dedicated desktop converter. For automation and batch processing, command-line tools can be used with PowerShell or other scripting methods. The methods differ in how they handle inaccessible OST files, selective conversion, and batch processing, so the right approach depends on your particular situation.
Which method should you use?
The best method depends on whether the OST file can be accessed through Outlook and how you want to process the data. Outlook can create a PST from an accessible OST, while dedicated converters can work directly with OST files and offer additional options for selecting, filtering, or processing mailbox data.
| Your situation | Recommended method |
|---|---|
| The OST is accessible through your Outlook profile | Method 1 - Outlook |
| You need to convert an entire OST to PST | Method 2 - OST to PST Converter |
| You need to select specific emails, folders, or data | Method 3 - PST Walker |
| You need scripting or command-line processing | Method 4 - Command-Line Conversion |
Important: Methods 2–4 can process the OST file independently of the original Outlook profile. However, Microsoft Outlook must be installed to create the resulting PST file.
Online OST to PST conversion
You can convert OST to PST online using a web-based converter. However, OST files and the resulting PST files are often large, so uploading and downloading them can take considerable time. Online converters typically process all data in the uploaded file, while a desktop OST to PST converter gives you more control over what to export.
Important: Your Outlook Data File (.pst and .ost) may contain sensitive information beyond the messages and folders you normally access, including private messages, deleted folders or hard-deleted emails that may still be recoverable, Outlook Rules and Alerts, Contacts, Calendar items and meeting details, Tasks, Notes, journal entries, and other mailbox metadata.
Uploading the entire file to an online service may therefore expose more data than you intend to convert. For confidential or business email data, consider whether uploading the source file to a third-party server is appropriate for your needs.
Method 1 - Outlook
If the OST is accessible through the original Outlook profile, you can use Microsoft Outlook to create a PST file. In Cached Exchange Mode, Outlook exports only the data currently stored in the local cache. Exchange and Microsoft 365 accounts may be configured to synchronize only a limited period of mail, so the resulting PST may not contain the entire mailbox.
To include older data, make sure the required mailbox content is synchronized before exporting, or turn off Cached Exchange Mode where appropriate. See Microsoft's instructions for exporting email, contacts, and calendar to a PST file for the steps to create a PST file from Outlook.
Best for: OST files that are accessible through Outlook when you need to create a PST using Microsoft's built-in export functionality.
Method 2 - OST to PST Converter
Use the OST to PST Converter when you need to convert an entire OST file or a folder containing multiple OST files directly to PST.
- Close Microsoft Outlook and any other applications that may be accessing your Outlook mailbox.
- Download and run the OST to PST Converter on your computer.
- Browse to the OST file or folder containing the OST files you want to convert, and click Open.
- Select the destination folder for the converted PST files.

- Set the export parameters and click Run.
- Wait for the conversion to complete.

- Review the conversion summary and log for any issues or errors.
Method 3 - PST Walker
Use PST Walker when you need to select specific emails, folders, or other Outlook items from an OST file and export them to PST.
- Close Microsoft Outlook and any other applications that may be accessing your Outlook mailbox.
- Download and run PST Walker on your computer.
- Browse to the OST file you want to convert, and click Open.
- Browse and preview the Outlook items, including email messages, calendar items, contacts, and tasks.

- Select the items you want to export and go to File > Export.
- Select PST - Outlook Data File as the file format and click OK.

- Select Selected Messages, choose the destination folder, and customize the additional export settings if needed.
- Click Run and wait for the export to complete.
Method 4 - Command-Line Conversion
PstScan Pro provides command-line functionality for OST to PST conversion and batch processing. The OST to PST Converter supports command-line conversion with the Technician License. Both can be run directly from Command Prompt or automated with PowerShell, Task Scheduler, or other scripting tools.
Example 1: Searching .ost mailboxes and exporting items to .pst files
cd "C:\Program Files (x86)\PSTWalker Software\PstScanPro"
$OSTFiles = @("c:\a.ost", "c:\b.ost")
foreach ($OST in $OSTFiles){
.\pstscanpro.exe convert pst -f "$OST" -p "D:\PST-Queries" --% -q:"from:(=bobbymoore@contoso.com OR ""bobby moore"")"
}This example searches c:\a.ost and c:\b.ost mailboxes for items in which the e-mail address equals bobbymoore@contoso.com OR sender name contains bobby moore. The search results are exported to D:\PST-Queries\a.pst and D:\PST-Queries\b.pst
To match an entire phrase, the search string must be enclosed in quotes. All special characters, including quotes, should be escaped using an escape sequence prefixed with a backslash \.
For example:
-q "\"bobby moore\""
Alternatively, for quotes, you may also use double quotes:
-q """bobby moore"""
When running native commands from PowerShell, the arguments are first parsed by PowerShell. Beginning in PowerShell 3.0, you can use the stop-parsing (--%) token to stop PowerShell from interpreting input as PowerShell commands or expressions.
Example 2: Converting all user's .ost files to .pst files
cd C:\Program Files (x86)\PSTWalker Software\PstScanPro
pstscanpro.exe convert pst -f c:\users\*.ost -p "D:\PST files" --srcfoldersThis example convert all .ost files located in the c:\users folder to .pst files to the D:\PST files directory.
What data is preserved when converting OST to PST
Converting an OST to a PST does not simply change the file extension. Instead, it extracts supported Outlook data (email, contacts, tasks, calendar items, and other Outlook data) into a new PST file. Exchange-specific metadata and local cache synchronization details are omitted, as they are not needed in a standalone PST.
- When OST to PST Converter exports email, contacts, and calendar data to a PST file, it creates a copy of the data. The original OST file remains unchanged, and you can continue to access the original data in the OST file.
- When emails are exported, their attachments are included in the resulting PST file.
- OST to PST Converter does not export certain metadata, such as folder properties (views, permissions, and AutoArchive settings), message rules, or blocked senders lists.
Are there any limits when converting from OST to PST?
There is no limit on the number of OST files that can be converted. Our OST to PST converters does not impose a limit on the size of individual OST files. However, some license plans include limits on batch conversion. Actual processing limits may depend on available system resources and the application used to open the resulting PST files.
Frequently Asked Questions
See Also
PST Walker Viewer: Guide
This guide provides step-by-step instructions on how to use PST Walker Viewer. Learn how to navigate the interface, open and search for emails, extract attachments, and more.
How to Recover Deleted Folder and Emails in Outlook
Accidentally and permanently deleted items in Outlook? Stop using Outlook immediately, download a recovery tool, open your mailbox in safe mode, and follow the tool's instructions to recover your deleted items.
Recovering emails from an OST file
There are several tools available that can help you recover data from an OST file. They can help you recover important data from your OST file and save it in various file formats for future use.