Convert EML to JSON
Turn EML emails into JSON. One object with the addresses, subject, date, every header, the plain and HTML bodies, and the name, type and size of each attached or inline file.
Converted in an isolated sandbox on our serversDeleted after 24 hours
Drop EML files on the dialor turn it to pick what to do
An email turned into readable JSON.Addresses, subject, date, headers and bodies come out as one JSON object.
What you get
One JSON file with one object for the message. It holds the addresses, the subject, the date and every header, so you can read them in code without parsing the EML yourself.
The plain body and the HTML body are both in the object. If the message has only an HTML body, the plain body is reduced from it.
Attachments
Each attached or inline file is listed with its name, type and size. The contents of the files are left out, so the JSON holds no attachment data.
When it fails
A file that cannot be parsed stops with
input_corrupted. This means the EML is damaged or is not a readable email message.To combine several of the resulting files into one, try merge JSON.
EML and JSON.What each format is.
The formats
Email Message
A single email as sent over the wire. Headers, body and MIME attachments.
- Extensions
- .eml
- MIME type
- message
/rfc822 - Kind
JSON
JSON, the data format of every API.
- Extensions
- .json
- MIME type
- application
/json - Kind
- Text and data
In your code.The same EML to JSON conversion through the API, for your app or your agent.
$ cv convert report.eml report.json$ cv convert report.eml report.jsonQuestions.What people ask about EML to JSON.
It contains the addresses, subject, date, every header, the plain and HTML bodies, and the name, type and size of each attachment.
No. Only the name, type and size of each attached or inline file are listed. The contents are left out.
When a message has only an HTML body, the plain body is reduced from it. You still get both bodies in the object.
The file could not be parsed as an email. The conversion stops with input_corrupted in that case.