Browser-based email tool · EML → PDF or TXT

EML to PDF

Open a saved .eml email without a mail app and keep it as a PDF or text file: the sender, recipients, date and subject at the top, the message below, and the attachment names listed at the end.

Drop your .eml file here or click to choose

One .eml email up to 25 MB

Output

EML to PDF

Operator: Abdulla Al Fahad. How tools are built and checked

An .eml file is one email saved exactly as it travelled: a block of header lines, then the message, then any attachments, all as text. Mail apps write it when you drag a message to the desktop or choose Save As, and mail archives and e-discovery exports produce thousands of them. Without a mail client, double-clicking one often shows a wall of encoded characters instead of a readable letter.

This page turns one .eml into a document you can file, print or attach to a case note. The top of the output carries the Subject, From, To, Cc and Date lines, the message text follows, and the attachments are listed by name and size at the end. You choose a PDF, laid out on A4 pages, or a UTF-8 text file.

Key features

  • Joins folded header lines and decodes RFC 2047 encoded words in the From, To, Cc and Subject lines.
  • Prefers the plain-text part of multipart/alternative messages and falls back to HTML read as text only.
  • Decodes quoted-printable and base64 parts in UTF-8, US-ASCII, ISO-8859-1 and Windows-1252, and reports any other character set.
  • Lists every attachment by its file name (including RFC 2231 encoded names) and decoded size.
  • PDF output on A4 with wrapped lines, automatic page breaks and Page n of N footers.
  • Plain-text output in UTF-8 for messages in any script.
  • Rejects files that contain binary data or have no From or Subject header before trying to parse them.

Unfolding headers and decoding the MIME parts

Header lines in an email can be folded across several physical lines, and any line that starts with a space or tab belongs to the one above it. They are joined back together first. Names and subjects with accents or other scripts are usually stored as RFC 2047 encoded words such as =?UTF-8?B?w6lt?=, which this reader decodes to the text they stand for (that one is "ém"); both the B (base64) and Q (quoted-printable) forms are handled.

The body is a MIME tree. A message sent from a modern mail app is normally multipart/alternative, holding the same text twice, once as plain text and once as HTML. The plain-text part is preferred because it is what the sender's app wrote for text-only readers. When an email has only HTML, the HTML is parsed into an inert document and only its text is read out, with paragraphs, list items and line breaks kept as new lines and link addresses written in brackets after the link text.

Each part may be transfer-encoded as quoted-printable (caf=C3=A9 for café, with = at a line end meaning the line continues) or base64, and then decoded with the character set it declares. UTF-8, US-ASCII, ISO-8859-1 and Windows-1252 are read directly. Any other declared set is passed to the browser's own decoder and the page tells you which one it was, so you know to check the letters against the original.

How it works

The file is read as raw bytes so that 8-bit text and encodings decode exactly. The first 8 KB are checked for NUL bytes and for a header block with a From or Subject line; anything that fails is refused with a reason. The header block is then split from the body at the first blank line, and the MIME tree is walked using each part's boundary.

While walking, the reader decides which part is the message and which are attachments: a part marked as an attachment, a part that carries a file name, or any part that is not text counts as an attachment. The chosen body is decoded and shown in the preview. When you convert, the PDF is laid out line by line with the font's own character widths, so long lines wrap at word boundaries and a URL longer than the page is broken where it reaches the margin.

Common use cases

  • Filing a supplier's confirmation email with an invoice in an accounts folder that only accepts PDF.
  • Printing a landlord's notice that arrived by email so it can be posted or handed over in person.
  • Reading an .eml that a colleague forwarded as an attachment when no desktop mail client is installed.
  • Converting a single message from a mailbox export into plain text so it can be searched or quoted in a report.
  • Keeping a record of an order or booking confirmation alongside the attachment, which you save separately.

How to use this tool

  1. Drop one .eml file on the drop zone or click to choose it.
  2. Check the preview: the header lines, the first part of the body and the attachment list.
  3. Pick PDF or Plain text under Output.
  4. Press Convert, read any notes on the result card, then download the file.

Example

booking-reply.eml (a test message written for this page)

Subject: =?UTF-8?B?UmU6IFZlbnVlIGRlcG9zaXQg4oCTIHNpZ25lZA==?=
From: =?UTF-8?Q?Ren=C3=A9e_Okafor?= <renee@example.org>
Cc: =?ISO-8859-1?Q?J=F6rg_Weber?= <jorg@example.org>
multipart/mixed holding:
  multipart/alternative: text/plain (quoted-printable, UTF-8) + text/html
  deposit-receipt.pdf, base64 (48,213 bytes decoded)
  floor-plan.jpg, base64, name only in Content-Type (201,400 bytes)
