mjml
by mjmlio
MJML is a markup language and compiler that turns simple, readable tags into responsive HTML email code that works across email apps. It is for building email templates without hand-coding complicated table-based HTML.
- Stars
- 18.3k
- Licence
- MIT
- Runs on
- Your computer
- Setup
- Moderate
- Language
- JavaScript
- Age
- 3930 days
What you can do with it
- Write email layouts in simple MJML tags and convert them to responsive HTML
- Compile templates from the command line or inside a Node.js app
- Preview and edit emails using the free online editor or the Visual Studio Code plugin
Make money with it
A freelancer could offer custom responsive email template design and build services to small businesses, delivering HTML ready for their email platform.
An idea, not financial advice. Check the licence before charging for anything built on it.
Ways a business could use it
- Build reusable branded newsletter and promotional email templates in-house instead of paying a designer for each one
- Generate consistent transactional emails, such as order confirmations and receipts, from your own app
Can you use it commercially?
Free to use, change and sell, including in paid products. Keep the copyright notice.
Not legal advice. Read the project's licence file before building a product on it.
Getting it running
Install with "npm install mjml" for Node.js or the command line, or use the free online editor with no install.
Follow the official instructions in the project README.
Things to check
- Requires some comfort with code and Node.js to use beyond the online editor
- Produces HTML only; you still need a separate email service to send messages
Checked 02 Nov 2026. Summary drafted by AI from the project's README.