Skip to content
Hyper-BeastPublic

About

Offline OST to PST converter for Windows with a native GUI

Resources

Stars

7 stars

Watchers

0 watching

Forks

Repository files navigation

OST2PST

Permanently free: full OST to PST conversion, with no trial quotas, per-folder message limits or paid unlocks.

Get OST2PST on the Microsoft Store

An offline Windows C++20 converter from Outlook OST to Unicode PST. It reads the source directly and builds a new PST, without Outlook, MAPI, a mail account or a network connection. Includes ostinfo for read-only format diagnostics.

Double-click OST2PST.exe to open the wizard, or use the same executable from the command line.

OST2PST in English: select or drop an OST file to start the conversion wizard

Preview, search and export mail with MailArchive Pro

Also from the developer, MailArchive Pro opens OST, PST, EML and MSG files offline, with mail folders, a message list and an email preview pane. Read formatted messages with inline images and tables, browse attachments, search your mail, and export messages as EML, MSG or PDF. No Outlook installation, mailbox sign-in or file upload is needed.

Download it for free to read, search and export the first 20 messages in each mail folder. A one-time purchase unlocks all messages for life, with no subscription or monthly or annual fees. Whole-mailbox OST to PST conversion remains permanently free and unlimited.

MailArchive Pro in English: email preview with formatted text, an inline image, a table and an attachment

Download and use the GUI

OST2PST is completely free, with no limit on the number of conversions. Choose either download:

  • Microsoft Store — install on Windows 10 version 1809 or later (x64), then open OST2PST from Start.
  • Portable ZIP on GitHub Releases — for Windows 10 version 1607 or later (x64). In the single-executable version, extract OST2PST.exe and double-click it for the wizard, or run OST2PST.exe --help in a terminal for CLI options.

Select your OST, choose a new PST destination, and start conversion. The wizard shows progress and the final result; an incomplete result includes reports for inspection. Neither download requires a separate .NET or VC++ runtime installation. The interface follows Windows (English fallback); use More → Language to switch. Stop preserves recovery data; use Resume with the same source and destination. Close Outlook before copying the OST, or use an immutable copy.

Features and scope

  • Converts actual folders, normal messages, folder-associated items (FAI), recipients, attachments and embedded messages, preserving available property/body/attachment bytes.
  • Streams large values through bounded storage; shares identical output blocks only after exact byte comparison; reports phase and item progress.
  • Supports interrupted-run recovery with --resume, per-item outcomes and aggregate reports.
  • Automatically budgets workspace from available RAM and spills large tables/metadata to temporary disk storage. Temporary disk use can grow; the workspace allowance is not a total process-memory cap.
  • Provides --dry-run, --verify, empty-store generation and folder-subset conversion.
  • Supports unencoded Unicode 4 KiB-page input and 512-byte-page PST structures; writes a 512-byte-page Unicode PST. ANSI, WIP version 37 and nonzero bCryptMethod are refused.

The converter cannot recover content that an OST never downloaded. Search definitions are excluded; output store identities/internal structures are regenerated. Opaque OLE and compressed RTF values are preserved, not rendered. Unknown structures, source gaps and skipped items are reported separately. Other Outlook versions and much larger stores need their own validation.

Build from source and test

Use Windows x64, Visual Studio 2022 Desktop development with C++, CMake 3.22+ and Python 3.8+ for tests. scripts/dev.cmd discovers Community, Professional, Enterprise or Build Tools through vswhere; set VSCDEV_BAT for a custom installation. Run in Command Prompt:

scripts\dev.cmd cmake -S . -B build -A x64
scripts\dev.cmd cmake --build build --config Release --parallel 4
scripts\dev.cmd ctest --test-dir build -C Release --output-on-failure

Executables: build\Release\ost2pst.exe, build\Release\ostinfo.exe. To build only the applications, configure with -DBUILD_TESTING=OFF; Python is then unnecessary. The converter does not require Python, Git Bash or libpff at runtime. Like other MSVC applications, its default build uses the Microsoft C++ runtime; install the x64 Visual C++ Redistributable if needed.

Public tests generate synthetic fixtures inside the build directory. No private mailbox, real mailbox fragment or reference PST is bundled. External gate fault-injection tests are opt-in: -DOST2PST_EXTERNAL_GATE_TESTS=ON requires Git Bash and a separately built libpff installation. See DEVELOPMENT.md for the difference between public regression tests, external content validation and Outlook acceptance.

Build the GUI from source

For a portable native wizard, configure a separate static-runtime build:

scripts\dev.cmd cmake -S . -B build-gui -A x64 -DOST2PST_BUILD_GUI=ON -DOST2PST_STATIC_RUNTIME=ON
scripts\dev.cmd cmake --build build-gui --config Release --parallel 4
scripts\dev.cmd ctest --test-dir build-gui -C Release --output-on-failure
python scripts\package_gui.py --build-dir build-gui --output dist\OST2PST-Windows-x64

