File formats

What is a PST File And What Outlook Actually Stores in It

Rules, views, categories and search folders all live in there beside the mail. None of them survive a move to any other format.

12 min read

A PST is a database rather than a mail file. It has an allocation map, two indexes and a numbered entry for every object inside it, which is why it holds far more than messages and why it never shrinks just because you deleted something. Almost every surprise a PST produces traces back to that one fact.

Outlook calls it an Outlook Data File. Windows calls it a PST. The specification calls it a Personal Storage Table. Older Microsoft documentation calls the same thing a Personal Folders file or a Post Office File. All of those are one format. Two products carried it before Outlook existed. Microsoft Exchange Client and Windows Messaging both used it, which makes the format older than the program most people associate it with. What none of the three names conveys is that opening one is closer to attaching a database than to opening a document. There is a wider guide to every email file format if you are not yet certain this is the one you have.

The Three Layers Inside a PST File

Microsoft publishes the structure as MS-PST. That document splits the format into three layers stacked on each other. Each one only makes sense once the one below it does, which is why writing a PST reader is a serious piece of work rather than a weekend project.

  1. NDB
    Node Database
    The foundationFile header, allocation information, blocks and two B-trees. One indexes nodes, the other indexes data blocks. Nothing here knows what an email is
  2. LTP
    Lists, Tables
    Properties
    The structureTurns raw nodes into property collections and two dimensional tables. This is where a set of bytes becomes a named field with a value
  3. Messaging The meaningAssembles the layer below into folders, messages, attachments and recipients, plus the rules governing how they may be changed
Straight from the MS-PST specification. What follows from that stacking is that damage low down costs far more than damage high up. A corrupted message costs you a message. A corrupted node B-tree can cost you the file.

Two details from that bottom layer explain most PST behaviour. Every object carries a node identifier. The file also keeps its own map of which blocks are in use. Delete a message and the messaging layer removes it from a folder, but the blocks it occupied are simply marked free in that map. The file on disk does not move a byte.

Everything a PST Holds Besides Mail

Ask what is in a PST and the usual answer is emails and maybe attachments. The format was built for the whole of Outlook, so the real list is longer. The extra items are exactly the ones that vanish quietly during a conversion.

What it holdsSurvives a conversion to a plain format
Messages, with headers and attachmentsYes
Folder hierarchy, including nestingUsually, if the target has folders
Contacts, with fields no vCard definesPartly. The extra fields have nowhere to go
Calendar items, recurrence and remindersPartly. Recurrence rules translate badly
Tasks, notes and journal entriesRarely. Few formats have an equivalent
Categories and colour assignmentsNo
Client side rulesNo
Custom views and column layoutsNo
Search folder definitionsNo
Custom formsNo

Every one of those extra fields is a MAPI property, the same kind an MSG carries for a single item. MAPI is the interface layer Outlook sits on. A PST is a MAPI store, so the file has somewhere to put things that no message format defines. Everything from Categories downward is configuration rather than content. It describes how Outlook should behave with your mail rather than the mail itself. No interchange format has anywhere to put that. That is not a flaw in the converter. It is the reason the PST existed in the first place.

Search folders are not folders. A search folder holds no messages. It stores a query that Outlook runs each time you click. Copy a PST and the search folders come with it. Convert one and they disappear entirely, because there is nothing to convert. Every message they appeared to contain is still there, sitting in whatever real folder it always lived in.

What a PST Does Not Hold

The gaps matter as much as the contents, particularly for anyone handed a PST and told it is a complete backup of somebody's mailbox.

In the File

  • Every item in the folders it contains
  • Attachments, stored in full
  • Client side rules that run in Outlook
  • Items deleted but not yet compacted away
  • The Name to ID map for custom properties

Only on the Server

  • Server side rules that run without Outlook
  • Mailbox permissions and delegate access
  • Shared and public folder contents
  • Retention policies and legal holds
  • Anything in a different mailbox entirely
A PST exported from a work account is a copy of one mailbox at one moment. What it does not represent is the account itself, since none of the rules that governed that account from the server side travel with it.

Which Accounts Actually Produce a PST

Whether Outlook writes you a PST at all depends on the account type, which is why some people have one sitting in their Documents folder and others have never seen the extension.

