Back to Tools

HTML Email Button Generator

Create bulletproof HTML email buttons that work in Gmail, Outlook, Apple Mail, and all major email clients. Includes VML fallback for perfect Outlook rendering.

About this tool

The call-to-action button is where your email either converts or doesn't. But building a button that looks right in every email client is surprisingly hard — Outlook uses Microsoft Word's rendering engine, which ignores most CSS. Gmail strips embedded styles. And mobile clients add their own sizing rules. This generator creates bulletproof HTML buttons with VML fallback code that render perfectly everywhere, so you can focus on the copy instead of debugging HTML.

How email buttons differ from web buttons

On the web, a button is simple CSS: background-color, border-radius, padding, done. In email, that same CSS breaks in Outlook because Outlook doesn't use a browser engine — it uses Microsoft Word. That means no border-radius, unreliable padding, and backgrounds that disappear entirely. The solution is VML (Vector Markup Language), a Microsoft-specific format that Outlook does understand. Our generator wraps every button in conditional VML code for Outlook while keeping clean HTML/CSS for everyone else. The result is a button that looks identical whether your recipient uses Gmail on Chrome, Apple Mail on an iPhone, or Outlook 2016 on Windows.

Why this matters for email marketers

Buttons drive clicks, and clicks drive revenue. Emails with a clear, styled CTA button get 28% more clicks than text links alone. But if that button renders as a broken rectangle or invisible box in Outlook — which still accounts for roughly 10% of email client market share — you're losing conversions from a significant chunk of your audience. A button that works everywhere means consistent click-through rates regardless of what client your subscribers use. Tag your button links with UTM parameters to track exactly how many clicks and conversions each button generates.

Common mistakes to avoid

Don't use images for buttons. If images are blocked (and many clients block them by default), your CTA disappears entirely. Don't rely on CSS border-radius for rounded corners in email — use VML for Outlook and CSS for everything else, which is exactly what this generator does. Avoid making buttons too small — the minimum touch target on mobile is 44x44 pixels, and anything smaller frustrates mobile users. Don't use low-contrast color combinations either: a light gray button on a white background is almost invisible. Use our contrast checker to verify readability.

How to use this with your email workflow

Design your button here, copy the generated code, and paste it into your email template. Always use a descriptive CTA - "Get your free report" outperforms "Click here" by 2-3x because it tells the reader what they'll get. Add UTM tracking to the button URL so you can measure performance in your analytics tool. Before sending, check how the button looks in dark mode and test it across different email clients. If you're running multiple button variations, use our A/B test calculator to determine which design drives more clicks.

Where hand-coded buttons stop scaling

Hand-written table markup gets fragile fast once you add images, columns, and dark mode variants around the button. The Sequenzy email editor renders bulletproof buttons, responsive layouts, and dark mode safe colors for you, and every button is click-tracked and attributed to revenue automatically inside campaigns.

Build the whole email, not just the button

The Sequenzy email editor renders bulletproof buttons, images, and layouts that survive Outlook, Gmail, and dark mode.

Frequently Asked Questions

Why do I need a special button for emails?

Web CSS buttons break in Outlook because it uses Microsoft Word's rendering engine instead of a browser. Standard CSS properties like border-radius, padding, and background-color don't render reliably. Our generator includes VML (Vector Markup Language) fallback code that Outlook understands, wrapped in conditional comments so other clients use the cleaner CSS version.

Will the button work in Outlook?

Yes — that's the whole point of this tool. We use Microsoft's VML to render the button natively in Outlook 2007, 2010, 2013, 2016, 2019, and Microsoft 365. Without VML, Outlook often strips backgrounds, ignores rounded corners, and collapses padding. Our code handles all of these edge cases so the button looks consistent across every Outlook version.

Can I use custom colors?

Yes. Use the color pickers for background and text colors, or enter hex codes directly for precise brand matching. We also generate the VML equivalent of your chosen colors so Outlook renders the same shade. Just make sure your text-to-background contrast ratio is at least 4.5:1 for accessibility — our contrast checker tool can verify this.

What about dark mode?

Dark mode in email clients is unpredictable — Apple Mail inverts colors, Gmail's dark mode is more conservative, and Outlook's behavior varies by version. Our buttons use inline styles and explicit color values that resist unwanted inversions. For best results, avoid pure white (#ffffff) backgrounds and pure black (#000000) text, as these are most likely to get flipped. Preview with our dark mode tool before sending.

What's the ideal button size for emails?

For mobile, Apple's Human Interface Guidelines recommend a minimum touch target of 44x44 pixels. In practice, email buttons should be at least 44px tall with 15-25px of horizontal padding. Full-width buttons (100% of the container) work well on mobile because they're impossible to miss. On desktop, buttons look better at a fixed width that fits the text naturally.

Should I use an image button or an HTML button?

Always use HTML buttons, never images. Many email clients block images by default, which means your CTA would be invisible until the user manually loads images. HTML buttons render immediately with full styling. The only exception might be a highly stylized graphic button, but even then, include alt text and a fallback link.

What CTA text works best on email buttons?

Action-oriented, specific text outperforms generic labels every time. "Get your free report" beats "Click here" by 2-3x in click-through rate. "Start my free trial" beats "Submit." Keep it to 2-5 words, use first person ("my" instead of "your"), and make sure the reader knows exactly what happens when they click. Avoid vague labels like "Learn more" when you can be specific.

How many buttons should I include in an email?

One primary CTA button per email is the safest approach — it focuses the reader's attention and makes the desired action clear. If you need multiple CTAs, make one visually dominant (full color) and secondary ones more subtle (outlined or text-link style). More than three buttons in a single email creates decision paralysis and usually reduces overall click rates.

Can I add rounded corners to email buttons?

Yes, but it requires both CSS and VML. CSS border-radius works in Gmail, Apple Mail, and most modern clients, but Outlook ignores it completely. Our generator adds VML arcsize attributes that create rounded corners in Outlook too. The result is consistent rounded buttons everywhere. Just keep the radius reasonable — 4-8px looks polished, while 50px starts to look pill-shaped.

Compare email marketing software

Hands-on roundups to help you pick the right platform.