The GitHub Release ZIP includes OST2PST.exe, documentation and licenses. Only the executable is needed to run the wizard or CLI; you can move or rename it. The same executable runs GUI conversions in a background process. Windows UI language is selected automatically, with English fallback. Use More → Language to switch between English, Simplified/Traditional Chinese, Japanese, French, Italian, Spanish, German, Korean and Brazilian Portuguese. This package needs no separate .NET or VC++ runtime install. Windows 10 1607+ is required by its DPI APIs; native testing was on Windows 11 x64. The wizard converts files and opens reports, without a mail viewer. Item counts/progress are real; assembly/verification/publication show activity. Stop retains recovery files, and Resume validates the original source and converter identities. Finish interrupted conversions with the original version before switching to a new executable. The portable packaging script refuses an existing folder/ZIP. For the Store MSIX, see the Store build instructions on GitHub. See also the privacy policy.

CLI usage

Use an immutable OST copy, or close Outlook before copying it. The output parent directory must exist. Quote paths containing spaces. A full conversion protects existing outputs:

build\Release\ost2pst.exe "C:\Mail\source.ost" "C:\Export\mailbox.pst"
build\Release\ost2pst.exe --resume "C:\Mail\source.ost" "C:\Export\mailbox.pst"
build\Release\ost2pst.exe --dry-run "C:\Mail\source.ost"
build\Release\ost2pst.exe --verify "C:\Export\mailbox.pst"
build\Release\ostinfo.exe --inventory "C:\Mail\source.ost"

Full conversion publishes the PST, <output>.report.json and <output>.items.jsonl. Check the performance object in .report.json for persistent measurements:

Field Meaning
wall_seconds Seconds in this invocation up to report preparation, after internal verification
peak_working_set_bytes Peak resident memory of the converter process up to that point; null if measurement fails
throughput_bytes_per_second Source OST bytes divided by wall_seconds; divide by 1,000,000 for MB/s
resumed Whether this report was prepared during a resumed invocation
scope current_invocation_before_publication

Measurements include hashing, indexing, conversion, assembly and internal verification; final report flush, publication and cleanup are excluded. Resume records only the invocation preparing the report, so throughput is null for resumed runs. A previously sealed/published report retains its original measurements on resume. GUI and CLI use the same report; closing the GUI does not remove these fields.

The report's resources object records memory_limit_bytes, peak_managed_bytes and scratch_spilled_bytes for this invocation. These describe the managed workspace; use performance.peak_working_set_bytes for measured process memory. Spilled bytes are cumulative scratch growth, not peak disk usage, and may include multiple processing passes.

Check the exit code and report: a partial output may exist even when the run is incomplete. An interrupted run keeps <output>.work; resume with the same source, binary, paths and options. A changed source/binary is refused. Full conversion does not accept --force; choose a fresh destination. Empty/subset modes and all options are listed by --help.

--dry-run checks structures and plans mailbox identities/coverage. It creates no files, does not check every payload and does not test destination access. --verify checks supported structures; it does not compare source content or prove Outlook compatibility.

Exit Meaning
0 Complete conversion, clean verification or successful planning
1 Invalid usage, OS/file I/O or output/staging/recovery operation failure
2 Unsupported input format/encoding or explicit processing limit
3 Corrupt/truncated input, verification findings or incomplete conversion

How it works

The reader is implemented in this project with reference to Microsoft's [MS-PST] specification and libyal/libpff, especially Joachim Metz's PFF format notes for Unicode 4 KiB-page OST structures. Selected libpff/libfmapi source constants and behavior were also consulted, with citations beside the relevant implementation. Thanks to Joachim Metz and the libyal contributors for these references. Unknown fields in the notes remain unknown.

The reader decodes NDB pages/blocks and B-trees, then LTP heaps, property/table contexts and named properties. The messaging layer constructs a mailbox manifest, assigns stable destination identities and extracts each item. A transactional staging journal supports recovery. The writer assembles a fresh PST, regenerates store-local references and allocation maps, rereads the candidate and publishes outcomes. The dependency direction is CLI → Messaging → LTP → NDB → Utilities, with Messaging also using the writer.

Measured results

One immutable, unencoded Unicode OST was converted with the accepted M6 writer revision 352157c in a Windows x64 / MSVC 14.41 Release build. These are observations from one run, not general performance or capacity guarantees. The user subsequently supplied the machine configuration: AMD Ryzen 8845HS, 32 GB RAM, SSD. External verification time is excluded.

