Build responsive email templates that render correctly in Gmail, Outlook, and Apple Mail without manual HTML tweaking.
Create marketing campaign emails using simple markup tags instead of writing complex, client-specific HTML.
Generate transactional emails (receipts, confirmations) programmatically from Node.js code.
MJML is a markup language, a special way of writing code, specifically designed to make it much easier to create HTML emails that look correct across different email clients (such as Gmail, Outlook, and Apple Mail). Writing HTML emails by hand is notoriously painful because email clients each interpret HTML and CSS differently, often ignoring modern web standards. MJML solves this by letting you write in a simpler, more structured syntax, then automatically compiling it into the complex, compatible HTML that email clients need. You write MJML using tags like mj-section, mj-column, and mj-text, which map to layout and content concepts. The MJML engine then translates this into a finished HTML email. Because the engine handles all the cross-client compatibility logic, your email will render correctly without you needing to know the many quirks of each client. MJML can be used in three ways: through a free online editor, as a command-line tool that takes an .mjml file and outputs an .html file, or as a JavaScript library you call from Node.js code. Editor plugins are available for Visual Studio Code and Sublime Text. The project is open source.
Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.