Account typeWhat Outlook writes locally
POPA PST. Mail is downloaded and the server keeps nothing
IMAPAn OST since Outlook 2013. Earlier versions used a PST
Exchange or Microsoft 365An OST, written by Cached Exchange Mode
Outlook.comAn OST
Any account, exported or archivedA PST, on request or on an AutoArchive schedule

So most PST files in circulation were made on purpose rather than by default. Somebody exported a mailbox or set up a POP account long enough ago that it was still the normal thing to do. The exception is AutoArchive, which moves old items into a PST on a schedule and is the reason plenty of people have one they never knowingly created.

The reason to make one has not changed since the format arrived. A PST sits on your own disk, so it is not counted against any mailbox quota the server enforces. That single property is why administrators once encouraged them. It is also why so many organisations now hold thousands scattered across laptops with no idea what is in any of them.

An exported PST is invisible to the server. Anything moved into one leaves the mailbox, so it stops being covered by server side search, retention policy or legal hold. For a personal archive that is the point. For a regulated organisation it is the reason PST sprawl is treated as a compliance problem rather than a storage one, since an eDiscovery request cannot reach what the server cannot see.

Why a PST Never Shrinks on Its Own

Delete a year of mail, check the file, find it exactly the same size. The answer is the allocation map. Deleting marks space as reusable inside the file. It does not return that space to the disk.

Mail actually in the folders6GB
Plus deleted items not yet compacted8GB
Plus indexes, views, rules and forms10GB on disk

This last figure is the one Windows reports, the one a size limit measures and the one an upload has to move.

Illustrative proportions rather than measured ones, since the gap varies with how much has been deleted and how long since the last compact. The shape is what stays constant.

Compacting rewrites the file without the free blocks. Outlook does it slowly in the background when idle. It can also be triggered on demand through the data file settings. On a file that has had a large clear out it can recover a great deal. Nothing else will.

Size limits count the file, not the mail. Microsoft documents a maximum enforced through the registry, measured against the file on disk. The ceiling depends on which variant you have, since the older ANSI format stops far short of the Unicode one that replaced it. So a mailbox well under the limit can still hit it, purely because deleted items and indexes have not been compacted away. Clearing out mail without compacting afterwards fixes nothing.

What PST Passwords And Encryption Actually Do

Outlook offers a password when you create a PST. The word implies the contents are locked. They are not.

What is stored is a CRC-32 checksum of the password text, held in a property called PidTagPstPassword. Outlook computes the checksum of whatever you type and compares the two. The specification is blunt about what that achieves, saying the password is implemented at the interface level only and is not used to secure the PST data in any way.

Outlook opening the file

Checks the gate
read PidTagPstPassword
prompt the user
CRC-32 what they typed
compare the two values
match, so open the store

Four steps, all of them inside Outlook. None of them touch the message data.

Anything else opening the file

Walks past it
read the header
walk the node B-tree
read the data blocks

Nothing here needs the password, because nothing was locked with it. The blocks decode the same either way.

The gate sits in the program rather than in the file. That is the whole of it. A reader written by somebody who has never seen Outlook opens a password protected PST without noticing there was a password.

Outlook also offers an encryption setting when the file is created, which sounds like the real thing and is not. Two options exist beyond none. Both use keyless ciphers.

SettingWhat it doesWhat it protects against
NoneData blocks written as they areNothing
Compressible encryptionByte substitution using a fixed published tableSomeone opening the file in a text editor
High encryptionA second keyless cipher, also publishedThe same person, slightly delayed

Neither takes a key, so neither can be a secret. Microsoft states the position in the specification itself, that the strength of the encoded data blocks provides no additional security beyond data obfuscation.

Only your data is obfuscated. The structure around it is not. The specification notes that headers, allocation pages and B-tree pages are all written without any encoding at all. So even the weak layer covers message content only. Anyone with the file can map its entire shape without decoding a single byte.

The name is a historical accident. A Microsoft engineer has written about where compressible encryption came from. Compressing a PST made its contents unreadable in a text editor. People equated that with encryption. The label stuck. The word would not survive a review now. Confidential mail needs real encryption applied separately, whether that is BitLocker on the volume or an encrypted container holding the file.

What This Means for Anyone Handling a PST

Damage has its own tool, already installed. Outlook ships with the Inbox Repair Tool, scanpst.exe, which rebuilds the indexes when a PST will not open. It works on the structure rather than the content, so it recovers the file more often than it recovers everything in it. Take a copy before running it.

