File formats

What Is an MSG File and What Does It Contain?

An MSG file stores one Outlook item with its properties and attachments inside a single file. Here is what it contains, how it is built and when it is the wrong format.

Updated 8 min read

An MSG file is one Outlook item saved as a file with the .msg extension. It stores a single email, appointment, contact or task together with its properties and attachments.

  • It is a Microsoft format built on a compound file, which works like a small file system inside one file.
  • Classic Outlook saves it through File, then Save As. The new Outlook added Save as MSG in May 2025.
  • It suits single messages. Microsoft advises against it for large standalone archives.

What Is an MSG File?

An MSG file is one Outlook item stored as a file on your disk. Microsoft's specification calls the format the Outlook Item (.msg) File Format and says it represents a message, an appointment, a contact or a task.

Outlook creates the file when you save an item outside the mailbox. The file contains the subject, the sender, the recipients, the body, the dates and every attachment in one place. Copying one file moves one message.

  • One item per file. A file stores one email or one calendar entry and never an entire folder.
  • Everything inside. Attachments travel inside the file and do not sit beside it.
  • Documented by Microsoft. The Library of Congress describes the format as fully documented and proprietary, with no technical protection.
An MSG file stores one Outlook item with its recipients and attachmentsOne Outlook email on the left points to a single .msg file on the right. The file contains the message properties, the recipients and the attachments.One Outlook itemEmail, event, contact or taskSave As.msgProperties: subject, sender, body, datesRecipientsAttachmentsOne MSG file
An MSG file stores one Outlook item with its recipients and attachments inside.

What Does an MSG File Contain?

An MSG file contains whatever the Outlook item had. The Library of Congress states that every property on the item and on its attachments is also present in the file. The number of parts depends on the item type and on how many recipients and attachments it has.

Part of the fileWhat it containsHow it is named inside
The item itselfSubject, sender, dates and bodyA property stream plus value streams that start with __substg1.0_
RecipientsOne block per person on the To, Cc or Bcc line__recip_version1.0_#00000000, then #00000001 and so on
AttachmentsOne block per attachment, with its file name__attach_version1.0_#00000000, then #00000001 and so on
Custom property mapLinks custom properties to their numbers__nameid_version1.0

How Is an MSG File Built Inside?

An MSG file is a Compound File Binary file. Microsoft's Open Specifications team describes this layout as similar to a FAT file system inside a single file. Everything in it is either a storage, a container that works like a folder, or a stream, a sequence of bytes. Outlook puts each object in a storage and its properties in streams.

The tree below shows the main parts of one message with a single recipient and a single attachment. The streams present depend on the properties set on the message. A real file contains many more.

(root: the message)
+-- __properties_version1.0           list of the message properties
+-- __substg1.0_0C1F001F              sender email address
+-- __recip_version1.0_#00000000      first recipient
|   +-- __properties_version1.0
+-- __attach_version1.0_#00000000     first attachment
|   +-- __properties_version1.0
|   +-- __substg1.0_3707001F          attachment file name
+-- __nameid_version1.0               map of custom property names

A stream name that starts with __substg1.0_ ends in eight hexadecimal digits. The first four name the property and the last four give its data type. The sender address in the tree is property 0C1F with type 001F, which Microsoft's blog shows as a text string.

How to read a stream name in an MSG fileThe name __substg1.0_0C1F001F is split into three parts. The prefix marks a value stream, 0C1F is the property ID of the sender email address and 001F is the data type text string.__substg1.0_0C1F001FFixed prefixMarks a stream that stores a valueProperty IDHere the sender email addressData typeHere a text stringExample from Microsoft's .msg file format blog
Reading one stream name from an MSG file, part by part.

Short fixed values live in the property stream itself, up to 8 bytes per value. Text and binary data are too long for that. The property stream therefore stores only their size and the value sits in its own __substg1.0_ stream. The Library of Congress adds that one file must use a single string type, either Unicode or the older 8 bit type and never both.

How Do Attachments and Embedded Emails Work?

Every attachment gets its own storage named __attach_version1.0_# followed by a number that starts at zero. What sits inside depends on the kind of attachment.

  • An ordinary file. The storage contains the file's properties and its bytes. The file name is in property 3707001F.
  • An attached email. The storage __substg1.0_3701000D contains a full message. Microsoft states it is what you would find in a .msg file of its own. The same structure therefore repeats inside the attachment.
  • An object from another application. Outlook creates the storage and passes it to the application that made the object, for example Word or Excel. That application stores its own data there and Outlook does not interpret it.
An MSG file with an ordinary attachment and an attached emailThe outer MSG file contains a property stream and two attachment storages. The first storage holds an ordinary file. The second storage holds a full message with its own properties and recipients.Outer .msg file (the message)__properties_version1.0message properties__attach_version1.0_#00000000Ordinary attachment: the file name and its bytes__attach_version1.0_#00000001Attached email__substg1.0_3701000Da full message, same layout againits own propertiesits own recipients and attachments
An attached email repeats the whole message layout inside the attachment.

Why Does an MSG File Look Like Nonsense in a Text Editor?

Because an MSG file is binary data and not text. Microsoft's compound file specification requires the same 8 byte signature at the start of every compound file. In hexadecimal it reads D0 CF 11 E0 A1 B1 1A E1 and the first four bytes look like the word DOCFILE to a human eye.

The start of an MSG file in a text editor and in hexadecimalA text editor shows unreadable symbols. The same first eight bytes in hexadecimal are D0 CF 11 E0 A1 B1 1A E1, the compound file signature.ÐÏࡱá>   þÿ               unreadable symbolssame bytesFirst 8 bytes in hexadecimalD0CF11E0A1B11AE1The first four look like DOCFILECompound file signature, shared by an older Word document
The same first bytes of a compound file seen as text and as hexadecimal.

