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
Web pages are reduced to the main article: menus, cookie banners and footers are removed. Public Google Docs, Sheets, Slides, Drive, Dropbox and GitHub links work too.
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
- Save the e-mail as a file: in Outlook, drag it to your desktop (.msg); in Gmail, use Download message (.eml).
- Drop the file above.
- 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" 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.
Related converters
PDF to Markdown
Headings, tables and lists from any PDF, with OCR for scans.
Open converter →Word (DOCX) to Markdown
DOCX, DOC, RTF and ODT with styles, lists, tables and footnotes.
Open converter →HTML to Markdown
Paste HTML and get clean Markdown.
Open converter →Excel to Markdown table
Every sheet as a Markdown table, with Excel number formats.
Open converter →