Guides / What is MJML?

What is MJML? The markup language behind responsive email

Updated December 2026 · 2 min read

Short answer

MJML is an open-source markup language for email, originally created by Mailjet. You write simple tags like <mj-section> and <mj-button>, and MJML compiles them into the table-based, inline-styled HTML that email clients need, with mobile stacking built in.

How MJML works

An MJML file describes an email as sections, columns and content blocks. The MJML compiler turns that into hundreds of lines of nested tables, conditional comments for Outlook and media queries for phones — code that's tedious and error-prone to write by hand.

Why it matters

Hand-coded HTML email breaks easily, especially in Outlook. MJML encodes years of rendering workarounds, so a well-formed MJML template renders consistently across Gmail, Outlook, Apple Mail and Yahoo.

MJML in Brandletter

Every Brandletter template is built with MJML. You edit visually, and when you export you can copy either the compiled HTML (to paste into your email platform) or the MJML source (to keep in your own codebase).

Frequently asked questions

Is MJML free?

Yes. MJML is open source under the MIT licence.

Do I need to know MJML to use Brandletter?

No. Brandletter writes the MJML for you; you edit the email visually. The MJML export is there if your developers want it.

Skip the blank page

5,184 ready-made email templates, edited in your browser and exported for your platform.

Start free