Email to Markdown

Convert .eml and Outlook .msg files into Markdown: sender, recipients, date and subject, the message body, and every attached PDF, Word or Excel file converted inline.

  • EML & Outlook MSG
  • Attachments converted
  • HTML or text body

What the email converter keeps

  • Headers: from, to, cc, date and subject.
  • Body: HTML mail converted to Markdown, or the plain-text body.
  • Quoted replies: kept as block quotes.
  • Attachments: listed with their size, and documents among them (PDF, DOCX, XLSX, CSV...) are converted too.

Example output

An invoice e-mail with an HTML table and a CSV attachment. Actual output, shortened:

# Invoice #1042 for October

**From:** Billing <billing@example.com>
**To:** customer@example.org
**Date:** 2026-10-13 09:30 +00:00

---

Hello,

Please find your **invoice** attached.

| Item | Amount |
| --- | --- |
| API Pro plan | $19.00 |

## Attachment: invoice.csv

| Item | Amount |
| --- | --- |
| API Pro plan | 19.00 |

How to convert Email to Markdown

  1. Save the e-mail as a file: in Outlook, drag it to your desktop (.msg); in Gmail, use Download message (.eml).
  2. Drop the file above.
  3. Copy the Markdown, attachments included.

Email to Markdown API

Process inboxes automatically: send each message to /v1/convert/raw. See the n8n guide for a no-code workflow.

curl -X POST "https://anytomarkdown-pdf-to-markdown-and-document-parser-api.p.rapidapi.com/v1/convert/raw?convertAttachments=true" \
  -H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
  -H "X-RapidAPI-Host: anytomarkdown-pdf-to-markdown-and-document-parser-api.p.rapidapi.com" \
  -F "file=@message.eml" 

Get a free API key API overview

Frequently asked questions

How do I convert an Outlook email to Markdown?

Drag the e-mail from Outlook to your desktop to get a .msg file, then drop it into the converter above.

Are attachments converted?

Yes. Document attachments are converted and appended after the message. With the API, convertAttachments=false lists them without converting.

Can I convert a Gmail message?

Yes. Open the message, choose More > Download message to get an .eml file, and drop it above.