Skip to content

EML converter

Convert EML email files while handling RFC 5322 headers, MIME bodies, attachments, encodings, dates, and PDF evidence copies.

.eml

Format

About EML

EML stores an internet email message as RFC 5322-style headers plus a MIME body tree. A file can contain From, To, Cc, Bcc, Subject, Date, Message-ID, Received headers, plain text bodies, HTML bodies, inline images, attachments, nested forwarded messages, and transfer encodings such as quoted-printable or base64. It is the natural export shape for many mail clients and servers because it resembles the message as transmitted. Our mail routes convert EML to HTML, Markdown, plain text, or PDF. We ran the local API from EML to Markdown and saw body text and a header table, but address fields rendered as object placeholders, which needs product follow-up.

Versioning is really about mail standards and MIME structure. Messages may use older charsets, encoded-word subject headers, multipart/alternative bodies, multipart/related inline assets, multipart/mixed attachments, DKIM signatures, calendar invites, and delivery headers added by every relay. The display body may be HTML while the plain part is stale or auto-generated. Attachments may be important evidence, but a text conversion usually extracts message body and selected metadata, not every binary part. Dates also need care because a message has a declared Date header, Received timestamps, and local client display zones that may disagree.

Readers and writers include Thunderbird, Apple Mail, Outlook exports through different paths, Gmail takeout processing, mail servers, legal discovery tools, help desks, and security teams. EML is good for interchange because it is standards-based and can be opened by many clients. It is less convenient for stakeholders who need a fixed proof, which is why email to PDF is common. Analysts may want Markdown or TXT for search and summarization. Web archives may want HTML, but remote images and tracking pixels should be controlled before rendering or indexing messages from inboxes.

EML conversion gotchas involve evidence, attachments, and encoding. EML to PDF can produce a readable record, but you must decide whether attachments are separate exhibits or not included. EML to HTML preserves richer body markup but may expose remote image references unless sanitized. EML to Markdown or TXT is better for plain search but loses visual email layout. Header parsing should be checked for names, addresses, and time zones. Before batch conversion, sample messages with non-ASCII names, inline images, attachments, quoted replies, and calendar parts. Keep the original EML when chain-of-custody or full headers matter.

Common EML problems

An email thread needs a fixed evidence copy.

Use /convert/eml-to-pdf, then keep the original EML beside the PDF for full headers and attachments.

A message body must be indexed as readable text.

Use /convert/eml-to-txt and verify character encoding, quoted replies, and non-ASCII sender names.

A web review page needs the email body.

Use /convert/eml-to-html, then sanitize remote images and links before publishing or sharing the page.

A knowledge-base import expects Markdown.

Use /convert/eml-to-md, then inspect address fields and attachment references before importing the result.

Attachments are part of the record.

Use /convert/eml-to-pdf for the message body and handle attachments separately so no binary evidence is hidden.