A disconnected PST does not announce itself. Close one in Outlook or lose the profile that referenced it. The file stays on the disk with nothing pointing at it. Nothing warns anybody. Orphaned PSTs are how organisations end up holding years of mail that no backup covers and no search reaches, discovered only when somebody goes looking for a specific message.

Four rules follow from the file being a database rather than a mail file. Each one is the opposite of what a mail file would let you get away with.

  1. Never put one on a network share. Microsoft has documented this as unsupported since Exchange 4.0. A PST is read and written with file access commands meant for a local disk, so over a network every operation slows down. Writes take roughly four times as long as reads. A connection that drops mid write can corrupt the file outright. Copy it to the local disk first. The single exception Microsoft documents is Outlook running remotely on a Remote Desktop Session Host, where the file and the program sit on the same machine anyway.
  2. Close Outlook before copying one. A copy taken mid write can capture a half finished index update. It will often open and look fine, then fail months later when you reach the part that was being written.
  3. Compact after a clear out, not before. Deleting alone changes the size on disk by nothing at all. Until the compact runs, every limit still sees the old figure.
  4. Do not rely on the password. Treat a PST as readable by anyone holding the file, because it is.
  5. Expect configuration to be lost in conversion. Rules, views, categories and search folders have no equivalent anywhere else. Write down what matters before you move anything.

If the job is reading what is inside rather than moving it, a browser based viewer parses the format directly and never needs Outlook or a mail profile. Where the mail is going somewhere else entirely, our mail converters handle the route. The survives column earlier sets out what to expect on arrival.

Structure, password handling and data block encoding all checked against the MS-PST specification on Microsoft Learn in August 2026.

Questions People Ask

7 questions, answered in full below.

Is a PST file a database?

Yes, in every sense that matters. It has an allocation map, two B-tree indexes and a node identifier for every object it holds. Treating it as a mail file is what leads people to expect that deleting messages will shrink it. It also explains why copying one while Outlook runs is unsafe.

Why is my PST file bigger than my mailbox?

Three reasons stack up. Attachments are held as raw binary and nothing in the file is compressed. Deleted items keep their space until a compact runs. On top of both, the file carries indexes, views, rules and forms that are not mail at all. The gap varies with how much has been deleted and how long since the last compact, so there is no useful average to quote.

Does a PST password actually encrypt anything?

No. Outlook stores a CRC-32 checksum of the password and compares it to what you type. Microsoft says plainly in the specification that the password is not used to secure the PST data in any way. Anything genuinely confidential needs encryption applied to the file itself or to the disk it sits on.

Where does Outlook keep the PST file?

A PST you created yourself usually sits under Documents in a folder called Outlook Files. Ones Outlook made on its own live deeper, under your user profile in a folder Windows hides by default. Rather than hunting, open the account settings and look at the data files tab, where the full path sits beside each entry. A machine can hold several PST files Outlook has long since forgotten.

Why can software other than Outlook read a PST?

Because Microsoft publishes the format as MS-PST and licenses the patents irrevocably through the Open Specification Promise. Having the format written down is exactly what separates PST from the mail containers nobody outside the vendor ever documented. It is why readers for PST exist and readers for some of its neighbours do not.

Is it safe to copy a PST file while Outlook is open?

No. Outlook holds the file open and writes to it continuously, so a copy taken mid write can capture a half finished B-tree update. The copy may open and look correct while carrying damage that only surfaces later. Close Outlook first.

Does emptying Deleted Items free up disk space?

Not immediately. Emptying the folder marks the blocks as available inside the file, but the file on disk stays the same size. The space returns only when Outlook compacts the file, which it does slowly in the background or on demand.

Sources

Where the figures and behaviour described above were checked.

  1. MS-PST, Node Database layer Microsoft Learn, Open Specifications
  2. MS-PST, Lists, Tables and Properties layer Microsoft Learn, Open Specifications
  3. Configure size limit for PST and OST files in Outlook Microsoft Learn
  4. MS-PST, PST Password Security Microsoft Learn, Open Specifications
  5. MS-PST, Strength of Encoded PST Data Blocks Microsoft Learn, Open Specifications
  6. Compressible Encryption, on where the name came from Larry Osterman, Microsoft
  7. Limits to using personal folders files over LAN and WAN links Microsoft Learn, KB 297019
  8. Personal Storage Table Wikipedia