mdgate converters

EMLX to Markdown in your browser.

Convert EMLX files to GitHub-Flavored Markdown directly in your browser.

Your EMLX stays on your device. No upload. No account.

Starting local converter

Use EMLX to Markdown in your app

$ npm install @mdgate/email

import { toMarkdown } from '@mdgate/email';

const markdown = await toMarkdown(bytes);

Pure TypeScript, Node.js, Cloudflare Workers, Edge, Browser, No Python, No native addons, No WASM, Zero third-party runtime dependencies

How EMLX to Markdown works

  1. EMLX
  2. MIME / MSG parsing
  3. headers · body · attachments
  4. GitHub-Flavored Markdown

Built for JavaScript runtimes

Node.js

Read local files, uploads, S3/R2 objects, IMAP exports, and other byte sources.

Cloudflare Workers

Parse EMLX files directly inside Workers without an email client.

Browser

Convert EMLX files locally without uploading them to a server.

Edge

Run the same TypeScript converter in compatible Edge runtimes.

What @mdgate/email extracts

  • Subject as a heading
  • From, To, Cc, and Date
  • HTML bodies converted through the HTML document model
  • Plain-text bodies
  • Attachment names under an Attachments heading
  • Outlook .msg compound files

Why @mdgate/email

Runs where your JavaScript runs

No separate processing service. The converter is TypeScript you can call from Node.js, Cloudflare Workers, Edge runtimes, and browsers.

Local conversion

EMLX files can stay inside your application or browser.

Content detection

Recognizes EMLX files from their contents, not only the filename.

Deterministic parsing

The same EMLX file produces repeatable Markdown without model inference.

Small runtime surface

No Python. No native addons. No WASM. No third-party runtime dependencies.

EMLX for AI agents

Turn EMLX files into content your agent can actually work with.

  1. EMLX
  2. Markdown
    • grep
    • search
    • chunk
    • index
    • cache
    • cite
    • reason

Need more than EMLX?

One format

@mdgate/email

Your own set

@mdgate/core
+ @mdgate/email
+ @mdgate/pdf
+ @mdgate/docx

Broad file support

@mdgate/converters

FAQ

Can I convert EMLX to Markdown without uploading it?

Yes. EMLX files can be converted locally in the browser.

Does EMLX to Markdown work in Cloudflare Workers?

Yes. @mdgate/email runs directly in Cloudflare Workers.

Does it require Python?

No.

Does it require native addons or WASM?

No.

What does it output?

GitHub-Flavored Markdown.

Can I install only the EMLX converter?

Yes. Install @mdgate/email instead of the complete converter set.