Measurement Result
Machine AMD Ryzen 8845HS · 32 GB RAM · SSD
Input OST 2,635,407,360 bytes (2.635 GB / 2.454 GiB)
Output PST, before Outlook opened it 2,042,045,440 bytes (2.042 GB / 1.902 GiB)
Output/input ratio 77.485% (22.515% smaller)
Whole conversion process 197.928 s (3 min 17.928 s)
Throughput, input size / elapsed time 13.315 MB/s (12.698 MiB/s)
Peak process working set 97,513,472 bytes (93.0 MiB)
Actual folders / normal messages / FAI 65 / 11,259 / 145
Embedded messages / recipients / attachment objects 150 / 54,904 / 18,946
Available attachment payload 1,942,542,046 bytes
Skipped or failed items 0

The timing includes identity hashing, indexing, conversion, assembly, internal verification, report publication and cleanup. Available content matched in complete mapped comparisons and independent libpff API/export checks: 70,284 exported files, 2,639,753,214 compared bytes, zero byte differences. Private inputs, exports and raw logs are excluded from this repository.

A retest of the same immutable input with the adaptive-workspace build completed all 11,404 items with no skips or failures. Source, committed and internally reread output counts agree for 18,946 attachments, 150 embedded messages and 54,904 recipients; the PST size is unchanged. The retest report does not record hardware configuration, so these results are not a controlled performance comparison with the earlier build.

Measurement Adaptive-workspace retest
Report time, before publication 131.061 s
Report throughput 20.108 MB/s
Whole invocation time 158.614 s (2 min 38.614 s)
Whole invocation throughput 16.615 MB/s
Peak process working set 70,205,440 bytes (66.95 MiB)
Peak managed workspace 45,877,776 bytes (43.75 MiB)
Scratch spilled bytes 0

This retest passed internal verification but did not repeat the historical external content or Outlook checks. It did not need disk spill; it does not establish performance for larger tables that require spill. Report timing excludes final publication/cleanup, while invocation timing includes those stages.

A later real-mailbox run on an Intel Core Ultra 5 235U / 16 GB RAM / SSD machine completed without errors. Its source snapshot differs from an earlier run on this machine. The aggregate report records complete, exit code 0 and internal verification passed.

Measurement Result
Machine Intel Core Ultra 5 235U · 16 GB RAM · SSD
Input OST 26,252,746,752 bytes (26.253 GB / 24.450 GiB)
Output PST 22,983,689,216 bytes (22.984 GB / 21.405 GiB)
Output/input ratio 87.548% (12.452% smaller)
Actual folders / normal messages / FAI 108 / 17,946 / 242
Completed items 18,188 / 18,188
Embedded messages / recipients / attachment objects 1,084 / 85,734 / 32,854
Available attachment payload 23,243,330,793 bytes
Skipped or failed items 0
Report time, before publication 1,532.269 s (25 min 32.269 s)
Report throughput 17.133 MB/s (16.340 MiB/s)
Whole invocation time 1,895.122 s (31 min 35.122 s)
Whole invocation throughput 13.853 MB/s (13.211 MiB/s)
Peak process working set 447,881,216 bytes (427.13 MiB)

Source, committed and output-verified object/attachment-byte counts agree in this report. The report timer stops before final publication/cleanup; the invocation timer includes those stages. Independent content comparison and Outlook acceptance for this sample have not been recorded.

On an Intel Core i5-1245U / 32 GB RAM / SSD machine, the user reports that a subsequent run finished without errors and took roughly as long as the earlier run. The new aggregate report has not yet been supplied, so its exact PST size, item counts, elapsed time and memory peak are not included in the measured table.

One user observed correct-looking mail formatting, opening attachments and successful Outlook restart/reopen on Microsoft 365 Outlook MSO 2609, Build 16.0.20430.20032, 64-bit. This is a spot check on one sample/version. Other recorded SCANPST diagnostics remain unresolved; no universal compatibility or exhaustive manual item inspection is claimed. The performance and Outlook observations above apply to the builds used for those runs.

Dependencies, references and license

OST2PST's own code and documentation are licensed under the MIT License, allowing use, modification and redistribution, including commercial use, with the copyright and permission notice retained. Third-party materials retain their respective licenses; the optional libpff exporter patch is LGPL-3.0-or-later and is not relicensed under MIT.

The core uses the C++ standard library and Windows APIs. It does not link libpff, libpst, pstsdk or third-party zlib. Its CRC32, SHA-256 and RFC1950/1951 inflate implementations are in-tree. libpff provided implementation references as described above and was also used as a separately installed verification oracle. The inspected source headers specify LGPL 3 or later. Its format notes are GNU FDL 1.3 or later. Microsoft [MS-PST] and RFCs are format/algorithm references. Full upstream libraries and reference documents are not bundled. The small optional exporter patch retains upstream license notices.

