File formats

What Is a PST File and What Does It Store?

Rules, views, categories and search folders all live in there beside the mail. Here is what a PST file holds, what it leaves out and what its password really does.

Updated 13 min read

A PST file is an Outlook data file that keeps email, calendar items, contacts and rules in one database on your disk. Outlook writes one for POP accounts, exports and archives.

  • It holds far more than mail, including rules, views and search folders.
  • The file does not shrink when you delete mail until Outlook compacts it.
  • The password only stops Outlook and encrypts nothing.

What Is a PST File and What Is It Used For?

A PST file is a data file that Microsoft Outlook creates to store your email messages, calendar events, contacts and much more. A PST file goes by a few names. Outlook calls it an Outlook Data File. The Microsoft specification calls it a Personal Storage Table. Older Microsoft documents call it a Personal Folders file. All of these names mean the same PST file format with the .pst extension.

Opening one is closer to attaching a database than to opening a document. That is why nothing outside a mail program shows you anything useful when you double-click it.

People end up with a PST file for four reasons.

  • Getting under a quota. Mail moved into a PST file leaves the mailbox so it stops counting against the server limit.
  • Keeping an archive. Old mail moves into a PST file by hand or on an AutoArchive schedule.
  • Moving mail. It is the one Outlook format that carries a whole mailbox to another machine as a single file.
  • Using a POP account. A POP account downloads mail and the server keeps nothing so the PST file holds the only copy.

Only the last reason happens without a decision. That is why most PST files in circulation were made on purpose and why AutoArchive is the usual explanation when someone finds one they never created. The same portability that makes a PST file useful also makes it easy to lose track of.

How Is a PST File Built Inside?

Microsoft publishes the structure as MS-PST. The document splits it into three layers that sit on top of each other.

The three layers of a PST fileThree stacked layers. NDB at the bottom stores blocks and B-trees. LTP in the middle turns nodes into fields and tables. Messaging on top builds folders and messages.3MessagingFolders, messages, attachmentsOutlook reads this layer2LTPLists, tables and propertiesRaw nodes become fields1NDBNode database: blocks and B-treesKnows nothing about mailEach layer builds on the one below it
The three MS-PST layers. Outlook reads the top one and the two below decide how the data is stored.

Outlook reads the top layer. The two lower layers decide how that data is stored in the file.

LayerWhat it doesWhat it knows about mail
NDB (Node Database)File header, allocation information, blocks and two B-trees. One tree indexes nodes and the other indexes data blocks.Nothing
LTP (Lists, Tables, Properties)Turns raw nodes into property collections and two dimensional tables. A set of bytes becomes a named field with a value.Field names and values
MessagingAssembles the layers below into folders, messages, attachments and recipients, plus the rules for changing them.Everything

Think of a PST file as a notebook with an index at the front. If one page is damaged you lose that page. If the index is damaged Outlook cannot find anything. In that case the whole PST file can be lost.

Every item in a PST file has its own ID number. The file also keeps a map of which space is used and which is free. When you delete a message Outlook removes it from the folder. The map then marks that space as free. The space is not erased so the PST file stays the same size.

What Does a PST File Hold Besides Mail?

A PST file holds more than messages and attachments because the format was built for all of Outlook. The extra items are settings that only Outlook understands, such as rules and views.

What it holdsKind of data
Messages with headers and attachmentsContent
Folder hierarchy including nestingContent
Contacts, including fields no vCard definesContent
Calendar items, recurrence and remindersContent
Tasks, notes and journal entriesContent
Categories and color assignmentsConfiguration
Client side rulesConfiguration
Custom views and column layoutsConfiguration
Search folder definitionsConfiguration (a saved query)
Custom formsConfiguration
  • Every extra field in a PST file is a MAPI property. An MSG file uses the same kind of property to store a single item.

A PST file is a MAPI store so it has room for things that normal message formats do not define. Everything from Categories downward in the table is configuration and not content. It tells Outlook how to behave with your mail and is not part of the mail itself.

  • A search folder is a saved search. It looks like a folder in Outlook but it holds no messages. It only stores a question such as "show me all unread mail".
  • Outlook asks that question again each time you click it. It then shows the matching messages from your real folders such as Inbox or Sent Items.
  • The messages are never moved into it. They stay in their real folders.
  • Copying a PST file copies the saved searches too. The question is stored inside the file so the search folders come along. The messages they show are in the real folders, which are copied as well.
  • What happens to these settings when mail moves to another format is covered in What Conversion Loses.

What Does a PST File Not Hold?

The gaps matter when someone hands you a PST file and calls it a complete backup of a mailbox. A PST file exported from a work account is a copy of one mailbox at one moment. It does not represent the account itself.

In the PST fileOnly on the server
Every item in the folders it containsServer side rules that run without Outlook
Attachments stored in fullMailbox permissions and delegate access
Client side rules that run in OutlookShared and public folder contents
Deleted items not yet compacted awayRetention policies and legal holds
The name to ID map for custom propertiesAnything in a different mailbox

A PST file is also invisible to the server. Anything moved into one leaves the mailbox so server side search, retention policy and legal hold stop covering it. For a personal archive that is the point. For a regulated organization it is why PST sprawl counts as a compliance problem, since an eDiscovery request cannot reach what the server cannot see.

Why Is a PST File So Large and What Is Its Size Limit?

A PST file can stay the same size even after you delete a year of mail. The reason is the allocation map. When you delete mail Outlook only marks that space as free to reuse inside the PST file. It does not give the space back to your disk. To learn what deleting does to a mailbox in general read What Deleting Mail Does.

