---
title: "EML File Viewer"
url: "https://inboxnight.com/tools/eml-viewer.md"
canonical_url: "https://inboxnight.com/tools/eml-viewer"
last_updated: "2026-10-19"
type: "tool"
summary: "Open an .eml file or pasted message source to read it safely, see the real link targets, and save attachments."
related: ["https://inboxnight.com/tools/email-header-analyzer.md", "https://inboxnight.com/tools/attachment-size-checker.md"]
---

# EML File Viewer

> **For AI agents:** the complete index of InboxNight pages is [llms.txt](https://inboxnight.com/llms.txt). Every page is also served as markdown at its URL plus .md.

Open an .eml file or pasted message source to read it safely, see the real link targets, and save attachments.

Drop an .eml file or paste the raw source of a message. The viewer shows the headers, the text, the real target of every link and the attachments, without loading anything from the sender.

The file is read in this tab and is never uploaded. The viewer makes no network call after the page loads, and the message parser is our own code. The interactive tool is on the web page at [EML file viewer](https://inboxnight.com/tools/eml-viewer.md); this text describes it.

## How to use it

1. Drop an .eml file onto the box, choose one with the file picker, or paste the raw message source.
2. Read the From, To, Cc, Date and Subject lines at the top.
3. Switch between the formatted view and the plain text view.
4. Check the link table: any row marked "Look closer" shows words that name one site while the link goes to another.
5. Download an attachment only if you expected it, and read the notes on its name first.

## How the viewer reads a message

The viewer follows the standard email formats and never trusts what a message says about itself.

1. Header lines that were folded across several lines are joined back into one.
2. Encoded words in headers are decoded, including several in a row and characters split between two words.
3. Parameters such as file names are read in their long and encoded forms, so non-English names come out right.
4. Multipart messages are opened part by part, to any sensible depth, and a forwarded message is shown as its own message.
5. Quoted-printable and base64 bodies are decoded; damaged base64 is decoded as far as it can be and flagged.
6. Text is decoded with the charset the message declares; when the bytes do not fit, the viewer says so and tries UTF-8, then Windows-1252.
7. HTML is rewritten from an allow list and shown in a sandboxed frame with no scripts, no forms and a policy that blocks every network load.
8. Links are never clickable here. Their real targets are listed so you can read them.

## What the code decides

These values come from code, not from a model.

- The size cap is 25 MB (26,214,400 bytes). Anything larger is refused.
- A file that starts with the bytes D0 CF 11 E0 is an Outlook .msg file and is refused with steps for pasting the source instead.
- A link is flagged when the web address its words show belongs to a different site than its target. A subdomain of the same site is not flagged.
- Remote images are counted and replaced by a label; images that came inside the file are shown from their own data.
- Attachment names lose hidden and direction-changing characters and path separators before they are used as a save name; names are cut to 120 characters.
- Nesting stops at 24 levels and 3,000 parts.

## What this tool does not do

- It does not open Outlook .msg files; paste the message source instead.
- It does not load remote images, play media or run anything in the message.
- It does not decrypt or verify signed or encrypted messages.
- It cannot tell you that a message is safe; it only shows what the file contains.
- It does not read files larger than 25 MB.
- It does not connect to your inbox or send anything anywhere.

## Worked examples

### A shipping notice with a mismatched link

Input: Link text: www.harborlane.example/orders/10442. Real target: https://track.mailer-links.example/c/8841

Result: The row is marked "Look closer": the words show harborlane.example but the link goes to track.mailer-links.example.

### A message forwarded inside another

Input: An .eml from a manager that forwards a client request with a PDF quote.

Result: Two messages are listed. The first shows the manager's note; the second shows the client's headers, text and the quote.pdf attachment.

### A subject written in several scripts

Input: Subject: =?UTF-8?B?5pel5pys6Kqe?=

Result: The subject reads as the Japanese word for the Japanese language, 日本語, decoded from the encoded form.

## Common mistakes

- **Trusting the shown link text.** Link words can name any site. Read the target column, not the words.
- **Opening an attachment because the name looks like a document.** A name such as Report.pdf.exe is a program. The notes under an attachment point out these disguises.
- **Uploading a .msg file.** An Outlook .msg file is a different format. Paste the message source instead.
- **Expecting images to load.** Remote images are held back on purpose, because loading them tells the sender you opened the message.

## Questions and answers

### Is my file uploaded anywhere?

No. The file is read in your browser tab and nothing is sent after the page loads.

### What is an .eml file?

It is a saved email in the standard text format: header lines, a blank line, then the body and any attachments.

### How do I get the source of a message?

In Gmail on a computer, open the message, click More next to Reply, and choose Show original. Copy the text and paste it into the box.

### Why was my .msg file refused?

An Outlook .msg file starts with the bytes D0 CF 11 E0, the signature of a different container format. Paste the message source instead.

### Why are the links not clickable?

Clicking an unknown link is the most common way a bad message does harm. The target is listed in the table so you can inspect it first.

### How large a file can it open?

About 25 MB. Larger files are refused.

### Why did a part say its data was damaged?

Its base64 text had stray characters or was cut short. The viewer decodes as far as it can and flags the part.

## Sources

- [Microsoft: compound file header signature](https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-cfb/05060311-bfce-4b12-874d-71fd4ce63aea), read 2026-10-19
- [RFC 2047: encoded words in headers](https://www.rfc-editor.org/rfc/rfc2047), read 2026-10-19
- [RFC 2231: parameter continuations and encodings](https://www.rfc-editor.org/rfc/rfc2231), read 2026-10-19
- [RFC 2045: transfer encodings](https://www.rfc-editor.org/rfc/rfc2045), read 2026-10-19
- [RFC 2046: multipart and message/rfc822](https://www.rfc-editor.org/rfc/rfc2046), read 2026-10-19
- [RFC 5322: message format](https://www.rfc-editor.org/rfc/rfc5322), read 2026-10-19
- [Google: view the original message in Gmail](https://support.google.com/mail/answer/29436), read 2026-10-19

## Related

- [Email header analyzer](https://inboxnight.com/tools/email-header-analyzer.md)
- [Attachment size checker](https://inboxnight.com/tools/attachment-size-checker.md)

## Related

- [Free email header analyzer](https://inboxnight.com/tools/email-header-analyzer.md)
- [Free email attachment size checker](https://inboxnight.com/tools/attachment-size-checker.md)
