Outlook MSG Viewer and Converter
Operator: Abdulla Al Fahad. How tools are built and checked
A .msg file is Outlook's own way of saving one message, and nothing outside Outlook opens it by double-click. If a lawyer, a regulator or an old colleague sends you a folder of them, you need the sender, the date, the body and the attachments without installing a mail client.
This viewer reads .msg files in the page. It shows the headers, offers the plain, HTML and RTF versions of the body, lists attachments with sizes, steps into messages that were attached to other messages, and turns a whole batch into .eml files and an index spreadsheet.
Key features
- Open up to 300 .msg files at once, each up to 150 MB and 600 MB in total, and switch between them from a list of subjects and senders
- Headers for From, To, Cc, Bcc, Date and Subject, with recipients written as Name <address> and the date shown in ISO form
- Three body views: plain text, HTML in a locked frame, and the RTF body that Outlook stores compressed
- Attachments listed with type and size, each downloadable, with embedded .msg attachments opened in place through a Back button
How an Outlook .msg file stores a message
A .msg file is an OLE compound file: a small file system in one file, with a stream per property. The reader here is @kenjiuno/msgreader, which maps those streams to fields such as subject, sender, recipients, body, HTML and attachments. A file that does not start with the 8-byte compound file signature is refused with that reason instead of being parsed.
Outlook often keeps the body only as compressed RTF (property 0x1009, LZFu compression, defined in MS-OXRTFCP). The page expands it with a 4,096-byte sliding window that starts preloaded with a fixed 207-byte dictionary. When the RTF carries the marker \fromhtml1, the original HTML is recovered from the \htmltag groups and the page labels the tab 'HTML (from RTF)'. An RTF body without that marker is shown as text.
In the HTML view the markup is rebuilt from an allowlist of tags, attributes and style properties rather than passed through. Scripts, forms, style sheets and links are removed, cid: pictures become inline data, and remote pictures are replaced by a blank pixel until you tick the box that loads them. The result sits in an iframe with an empty sandbox attribute and a policy that allows only data: images.
How it works
The file is read as an array buffer, checked for the compound file signature, and handed to the reader on first use, so the library is only downloaded when you open a .msg. Each message becomes one record with the same shape the other mail tools on this site use, which is why the viewer pane, the .eml writer and the PDF export are shared.
Writing an .eml builds RFC 5322 headers, encodes non-ASCII names as RFC 2047 words, and wraps the body as multipart/alternative when there is HTML, multipart/related when inline pictures exist, and multipart/mixed when there are attachments. Attached messages go in as message/rfc822 parts up to four levels deep.
When this helps
- A compliance team receives 120 .msg files from a litigation hold and needs a spreadsheet of date, sender, recipients, subject and attachment count to sort and filter; one export gives the CSV and a ZIP of 120 .eml files.
- A Mac user is sent a single .msg and only needs the attached report.txt, which downloads straight from the attachment table.
Opening a file
- Drop one or more .msg files onto the page, or choose them from a folder.
- Pick a message from the list and read its headers and body; use the tabs to compare plain, HTML and RTF.
- Download single attachments with their Download links, or press Open message on an attached .msg and use Back to return.
- Save one message with Save as .eml or Save as PDF.
- For a batch, press Export CSV index and .eml ZIP to write every message loaded.
Example
An illustrative message, built for this page, saved as quarterly-report.msg
From Dana Reyes <dana@example.com> to Sam Lee <sam@example.com>, Cc Pat Kim, sent 14 March 2023 at 09:30 UTC. Subject: Quarterly report Q3. The HTML body carries an inline logo.png, a remote tracking picture and a line of text; report.txt is attached.Row in messages-index.csv after Export CSV index and .eml ZIP
2023-03-14T09:30:00Z, Dana Reyes <dana@example.com>, Sam Lee <sam@example.com>, Quarterly report Q3, 2 attachments, 0001-2023-03-14-Quarterly report Q3.eml. The remote tracking picture in the body is blocked and counted ('1 remote image is blocked'); the logo.png is drawn from the message itself.Limits
Reading receipts, calendar replies and other non-mail items saved as .msg open as ordinary messages with whatever text they hold; their special fields are not interpreted.
The PDF export prints Latin text; characters outside it appear as '?' and the page says how many, so use the .eml when exact characters matter.
Links in HTML mail are deliberately not clickable. Hover shows the address and a collapsible list names every link, so copy the address you want.
- Tick 'Load remote images' only for a sender you trust; it makes the browser request each picture from the sender's server, which tells them the message was opened.
Common errors and how to fix them
- "is not an Outlook .msg file (it does not start with the Compound File signature)"
- The file was renamed, truncated or is a different message format such as .eml. Convert .eml files with EML to PDF; re-export a damaged .msg from Outlook. An Outlook template (.oft) is also a compound file, so it passes this check and is read like a .msg.
- "This message has no body."
- The message carried neither text, HTML nor RTF. Its headers and attachments are still shown, so check the attachment table for the content.
Best practices
- Export the index CSV together with the .eml ZIP, because the file column ties each row to the numbered .eml in the archive.
Frequently asked questions
Why does the HTML tab say 'HTML (from RTF)'?
The message stored its body only as compressed RTF, and that RTF held the original HTML inside it. The page extracted the HTML; the plain-text tab shows what the same RTF says without markup.
What about .eml files or a whole mailbox?
A single .eml is converted by EML to PDF. A Gmail or Thunderbird archive is better in the MBOX Viewer and Converter, and an Outlook .pst in the PST File Viewer.