Skip to main content

email2md

Convert email files (.eml, .msg) to Markdown (default) or HTML.

Install

pip install email2md

CLI usage

Prefix with uvx to run as a portable tool "without installing".

# markdown (default)
email2md message.msg

# HTML
email2md message.eml --html

# read from stdin
cat message.msg | email2md > message.md

# save attachments, reference image instead of inlining as b64
email2md message.msg --save-attachments --reference-images -o ./output > message.md

For all flags:

email2md --help

Python usage

from email2md import ConvertOptions, to_markdown

md = to_markdown(
    "message.eml",
    ConvertOptions(include_headers=True, save_attachments=False, inline_images=True),
)

Metadata

Release files for email2md 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for email2md 0.1.3
File Size Uploaded
email2md-0.1.3.tar.gz 62.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for email2md 0.1.3
File Interpreter ABI Platform
email2md-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 69.3 kB

Release files / email2md-0.1.3.tar.gz

Download URL email2md-0.1.3.tar.gz
Size 62.1 kB
Tags Source
SHA-256 checksum
How to use checksums
3649ec6e0c9974c82cd85c48c566a7ed5c09f6ce5b5cffdf0968fd0c217361d1
BLAKE2b-256 checksum
How to use checksums
1267558142552942d23598bb662066a7536d40302c9b86277dee6f239480f623
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 19, 2025.

Transparency log

Release files / email2md-0.1.3-py3-none-any.whl

Download URL email2md-0.1.3-py3-none-any.whl
Size 7.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d9cc4000fc93528f05190b728a13bedd052717181544a7fbe99a6a0624b4d1d8
BLAKE2b-256 checksum
How to use checksums
a5e88052b238656f1196b56928929207716df79f45af7d81c406d5183e300674
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Dec 19, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page