Body line: "The deposit of =E2=82=AC450 is paid ... Greetings from =E6=9D=B1=E4=BA=AC."

PDF output: booking-reply.pdf

Subject: Re: Venue deposit – signed
From: Renée Okafor <renee@example.org>
Cc: Jörg Weber <jorg@example.org>
Body (from the plain-text part): "The deposit of €450 is paid ... Greetings from ??."
Attachments (2): deposit-receipt.pdf - 47.1 KB, floor-plan.jpg - 196.7 KB
Chips: 1 page · 2 attachments listed
Note: first character the font cannot show is "東" (U+6771); 1 more was replaced
The same file as Plain text keeps "東京".

Tips for best results

  • If the email is written in Greek, Cyrillic, Arabic, Chinese or another non-Latin script, choose Plain text. The text file keeps every character; the PDF does not.
  • Attachments are listed, not converted. Save them from your mail app first if you need them next to the PDF.
  • The preview shows whether the body came from the plain-text or the HTML part. If the HTML part was used and the email relied on a table layout, expect columns to come out as consecutive lines.
  • The output is named after the .eml file, so rename the .eml first if you want a dated or numbered PDF name.
  • Outlook's own .msg format is a different, binary file. In Outlook, use Save As and pick the .eml or Internet message format if it offers one, or forward the message to a webmail account and save it from there.

Edge cases to watch

The PDF uses the standard Helvetica font built into every PDF reader, which covers Latin letters, common punctuation and symbols such as € and –, but not other scripts or emoji. Characters outside that set are printed as "?", and the result names the first one, for example "東" (U+6771), with a count of the rest. Nothing is dropped silently, but the PDF is not a faithful copy of such an email; the text output is.

Formatting does not survive. Bold, colours, inline images, signatures drawn as pictures and quoted-reply styling all become plain lines of text. The point is a readable, printable record of what was said, not a picture of how the mail app showed it.

Only the first readable body is used. Some newsletters and automated reports put a second text block after an attachment inside a multipart/mixed message; that extra block is not appended.

Message headers are shown as written. The Date line is the sender's own timestamp, in the sender's time zone, and it is not converted or checked against the server's Received lines, so it is not proof of when the email arrived.

Common errors and how to fix them

The page says the file contains binary data, so it is not a saved email.
The file is probably an Outlook .msg, a .zip of messages or a PDF renamed to .eml. Save the message again from the mail app in .eml or Internet message format.
The page says there is no From or Subject header at the top.
Some exports put a separator or a note above the real headers. Open the file in a text editor and delete the lines above the first header line, then try again.
The result notes that a character set was decoded by your browser.
The email declared a set such as KOI8-R or Shift_JIS. The browser decoder is usually right, but compare a few accented or non-Latin words with the original before relying on the text.
The body says the email has no text body.
The message is attachment-only or its content is an image. The header lines and attachment list are still written; open the attachment itself to read the content.

Best practices

  • Keep the original .eml next to the PDF. The .eml holds the full routing headers and the attachments, which the PDF does not.
  • For legal or compliance records, check whether your process needs the raw message or a server export rather than a printed copy.
  • Use the text output when you plan to search, quote or translate the message later.

Plain text part versus HTML part

When both are present they are supposed to say the same thing, and choosing the plain-text one avoids guessing at layout. Some senders, mostly marketing systems, put a stub such as "View this email in your browser" in the plain-text part and the real content only in the HTML. If the preview shows a stub like that, the message itself carries little readable text without its HTML, and the PDF will reflect that.

HTML is never rendered on this page. It is turned into an inert document, scripts and styles are skipped, and only the text inside it is read, so tracking pixels and remote images are not requested.

Why attachments are listed and not embedded

Attachments can be anything from a spreadsheet to a zip archive, and folding them into a text-only PDF would either lose them or bloat the file. The list gives each attachment's name and its real size after decoding, which is about three quarters of the space it takes inside the .eml because base64 adds a third.

Frequently asked questions

Can I convert a whole mailbox at once?

No. The page takes one .eml at a time. An mbox file or a folder export needs splitting into single messages first.

Does the PDF keep the email's links clickable?

No. Link addresses from an HTML body are written in brackets after the link text, but they are plain text in the PDF.

Why does the PDF show question marks where the email had Chinese or Cyrillic text?

The PDF is set in a standard font that has no glyphs for those scripts. The note on the result card names the first missing character. Choose Plain text to keep the original letters.

Are the Received and Message-ID headers included?

No. Only Subject, From, To, Cc and Date are written. Open the .eml in a text editor if you need the full header block.