Home / Business tools / Email signature generator / HTML signature code

HTML Email Signature Generator

Get the HTML code of your signature. It is built with tables and inline styles, ready to paste into any program that accepts HTML.

Step 1: Enter your details

Type in the boxes below. Your signature appears in Step 2 and updates as you type. Leave a box empty to leave that line out.

Your name and job

Shown in bold at the top of the signature.
Shown under your name.
Shown next to your job title, in your accent color.

How people can contact you

Becomes a tap-to-call link.
A second number, if you have one.
Becomes a link that opens a new email.
With or without https://.
Shown as plain text.

Your photo or company logo (optional)

A web address that starts with https:// and ends in .jpg or .png. A file saved on your computer cannot be used, the picture must already be online.
The picture is resized in your browser and never uploaded. It works for the preview and when you paste into Outlook or Apple Mail. Gmail and many readers block images that are embedded this way, so for the best result host the picture online and use the link above. You can download the resized picture below to host it.

Your social media links (optional)

Paste the link to your profile, or only your username.
Numbers only with the country code. Makes a click-to-chat link.

Extra lines (optional)

Shown in small italic text.
The words on the colored button.
Both the button text and this link are needed for the button to show.
A hosted image shown under the signature, about 360 px wide. Use https://.
Where people go when they click the banner.
Shown in small gray text at the bottom.

Step 2: Your signature (updates as you type)

Choose a layout:

Hi Sam,

Thanks for getting back to me. I will send the updated proposal this afternoon.

Best regards,

Step 3: Fine-tune the design (optional)

Changes here update the signature in Step 2.

Colors

Text

Divider line

Photo or logo

Step 4: Where to use the HTML

  • Thunderbird: download the file, then in Account Settings choose the option to attach the signature from a file, and tick Use HTML.
  • Webmail with an HTML signature editor (such as Roundcube or Zimbra): open the source or HTML view of the editor and paste the code.
  • Outlook for Windows: save the file as .htm in the Signatures folder, or paste the preview in the editor.
  • Gmail and Apple Mail: these do not take raw code. Use Copy signature and paste the finished design.

How an HTML email signature is built

Email programs are not browsers. Many of them remove style sheets, scripts and modern layout features, so the code for a signature follows older rules:

  • Tables for layout. Columns and rows are made with table cells, and not with flexbox or grid.
  • Inline styles. Every style sits in the style attribute of its own element. There are no classes and no style block.
  • Safe fonts. Arial, Verdana, Tahoma, Georgia and similar fonts that every computer has. Web fonts are not loaded.
  • Hosted images with fixed sizes. Each image has width and height attributes, a clear alt text and a full https address.
  • Text links. A link needs no image, so it still works when images are blocked.

The code options

  • Minify removes the line breaks and indents. It makes the code shorter, which helps with size limits, but it is harder to read.
  • Wrap in a full HTML page adds the html, head and body tags. Use it for a file that you save and import. Leave it off to paste into an editor that expects only the signature.
  • Plain text is a version without formatting, for programs and settings that accept only text.

Check the code before you use it

  1. Send a test email to yourself, and to a Gmail and an Outlook address if you can.
  2. Open it on a phone as well as a computer.
  3. Switch on the dark preview to see if the text stays readable on a dark background.
  4. Click every link.

You can tidy or compress the result with the HTML formatter, the HTML beautifier or the HTML minifier. For a ready to paste version, use the main generator, the Gmail version or the Outlook version. The email signature guide has design advice.

Frequently asked questions

Why does an email signature use tables?

Many email programs, especially Outlook, do not support modern layout code. Tables are drawn the same way everywhere.

Why are all the styles inline?

Email programs often remove style blocks and classes. A style on each element survives.

Can I use web fonts or icons?

Web fonts are not loaded by most email programs, so a safe font is used. Icons would need images hosted online, so this generator uses text links.

Can I paste the HTML straight into Gmail?

No. Gmail has no HTML box. Use the Copy signature button and paste the finished signature.