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.

  1. 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.

  2. 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.

  3. 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

From · EML

Email Message

A single email as sent over the wire. Headers, body and MIME attachments.

Extensions
.eml
MIME type
message/rfc822
Kind
Email
To · JSON

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.

terminal
$ cv convert report.eml report.json
$ cv convert report.eml report.json

Questions.What people ask about EML to JSON.

01OF 04

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.

More conversions.Other ways in and out of EML and JSON.