Home › Free tools › Mailto Link Generator

Mailto Link Generator

Create a link that opens a new email with the recipient, subject and message already filled in. Everything is encoded correctly, including line breaks and special characters.

Your mailto link
Test it

HTML code for your website

How to use the Mailto Link Generator

  1. Enter the address the email should go to (or several, separated by commas).
  2. Optionally add cc, bcc, a subject and a pre-written message.
  3. Copy the link, or copy the ready-made HTML code for your website.
  4. Click Test it to make sure your email app opens with everything filled in.

Where mailto links are useful

A "Contact us" or "Email sales" button on your website that arrives with a clear subject line, so enquiries are easy to sort.

Support pages that pre-fill the information you need, like an order number line in the message.

Newsletters and PDFs: a "Reply to this offer" link that opens a ready-to-send email.

QR codes on flyers or business cards; the QR code generator on this site can turn the same email into a scannable code.

Getting the encoding right

Mailto links break easily: an ampersand, question mark or line break in the subject or message has to be encoded, or the email arrives cut off. The generator encodes everything correctly, including accented letters, and uses the line-break format email apps expect.

Related free tools

Frequently asked questions

What is a mailto link?

A link that starts with mailto: and opens the visitor's email app with a new message. You can pre-fill the recipient, cc, bcc, subject and body.

How do I add line breaks to the body?

Just type them in the message box. The generator converts them to the correct %0D%0A code automatically.

Why doesn't the link do anything for some visitors?

Mailto links open the device's default email app. People who only use webmail without setting a default app may see nothing happen, so show the email address as text too.

Is there a length limit?

Keep links under about 2,000 characters. Some browsers and email apps cut off longer ones.

Can I add an attachment to a mailto link?

No. Mailto links can't attach files; link to the file in the message instead.

Can I send to several people?

Yes. Separate addresses with commas in the To, Cc or Bcc boxes.