EML Parser โ Email to JSON (MIME)
Pricing
from $0.0015 / email parsed
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
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
7 hours ago
Last modified
Categories
Features
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.

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
.emlURLs. - ๐๏ธ Per-email JSON file โ each message is saved as a
.jsonfile with a direct link. - ๐ค Clean exports โ JSON, CSV, Excel or XML, or straight into a workflow.
What you get

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)
| Field | Type | Description |
|---|---|---|
subject | string | Email subject line. |
from | string | Sender address. |
date | string (ISO date) | Message date. |
attachments | integer | Number of attachments found. |
resultUrl | string (URL) | Link to the full parsed JSON file. |
ok | boolean | Whether the email parsed successfully. |
error | string | Reason 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
- Open the EML Parser and click Try for free.
- Paste a raw email into the
emlfield, and/or add.emlfile URLs toemlUrls. - Toggle
saveAttachmentsif you want attachment bytes saved (small files only). - Click Run.
- Export the dataset, or open each message's
resultUrlfor 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}
| Field | Type | Description |
|---|---|---|
eml | string | A raw .eml / MIME email pasted as text (parses a single message). |
emlUrls | array | Direct URLs to .eml files to download and parse. |
saveAttachments | boolean | Save 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
.emlfiles 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
.emlarchives 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.
Related Actors
Building an email and data toolkit? Combine the EML Parser with our other utilities:
- Email Verifier โ validate and check deliverability of email addresses.
- CSV to JSON Converter โ convert spreadsheets into JSON.
- JSON โ XML Converter โ convert structured data between JSON and XML.
- Text Entity Extractor โ pull emails, URLs and entities out of raw text.
- User Agent Parser โ parse user-agent strings into browser, OS and device.
Notes
Original clean-room implementation. Parses the email content you provide into structured JSON.