EML Parser โ€” Email to JSON (MIME) avatar

EML Parser โ€” Email to JSON (MIME)

Pricing

from $0.0015 / email parsed

Go to Apify Store
EML Parser โ€” Email to JSON (MIME)

EML Parser โ€” Email to JSON (MIME)

Parse raw .eml / MIME emails into clean JSON โ€” subject, sender, recipients, text & HTML bodies, headers and attachments. For inbox automation and data pipelines.

Pricing

from $0.0015 / email parsed

Rating

0.0

(0)

Developer

Hipersoft

Hipersoft

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

7 hours ago

Last modified

Features

Limited permissions

Share

EML Parser โ€” Convert Raw .eml / MIME Emails to Structured JSON (Bulk)

Turn raw .eml / MIME emails into clean, structured JSON โ€” subject, sender, recipients, text and HTML bodies, headers and attachments โ€” ready for automation and data pipelines. The EML Parser takes a pasted raw email or a list of .eml file URLs and returns a tidy JSON record per message, plus a full parsed .json file you can download. Export the dataset as JSON, CSV, Excel or XML, or pull it from the Apify API. It's the fast, code-free way to parse email files at scale for support tools, CRMs, e-discovery and analytics.

EML Parser input โ€” raw email or .eml URLs in the Apify Console

What is the EML Parser?

The EML Parser is a bulk .eml/MIME-to-JSON converter โ€” an email parser that turns raw message files into structured data. For each email you give it (pasted as text or linked as a .eml URL), it extracts the subject, from/to/cc addresses, date and message ID, both the plain-text and HTML bodies, a useful subset of headers, and the attachment list (filename, content type and size โ€” with the option to save the bytes). Instead of writing and maintaining a MIME parser, you feed it emails and get analysis-ready JSON. It's built for teams normalizing inbound mail into tickets or CRM records, and for anyone converting an archive of .eml files into searchable data.

Features

  • ๐Ÿ“ง Full email parsing โ€” subject, from, to, cc, date and message ID from raw MIME.
  • ๐Ÿ“ Text + HTML bodies โ€” both the plain-text and HTML versions are returned when present.
  • ๐Ÿ“Ž Attachment handling โ€” list every attachment (filename, type, size), and optionally save the file bytes.
  • ๐Ÿงพ Header subset โ€” keeps the headers useful for routing and threading.
  • ๐Ÿ”— Paste or link โ€” parse a single pasted email, or download and parse many .eml URLs.
  • ๐Ÿ—‚๏ธ Per-email JSON file โ€” each message is saved as a .json file with a direct link.
  • ๐Ÿ“ค Clean exports โ€” JSON, CSV, Excel or XML, or straight into a workflow.

What you get

EML Parser output โ€” parsed email fields and attachment list as a clean dataset

Each email becomes one summary row in the dataset, with a link to the full parsed JSON file:

{
"subject": "Hello",
"from": "alice@example.com",
"date": "2026-08-22T10:00:00.000Z",
"attachments": 0,
"resultUrl": "https://api.apify.com/v2/key-value-stores/.../records/email-0001.json",
"ok": true
}

The linked JSON file contains the full parsed message:

{
"subject": "Hello",
"from": "alice@example.com",
"to": "bob@example.com",
"cc": null,
"date": "2026-08-22T10:00:00.000Z",
"messageId": "<abc123@example.com>",
"textBody": "Hi there",
"htmlBody": null,
"headers": { "from": "alice@example.com", "subject": "Hello" },
"attachments": [{ "filename": "invoice.pdf", "contentType": "application/pdf", "size": 20481 }]
}

Output schema (dataset row)

FieldTypeDescription
subjectstringEmail subject line.
fromstringSender address.
datestring (ISO date)Message date.
attachmentsintegerNumber of attachments found.
resultUrlstring (URL)Link to the full parsed JSON file.
okbooleanWhether the email parsed successfully.
errorstringReason parsing failed (on failure rows only).

The full JSON file additionally includes to, cc, messageId, textBody, htmlBody, headers and a detailed attachments array.

How to parse .eml emails

  1. Open the EML Parser and click Try for free.
  2. Paste a raw email into the eml field, and/or add .eml file URLs to emlUrls.
  3. Toggle saveAttachments if you want attachment bytes saved (small files only).
  4. Click Run.
  5. Export the dataset, or open each message's resultUrl for the full parsed JSON.

Input

{
"eml": "From: alice@example.com\r\nTo: bob@example.com\r\nSubject: Hello\r\n\r\nHi there",
"emlUrls": ["https://example.com/message.eml"],
"saveAttachments": false
}
FieldTypeDescription
emlstringA raw .eml / MIME email pasted as text (parses a single message).
emlUrlsarrayDirect URLs to .eml files to download and parse.
saveAttachmentsbooleanSave attachment file bytes (small files only) instead of metadata alone.

Use cases

  • Support & CRM intake: normalize inbound email into structured records โ€” create tickets, log leads, route messages โ€” without writing a parser.
  • Workflow automation: drop parsed fields straight into n8n, Make or Zapier to trigger actions on new mail.
  • Email archive conversion: batch-convert stored .eml files into JSON for search and analytics.
  • E-discovery & compliance: extract headers, bodies and attachment lists from retained messages.
  • Attachment processing: pull attachment metadata (or bytes) out of emails for downstream handling.
  • Data migration: move messages from .eml archives into a database or search index.
  • Pipelines: parse email as a step in a larger automated workflow.

Pricing

Pay-per-event: you're billed a small amount per email parsed โ€” you only pay for the results you receive. See the Pricing tab for current rates.

FAQ

How do I convert a .eml file to JSON? Paste the raw email into the eml field or add its URL to emlUrls, then run the actor. You get a structured JSON record and a downloadable .json file per message.

Can it handle attachments? Yes โ€” attachment metadata (filename, type, size) is always returned, and the file bytes can be saved when saveAttachments is enabled (small files only).

Does it return both text and HTML bodies? Yes โ€” both textBody and htmlBody are returned when present in the message.

Can I parse many emails at once? Yes โ€” pass a list of .eml URLs and each is downloaded and parsed into its own JSON result in one run.

Which fields are extracted? Subject, from, to, cc, date, message ID, text and HTML bodies, a useful subset of headers, and the attachment list.

What if an email fails to parse? That message's row is returned with ok: false and an error reason, and the rest keep going.

What export formats are supported? Structured JSON, CSV, Excel and XML for the summary rows, plus the per-email .json files and programmatic access through the Apify API.

Can I connect this to other apps? The EML Parser can be connected with almost any cloud service or web app thanks to integrations on the Apify platform. It works with Make, Zapier, Slack, Airbyte, GitHub, Google Drive and many more, plus the Apify API, JavaScript/Python clients and MCP. Or use webhooks to trigger an action whenever a run finishes.

Building an email and data toolkit? Combine the EML Parser with our other utilities:

Notes

Original clean-room implementation. Parses the email content you provide into structured JSON.