Lets teams author emails in MJML syntax and compile responsive HTML suited to common clients, including Outlook, via CLI or Node APIs
Overview
MJML is a markup language created by Mailjet for writing responsive HTML emails with less hand-tuned table layout. A semantic tag set and built-in components shorten templates compared to raw HTML, and an open-source engine translates MJML input into responsive HTML output.
Authors can work through a command-line compiler, embed compilation in Node.js via the mjml2html API, or use community applications and plugins listed on the project site. The CLI supports watch mode, beautify and minify options, custom include roots, validation levels, and template delimiter configuration for preprocessing CSS safely.
The component model encourages reusable sections such as columns, buttons, and wrappers while the engine applies client-oriented responsive behavior. An optional hosted API is documented for applications that prefer remote compilation instead of bundling the engine locally, and a free online editor is offered for users who do not want a local install.
MJML targets marketing and transactional email builders who need predictable rendering across widely used clients. Custom components can be registered through mjmlconfig when teams need organization-specific tags beyond the standard library.
Key features
- MJML-to-responsive-HTML engine
- Standard email component library
- Command-line compiler with watch mode
- Node.js mjml2html API
- Configurable HTML beautify and minify
- Custom components via mjmlconfig
- mj-include partial composition
- Third-party editor and plugin ecosystem
Use cases
- Responsive marketing email templates
- Transactional notification emails
- Newsletter layout automation
- Design-to-code email workflows
- Backend email rendering in Node apps