Skip to content

Bulletproof Email Button Generator

Design a call-to-action button for your email and copy code that works everywhere: a rounded VML button for classic Outlook on Windows and a styled link for every other email app. No images, so it shows even when images are off.

px
px
px
px
Alignment

Preview

HTML + VML code
<table role="presentation" border="0" cellpadding="0" cellspacing="0" width="100%">
  <tr>
    <td align="center">
      <!--[if mso]>
      <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="https://example.com/book" style="height:50px;v-text-anchor:middle;width:220px;" arcsize="16%" stroke="f" fillcolor="#2f5847">
        <w:anchorlock/>
        <center style="color:#ffffff;font-family:Arial, Helvetica, sans-serif;font-size:16px;font-weight:bold;">Book a call</center>
      </v:roundrect>
      <![endif]-->
      <!--[if !mso]><!-->
      <a href="https://example.com/book" target="_blank" style="background-color:#2f5847;border:0;border-radius:8px;color:#ffffff;display:inline-block;font-family:Arial, Helvetica, sans-serif;font-size:16px;font-weight:bold;line-height:50px;text-align:center;text-decoration:none;width:220px;-webkit-text-size-adjust:none;">Book a call</a>
      <!--<![endif]-->
    </td>
  </tr>
</table>
How to use it

Using the bulletproof button generator

  1. Enter the button text and the link.

  2. Pick the colours, size, corner radius and font, and check the preview.

  3. Copy the code and paste it inside a table cell where the button goes.

What makes a button “bulletproof”

A button made from an image disappears when images are blocked, and a link styled as a button loses its padding and rounded corners in classic Outlook for Windows, which renders email with Microsoft Word.

A bulletproof button is built from code instead. Classic Outlook gets a VML shape inside a conditional comment that only Outlook reads; every other email app gets a normal link styled as a button. In both, the whole button is clickable.

How to use the code

The code comes in its own small table, aligned the way you chose, so you can paste it inside any table cell of your template. The VML namespace is declared on the shape itself, so it works even if your <html> tag doesn’t declare it.

The button has a fixed width and height, because Outlook needs them to draw the shape. Pick a width that fits your text on one line, and keep it narrow enough for phones.

FAQ

Questions, Answered

Why don’t rounded corners show in Outlook?

Classic Outlook for Windows (Outlook 2007 to 2021 and the Microsoft 365 desktop app) renders HTML with Word, which ignores border-radius and the padding of links. The VML roundrect in this code draws the rounded button for those versions. The new Outlook for Windows, Outlook for Mac and Outlook.com show the CSS version.

Does the button work with images turned off?

Yes. It’s made only of code and text, with no images, so it looks the same whether images load or not.

Why does the button have a fixed size?

Outlook’s VML shapes need a width and height. The other email apps get the same size, so the button looks the same everywhere. For phones, a width of about 300 px or less is a safe choice.

Can I use the code in Mailchimp, HubSpot or another platform?

Yes, in any editor that accepts custom HTML, such as a code block or a coded template. Some drag-and-drop editors remove conditional comments; if yours does, the button still shows, but without rounded corners in classic Outlook.

Is the code free to use?

Yes. Use it in any email, for yourself or for clients; no credit needed.

Need an HTML email built or fixed?

I code responsive HTML email templates and signatures that work in Outlook, Gmail and Apple Mail, or fix the one you already have. Tell me what you need.

Email me