How to extract attachments from a .msg file, all at once

Get every attachment out of an Outlook .msg file without Outlook: one by one or as a ZIP, including files hidden in winmail.dat or in a forwarded message. Free, nothing uploaded.

By Andy Liu, who builds MsgLens ·

A .msg file keeps its attachments inside the file. You do not need Outlook to get them out. Open the file in the MsgLens viewer, then download each attachment, or choose Download all to get one ZIP. The file is read in your browser and is not uploaded.

Save every attachment in one step

  1. Open msglens.app and drop the .msg on the page, or tap to choose it on a phone.
  2. Under Attachments, choose Download all. You get a ZIP named after the subject of the message.
  3. To save only one file, use the download button next to it. Images also have a preview.

Attachment names are kept. When a message holds two files with the same name, such as three copies of image001.png, the ZIP keeps all of them as image001.png, image001 (1).png and so on.

Where the attachments can hide

Sometimes the list shows fewer files than you expect. The file is usually still there, in one of these places.

  • Inline images. Logos and pasted screenshots are attachments too, but they show in the body, so the list does not repeat them. Download all includes them in the ZIP.
  • A forwarded message. When someone forwards an email as an attachment, the original arrives as a .msg inside the .msg. Choose Open next to it to read it and get its own attachments.
  • winmail.dat. If the sender used Outlook in Rich Text format, all the real attachments can be packed into one winmail.dat. Choose Open next to it and the original files appear. See how to open winmail.dat.
  • Cloud attachments. A OneDrive or SharePoint attachment is only a link. The file was never in the message, so no tool can extract it. Open the link in the body, and ask the sender for access if you need it.
  • A signature, not a file. A digitally signed message shows smime.p7s as an attachment. It is the sender's signature, not a document.

Many .msg files at once

The viewer opens up to 200 files at a time. You can also drop a whole folder: it reads the subfolders too and skips files that are not mail. Then save the attachments of each message.

For hundreds of files, or a task you repeat, use the free command-line tool. It runs on your computer with Node.js and saves the attachments of every file into one folder. It never overwrites a file that is already there.

npx msglens-cli attachments *.msg -o attachments

If you have Outlook

In classic Outlook for Windows, open the .msg, then choose File, Save Attachments. You can also right-click an attachment and choose Save All Attachments. This works one message at a time.

Opening what you extracted

The extracted files are ordinary files: a PDF opens in any PDF reader, a spreadsheet in Excel or Numbers. An attached .msg or .eml opens in the viewer again. If you want to keep it, see which format to save as. If an attachment will not open, the problem is usually the app for that file type, not the extraction. See also why a .msg file will not open.

Common questions

How do I save all attachments from a .msg file at once?

Open the .msg in the MsgLens viewer at msglens.app and choose Download all. You get one ZIP with every attachment. If two attachments have the same name, the second one is saved as name (1).

Can I extract .msg attachments without Outlook?

Yes. A .msg file stores each attachment inside the file, so any .msg reader can take them out. The MsgLens viewer does it in the browser, and the file is not uploaded.

Why is an attachment missing when I open the .msg?

There are four usual reasons. The image is inline and shows in the body. The attachment was a OneDrive or SharePoint link, so the file was never in the message. The attachments are inside a winmail.dat. Or they are inside a forwarded message that is attached as its own .msg.

How do I extract attachments from many .msg files?

In the viewer, drop up to 200 files or a whole folder, then save each message's attachments. For a large batch, the free command-line tool saves the attachments of every file into one folder: npx msglens-cli attachments *.msg -o attachments.

Is it safe to extract attachments from a .msg file?

Extracting a file does not run it. Treat what you extract like any email attachment: only open files from a sender you trust, and scan executables and Office files with macros before you open them.

Related guides