Skip to content
sumipost
Free tool

MJML to HTML.

Free, no account. The code never leaves your computer.

Paste your MJML, press “Convert” and copy the HTML into the sending service you already use. The official MJML library converts it, inside your browser.

The tool

The tool

How it works

In your browser, from start to finish.

No server in between: the page downloads the MJML library from our site and runs it on your computer.

  • The official library

    mjml-browser 4.18.0, the browser build of MJML by the MJML authors (MIT licence). It's only downloaded the first time you press Convert: 1.2 MB, about 350 KB compressed.

  • Errors with line numbers

    A tag that doesn't exist or a wrong attribute: MJML reports it with the line number and the HTML still comes out, so you see right away what changes.

  • An isolated preview

    The email shows in an isolated frame, with no scripts. External images and fonts stay blocked until you ask for them.

  • Copy, download, check

    Copy the HTML or download it as email.html. “Check this HTML” takes it to the HTML email checker, in the same tab.

Limits

What can't be done in a browser.

mj-include
It reads other files from disk: a browser has no disk to read. The mjml-browser documentation says mj-include tags are ignored; this tool tells you instead of skipping them silently. Paste the files' content in their place.
Custom components
Custom components are registered in the .mjmlconfig file, which doesn't exist in a browser (mjml-browser documentation).
Up to 1 MB
Above that it doesn't convert: a real MJML email is usually a few tens of KB.
Ten seconds
The conversion runs in a process separate from the page: if some MJML keeps the library busy for more than 10 seconds, it stops with a message.

An example

The newsletter of Fumaria, an artisan perfumery we invented. “Load an example” puts it in the tool: 29 lines of MJML become HTML with the tables and the Outlook rules already written.

fumaria.mjml
<mjml lang="en">
  <mj-head>
    <mj-title>The scent of first snow</mj-title>
    <mj-preview>Iris, incense and cedar: the winter scent.</mj-preview>
    <mj-attributes>
      <mj-all font-family="Helvetica, Arial, sans-serif" />
      <mj-text font-size="16px" line-height="26px" color="#24211F" />
    </mj-attributes>
  </mj-head>
  <mj-body background-color="#EFEAE4" width="600px">
    <mj-section padding="32px 24px 8px">
      <mj-column>
        <mj-text align="center" font-size="13px" letter-spacing="4px">FUMARIA</mj-text>
      </mj-column>
    </mj-section>
    <mj-section background-color="#FFFFFF" padding="40px 24px">
      <mj-column>
        <mj-text font-family="Georgia, serif" font-size="34px" line-height="40px">The scent of first snow</mj-text>
        <mj-text>Iris, incense and cedar: the winter scent, blended by hand in thirty numbered bottles.</mj-text>
        <mj-button href="https://fumaria.example/prima-neve" background-color="#24211F" color="#EFEAE4" border-radius="2px" align="left">Discover the scent</mj-button>
      </mj-column>
    </mj-section>
    <mj-section padding="24px">
      <mj-column>
        <mj-text align="center" font-size="12px" line-height="20px" color="#5C5650">You're receiving this email because you subscribed to Fumaria's newsletter.<br /><a href="https://fumaria.example/unsubscribe" style="color:#24211F">Unsubscribe</a></mj-text>
      </mj-column>
    </mj-section>
  </mj-body>
</mjml>
And the other way?

HTML to MJML: why it isn't here.

An HTML email is made of nested tables, repeated attributes and conditional comments for Outlook. MJML to HTML follows precise rules; going back means guessing which section, column or button sat behind each table.

On arbitrary HTML that guess only half works: whatever isn't recognised ends up in raw blocks, and the MJML you get reads no better than the HTML you started with. So we don't offer it until we can do it well.

If your emails started out in MJML, keep the MJML: that's the source. In Sumipost every email starts out in MJML and exports as MJML and HTML.

Check an HTML email
Questions

Questions about MJML and HTML.

What is MJML?

An open-source markup language for email, created at Mailjet. You write it with components such as mj-section, mj-column and mj-button, and it converts to table-based HTML that email clients can read.

Is my MJML saved or sent to a server?

No. The conversion runs in your browser with mjml-browser; the page doesn't send the text anywhere and doesn't save it.

Which MJML version does it use?

mjml-browser 4.18.0, the browser build of the official MJML library.

Can I use the HTML in Mailchimp, Brevo or MailUp?

Yes, if the service accepts your own HTML: the output is the HTML MJML produces for email clients, with nothing of ours inside.

Why doesn't it convert HTML to MJML?

Because on arbitrary HTML the result wouldn't be readable MJML: we explain why in the “And the other way?” section of this page.

The other tools

The other tools.

  • Free

    HTML email checker

    Paste an HTML email and get a list of practical problems.

    HTML email checker
  • With an account

    Brand kit from a website

    Colours, typefaces, logo and tokens.json from a web address: three examples.

    Brand kit from a website

In Sumipost a team of AI agents writes the MJML, in the brand's style, and you export it whenever you like.

Create your account