Microsoft states that other Office binary file types are based on the same specification. An MSG file and an older Word document therefore open with the same bytes. The signature names the container and the extension names the content. The wider topic is explained in File Signatures Explained.

Which Software Creates and Opens MSG Files?

  • Classic Outlook for Windows. Open the message, select File and then Save As. Microsoft's page on saving a message states that a message can be saved as an .eml or an .msg file. Under File, Options, Mail the setting Use Unicode Format saves messages in a Unicode encoding by default. Microsoft Q&A answers also state that dragging a message from classic Outlook into a File Explorer folder creates an MSG file.
  • New Outlook for Windows. Microsoft's what's new page lists Save as and then Save as MSG on the right click menu of a message, under May 2025. That page does not say whether the new Outlook opens MSG files. A separate Microsoft support page states that it does when you drag the file onto the reading pane or use Open with in File Explorer. The same page states that opening MSG and OFT files needs a qualifying Microsoft 365 subscription. Microsoft Q&A answers state that dragging a message out of the new Outlook saves an EML file and not an MSG file. Microsoft Q&A threads from 2024 and 2025 describe size errors and failed opens. The Microsoft pages checked give no size figure. Check the current release notes before you rely on it.
  • Other software. The format is documented. Software other than Outlook can therefore open it. OnlinePCApps has an MSG viewer that works in the browser.
Ways to create and open an MSG fileThree cards. Classic Outlook saves through File and Save As. New Outlook added Save as MSG on the right click menu in May 2025. Other software can open the documented format.Classic OutlookFileSave AsOutlook message (.msg)New OutlookRight click a messageSave asSave as MSGOther softwareDocumented formatReads the streamsOpens the messageNew Outlook: Save as MSG listed under May 2025 on Microsoft's what's new page
Where an MSG file is created and where other software can open it.

Is an MSG File a Good Way to Store Email?

It is a good way to store a few single messages and a poor way to store a mailbox. Microsoft's specification states the format is meant for sharing a single item between clients or message stores that use the file system. It names two poor fits.

  • A large standalone archive. Microsoft advises a fuller format that can show views of the mail more efficiently.
  • A file sent to someone you do not know. The recipient may not be able to open the format and the file may carry private or irrelevant information along with the message.
MSG suits single messages and PST suits a whole mailboxOn the left a few single messages are saved as separate MSG files. On the right a full mailbox of folders is stored in one PST file.A few single messages.msg.msg.msgGood fit: one file per messageAn entire mailbox.pstBetter fit: one container with foldersMicrosoft names a large standalone archive as a poor fit for MSG
Single messages suit MSG files and a whole mailbox suits one PST file.

The Library of Congress lists MSG as an acceptable format for individual email messages. It also states that the format is fully documented, needs no outside software to interpret and has no technical protection. The Library of Congress states that an EML file follows the RFC 5322 standard and works with most email clients. An MSG file stores the full Outlook item instead, with every property. For an entire mailbox, a PST file is the better container and What Is a PST File explains it. A side by side look at both file types is in EML vs MSG.

Facts checked against Microsoft Learn, Microsoft Support and Library of Congress pages on 3 and 4 December 2026. The file structure comes from Microsoft's documentation and was not tested on a real MSG file.

Questions People Ask About MSG Files

6 questions, answered in full below.

What type of file is an MSG file?

A binary file that stores one Outlook item. Its extension is .msg and its MIME type is application/vnd.ms-outlook, which the Library of Congress notes is not registered with IANA.

Can an MSG file hold more than one email?

No. One file holds one Outlook item. It can still contain another message as an attachment, because an attached email is stored as a full message inside the file.

Does an MSG file include attachments?

Yes. Every attachment sits in its own storage inside the file. The attachments therefore travel with the message.

Can an MSG file hold a calendar event or a contact?

Yes. Microsoft states that the format represents messages, appointments, contacts, tasks and other Outlook items.

Is MSG an open format?

Microsoft publishes the full specification as MS-OXMSG, with revision 18.0 dated May 2025. The Library of Congress still describes the format as proprietary.

What is the difference between an MSG file and a PST file?

An MSG file holds one item and a PST file holds an entire mailbox of items in folders. What Is a PST File explains the larger container.

Sources

Where the figures and behavior described above were checked.

  1. MS-OXMSG: Outlook Item (.msg) File Format Microsoft Learn
  2. MS-OXMSG 1.5 Applicability Statement Microsoft Learn
  3. .MSG File Format, Part 1 Microsoft Open Specifications blog
  4. MS-CFB 2.2 Compound File Header Microsoft Learn
  5. Determining Office Binary File Format Types Microsoft Open Specifications blog
  6. Microsoft Outlook Item (MSG) Library of Congress
  7. Microsoft Compound File Binary File Format, Version 4 Library of Congress
  8. Save a message as a file Microsoft Support
  9. Save an Outlook message as a .eml file, a PDF file, or as a draft Microsoft Support
  10. What's new in new Outlook for Windows Microsoft Support
  11. Open .eml, .msg, and .oft files in new Outlook and Outlook on the web Microsoft Support
  12. Electronic Mail Format (EML) Library of Congress
  13. How can I drag and drop a .msg from the New Outlook Microsoft Q and A
  14. Emails dragging issue Microsoft Q and A
  15. New Outlook for Windows cannot open large msg files Microsoft Q and A