See THIRD_PARTY_NOTICES.txt for exact sources, component notices and license boundaries. For development, start with AGENT.md and DEVELOPMENT.md. AGENT.md is intentionally named as supplied; point your AI at it explicitly if it only auto-discovers AGENTS.md.

FAQ

Is OST2PST permanently free? Are there any conversion or email limits?

Yes. OST2PST is permanently free, with full conversion and no trial expiration, per-folder email quota or paid unlock. You do not need to buy anything to export all supported messages available in your OST, and there is no licensing quota on the number of conversions, messages or folders. The source code is MIT-licensed.

Format compatibility, available disk space and implementation resource limits still apply. Free and unlimited conversion does not mean every file size or damaged file is guaranteed to work.

Can I convert an orphaned OST file without Outlook, Exchange or the original account?

Yes, if the file uses a supported format and contains the data you need. OST2PST reads the local OST directly, without Outlook, MAPI, an Exchange server connection or the original mail account login. This includes an orphaned OST left after an account or profile is removed.

Only locally cached content can be converted. Mail that was never downloaded, or exists only on the server, cannot be recovered from that OST.

Does OST2PST support modern Unicode OST files from Outlook and Microsoft 365?

OST2PST supports the unencoded Unicode 4 KiB-page OST profile described in Features and scope, and writes a new Unicode PST. This is the Hyper-Beast C++20 project; ANSI OST input is not supported.

Compatibility depends on the file's actual format and encoding, not just whether it came from Outlook 2013, 2016, 2019, 2021 or Microsoft 365. Those product names are not a promise that every OST variant is supported. See Measured results for recorded tests and their limits.

What does conversion preserve: folders, emails, attachments, contacts and calendars?

OST2PST converts actual folders, normal messages, folder-associated items, recipients, attachments and embedded messages, preserving available property and body data. Contacts, calendar entries and recurrence data are handled as stored mailbox properties; this is not a guarantee that every item type or recurring appointment has been independently validated in every Outlook version.

Content that was never cached cannot be recreated. Search definitions are excluded, and output store identities and internal structures are regenerated. Check the conversion result and reports for unsupported content, source gaps or skipped items.

Can OST2PST decrypt encrypted OST files or repair a corrupt mailbox?

OST input with a nonzero encoding/encryption field (bCryptMethod) is currently refused. OST2PST does not provide S/MIME decryption or rights-management unlocking.

It is a converter, not a general mailbox repair tool. Damaged or unsupported structures can cause an incomplete result or a refusal. Keep an unchanged source copy and review the reports; the existence of an output PST alone does not establish a successful conversion.

Can OST2PST convert large OST files, such as 20 GB or 50 GB?

A recorded run converted a 26.25 GB OST into a 22.98 GB PST in about 31 minutes 35 seconds on an Intel Core Ultra 5 235U with 16 GB RAM and an SSD. It reported zero skipped or failed items and passed internal verification; independent content comparison and Outlook acceptance were not recorded for that sample. See Measured results.

That is evidence for one file, not a guarantee for every 20 GB, 50 GB or larger mailbox. Allow space for the output, temporary workspace and recovery data. If interrupted, use Resume in the wizard or --resume with the same source, destination and converter version.

Does OST2PST upload confidential email or modify the original OST?

No. Conversion runs locally, reads the source without modifying it, and requires no internet connection or account. OST2PST has no analytics or advertising SDK and does not send mailbox data, file paths, reports or usage events to the developer.

The wizard includes a built-in MailArchive Pro promotion; it does not load remote content or track views. Store and GitHub pages open only when you select their links. Outputs, reports and recovery files may contain sensitive data, so save them in a location you control. See the privacy policy.

How do I download and convert an OST without building from source?

Install OST2PST from Microsoft Store, or open the latest GitHub Release and download the Windows x64 ZIP from Assets, rather than either Source code archive.

Extract the ZIP and double-click OST2PST.exe. Select your OST, choose a new PST destination, then start conversion and review the result. The portable release needs no separate .NET or VC++ runtime installation. For automation, the same executable supports command-line use: run OST2PST.exe --help. See Download and use the GUI for Windows requirements.

Do I need MailArchive Pro to convert all my emails? Can I preview mail in OST2PST?

No purchase or MailArchive Pro installation is required for OST2PST's full conversion. OST2PST is a standalone converter with a wizard and CLI; it does not include an email preview pane.

MailArchive Pro is the developer's separate, optional app for previewing, searching and exporting local mail. Its free reader covers the first 20 messages in each mail folder; a one-time purchase unlocks all messages for life. That reader limit does not apply to OST2PST. Whole-mailbox OST to PST conversion in MailArchive Pro is also permanently free and unlimited.

About

Offline OST to PST converter for Windows with a native GUI

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages