# MJML

Open\-source semantic markup and compiler for responsive HTML email templates\.

ID: Q345 · Revision: 331

Type: software · License: MIT[^license] · Status: active

Website: https://mjml.io/



MJML is a markup language and open\-source compiler for responsive HTML email\. Authors describe layouts with email\-oriented components, then compile them into HTML\. The project offers Node\.js and command\-line workflows, making it a candidate for applications that want reusable email templates without writing every underlying table layout by hand\.[^readme]

## Capabilities and substitutions

### Email HTML compilation — supported

Semantic markup compiles through Node\.js or CLI; compilation is separate from sending\.[^readme]

Use case: Authoring and compiling responsive HTML email templates · Platforms: Node\.js, Command line, JavaScript, Web · Region: Version, build and integration requirements apply

### Validation gate — limited

Default soft mode can render invalid markup; strict mode rejects validation errors\.[^docs]

Use case: Authoring and compiling responsive HTML email templates · Platforms: Node\.js, Command line, JavaScript, Web · Region: Version, build and integration requirements apply

### Reusable file includes — limited

Current includes are opt\-in and restricted to configured roots\.[^cli]

Use case: Authoring and compiling responsive HTML email templates · Platforms: Node\.js, Command line, JavaScript, Web · Region: Version, build and integration requirements apply

### Uniform interactive client behavior — limited

Navbar hamburger support and Outlook backgrounds have documented client\-specific restrictions\.[^docs]

Use case: Authoring and compiling responsive HTML email templates · Platforms: Node\.js, Command line, JavaScript, Web · Region: Version, build and integration requirements apply

### [Substitute for React Email](/reactemail) — limited

Can replace React\-based template rendering when a dedicated markup language is preferred; templates and custom components require rewriting\.[^readme][^react]

Use case: Authoring and compiling responsive HTML email templates · Platforms: Node\.js, Command line, JavaScript, Web · Region: Version, build and integration requirements apply

## References

[^readme]: [MJML repository overview](<https://github.com/mjmlio/mjml/blob/master/README.md>) — Semantic components, Node\.js, browser compiler and CLI (vendor; retrieved 2026-10-07T23:34:24Z)

[^docs]: [MJML documentation](<https://documentation.mjml.io/>) — Validation, ending tags, navbar and Outlook background limitations (vendor; retrieved 2026-10-07T23:35:12Z)

[^cli]: [MJML CLI documentation](<https://github.com/mjmlio/mjml/blob/master/packages/mjml-cli/README.md>) — Validation exit status, watch, template CSS and include allowlists (vendor; retrieved 2026-10-07T23:34:31Z)

[^package]: [MJML package manifest](<https://github.com/mjmlio/mjml/blob/master/packages/mjml/package.json>) — Version 5\.4\.1 and compiler dependencies (vendor; retrieved 2026-10-07T23:34:31Z)

[^license]: [MJML MIT license](<https://github.com/mjmlio/mjml/blob/master/LICENSE.md>) — MIT grant, notice conditions and disclaimer (vendor; retrieved 2026-10-07T23:34:24Z)

[^react]: [React Email migration guide](<https://react.email/docs/getting-started/migrating-to-react-email>) — MJML and React template conversion (vendor; retrieved 2026-10-07T23:34:24Z)

Source revision: https://substitutefor.net/entities/Q345?revision=331