Deleting frees space inside the file. Only compacting makes the file smallerThree rows of blocks. Before: six used blocks. After deleting mail: three used and three free blocks, same size. After compacting: three blocks, smaller file.Delete frees space. Only compacting makes the file smallerBeforePST file with 6 blocks of mailAfter deleting mailSame file size. 3 blocks are freeDelete mailAfter compactingSmaller file. Free blocks removedCompact the fileIllustration, not measured
The figures in this picture are an illustration and not a measurement.

Three layers add up to the size Windows reports.

  • Mail in the folders, for example 6 GB.
  • Plus deleted items that were not compacted away, for example 8 GB.
  • Plus indexes, views, rules and forms, for example 10 GB on disk.
  • These numbers are only examples. They are not real measurements.
  • The gap depends on how much mail you deleted and when Outlook last compacted the file.
  • Compacting means Outlook rewrites the file without the empty blocks.
  • Outlook does this slowly in the background when you are not using it.
  • You can also start it yourself from the data file settings.
  • The size limit counts the space the file takes on disk. It does not count the number of messages.
  • As of December 2026 Microsoft documents a default limit of 50 GB for PST and OST files in Outlook 2010 and later.
  • Outlook 2003 and 2007 allow 20 GB for Unicode files and 2 GB for the older ANSI format.
  • A file can reach the limit even when the mailbox looks small because deleted items and indexes were never compacted.
  • Deleting mail does not shrink the file until you compact it.

Does a PST File Password Encrypt Anything?

No. Outlook offers a password when you create a PST file and the word suggests locked contents. They are not locked.

Outlook stores a CRC-32 checksum of the password text in a property called PidTagPstPassword. When you open the file it checksums what you type and compares the two values. Microsoft states in the specification that the password is implemented at the UI level and is not used to secure the PST data in any way.

Who opens the fileWhat happens
OutlookReads PidTagPstPassword, asks for the password, checksums your answer, compares the two and opens the store on a match.
Any other readerReads the header, walks the node B-tree and reads the data blocks. Nothing asks for a password because nothing was locked with it.
  • Microsoft adds that the checksum is prone to collisions and weak against brute force.
  • The gate sits in Outlook and not in the file.
  • The encryption setting is no stronger.
  • Outlook offers two options beyond none.
  • Both options use published ciphers that take no key.
SettingWhat it doesWhat it stops
NoneWrites data blocks as they areNothing
Compressible encryptionByte substitution with a fixed published tableSomeone opening the file in a text editor
High encryptionA second keyless cipher, also publishedThe same person, slightly delayed

How Should You Handle a PST File Safely?

A PST file is a database. Each rule below is the opposite of what a plain mail file would let you do.

  • Never keep one on a network share. Microsoft has documented this as unsupported since Exchange 4.0. Writes over a network take about four times as long as reads and a dropped connection can corrupt the file. The one exception is Outlook on a Remote Desktop Session Host.
  • Close Outlook before copying one. A copy taken during a write can capture a half finished index update.
  • Compact after a clear out and not before. Deleting alone changes nothing on disk so size limits still see the old figure.
  • Do not rely on the password. Treat a PST file as readable by anyone who holds it.
  • Note your rules, views and categories before moving the file to another program. Other formats have no place for them.

If a PST file will not open, Outlook includes the Inbox Repair Tool (scanpst.exe). It rebuilds indexes so it works on structure and recovers files more often than it recovers everything inside them. Copy the file first and then run the tool.

A disconnected PST file does not announce itself. Close one in Outlook or lose the profile that referenced it and the file stays on disk with nothing pointing at it. That is how organizations end up holding years of mail that no backup covers and no search reaches.

To read what is inside a PST file without moving it, the PST reader tool parses the format directly. For how a PST file differs from an OST file, see OST vs PST.

Password handling and size limits checked against Microsoft Learn on 1 December 2026. Structure details carried over from the August 2026 check against the MS-PST specification.

Frequently Asked Questions (FAQs)

6 questions, answered in full below.

Is a PST file a database?

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

Why is my PST file bigger than my mailbox?

Three things stack up. Attachments are stored as raw binary and nothing in the file is compressed. Deleted items keep their space until a compact runs. The file also carries indexes, views, rules and forms that are not mail. The gap changes with how much you deleted and when Outlook last compacted so no average is useful.

Does a PST password actually encrypt anything?

No. Outlook stores a CRC-32 checksum of the password and compares it with what you type. Microsoft says in the specification that the password is not used to secure the PST data in any way. Confidential mail needs encryption on the file or on the disk.

Is the PST format documented?

Yes. Microsoft publishes it as MS-PST under the Open Specification Promise. Having the format written down is what separates it from mail containers that nobody outside the vendor ever documented.

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

No. Outlook keeps the file open and writes to it continuously so a copy can capture a half finished index update. The copy may open and look correct while carrying damage that shows up later. Close Outlook first.

What is the size limit of a PST file?

As of December 2026 Microsoft documents a default of 50 GB for PST and OST files in Outlook 2010 and later. Outlook 2003 and 2007 use 20 GB for Unicode files and 2 GB for the older ANSI format. The limit counts bytes on disk so deleted items that were never compacted still count.

Sources

Where the figures and behavior described above were checked.

  1. MS-PST, PST Password Security Microsoft Learn, Open Specifications
  2. MS-PST, 4.2 Strength of PST Password Microsoft Learn, Open Specifications
  3. Configure the size limit for Outlook data files Microsoft Learn
  4. File size limits of .pst and .ost files in Outlook 2010 and 2013 Microsoft Support, KB 982577
  5. MS-PST, Node Database layer Microsoft Learn, Open Specifications
  6. MS-PST, Lists, Tables and Properties layer Microsoft Learn, Open Specifications
  7. Compressible Encryption, on where the name came from Larry Osterman, Microsoft
  8. Limits to using personal folders files over LAN and WAN links Microsoft Learn, KB 297019