Skip to content
Tezmy Tools

Mailto Link Generator

Make a mailto link with subject, message, cc and bcc, plus HTML code for it

Several addresses can be separated by commas.

Type an email address to make the link.

Clicking a mailto link opens the visitor's own email program with these fields filled in. Putting a plain email address on a page invites spam, so a form is safer if you get many messages.

Runs in your browser. Nothing is uploaded.

About the Mailto Link Generator

Mailto Link Generator builds a mailto link: a web link that opens the visitor's email program with the recipient, subject and message already filled in. Enter one or more addresses, optional cc and bcc, a subject and a message with line breaks, and the page encodes everything correctly, with spaces as %20 and line breaks as %0D%0A, and gives you the link and a ready HTML anchor tag. Use it for contact links on websites, newsletters, email signatures and buttons so that readers can write to you in one click.

Updated October 2026

How to use the Mailto Link Generator

  1. 1Type the address in the To box; use commas for several.
  2. 2Add cc, bcc, a subject and a message if you like.
  3. 3Check the link and press Copy.
  4. 4Test it by clicking the link.
  5. 5Paste the link or the HTML code into your page.

What goes in a mailto link

A mailto link has the address first and then optional parts after a question mark, joined by ampersands: cc, bcc, subject and body. Special characters must be encoded, because spaces, ampersands and line breaks would otherwise break the link. That is the part people usually get wrong, and the generator handles it.

Using it on your site

Paste the HTML into your page and change the link text. For a button, add your own CSS class to the anchor tag. If you use a website builder, paste the plain link into its button or link field instead.

  • Contact page: a link with a subject like Question about your service
  • Support: a link with the order number format in the body
  • Newsletter: a reply link with the subject prefilled
  • Email signature: a link to book a call

Good habits

Write a subject that tells you where the message came from, so you can sort it. Do not put private information in the body, because it is visible in the page source. Use Bcc only for sending to yourself, never to collect addresses of strangers.

Related tools

Build a contact link for chat with the WhatsApp Link Generator, encode text with the URL Encoder Decoder and add a signature with the Email Signature Generator. The HTML Link Generator makes other kinds of links.

Features

  • To, cc, bcc, subject and body
  • Correct encoding of spaces, symbols and line breaks
  • Several recipients
  • HTML anchor code
  • Address check with clear errors
  • Private: nothing is uploaded

Frequently asked questions

What is a mailto link?

A link that starts with mailto: and an email address. When clicked it opens the user's default email program with a new message addressed to that address.

How do I add a subject and message?

Add ?subject=...&body=... after the address, with spaces written as %20 and line breaks as %0D%0A. The generator does the encoding.

How do I add several recipients?

Separate the addresses with commas. The generator also accepts spaces or semicolons between them.

Why does my mailto link do nothing?

It opens the email program that is set as default. If the visitor uses only webmail and has no default program, nothing may happen. A contact form is more reliable.

Will a mailto link invite spam?

An address written on a public page can be collected by spam robots. Use a form, or a throwaway address for public pages, if you get a lot of spam.

How long can the message be?

Keep it short. Some programs cut off very long links, around 2,000 characters.

Does Gmail open mailto links?

Only if you set Gmail as the handler for email links in your browser. Otherwise the computer's default mail program opens.

Is my text stored?

No. The link is built in your browser and nothing is uploaded.

Related tools