Mailto Link Generator

The mailto link generator creates an email link that opens the visitor's email app with everything filled in: the recipient, CC and BCC addresses, the subject and the message body. Copy the plain mailto URL, a ready-made HTML link for your website or a Markdown link for docs and READMEs. All special characters, line breaks and accents are encoded correctly.

  • 100% free
  • No sign-up
  • Private & local
  • Works on mobile

Test the link

Private by design: every calculation runs locally in your browser. Nothing you type is sent to a server or stored by us.

What Is a Mailto Link?

A mailto link is a hyperlink that starts with mailto: instead of https://. When someone clicks it, their device opens the default email program – Outlook, Apple Mail, Gmail on Android, Thunderbird and so on – with a new message ready to send. A basic link only sets the recipient, but the mailto format (defined in the internet standard RFC 6068) also supports cc, bcc, subject and body parameters, so you can prepare the whole email in advance.

How to Create a Mailto Link

  1. Enter the recipient address. For several recipients, separate them with commas.
  2. Add CC or BCC addresses if you need them.
  3. Write a subject and message. Line breaks are kept.
  4. Copy the link, HTML or Markdown and paste it into your website, email signature, document or app.
  5. Click "Test the link" to check it opens your email app as expected.

Example

A link to hello@example.com with the subject "Question about your website" becomes:

mailto:hello@example.com?subject=Question%20about%20your%20website

Spaces become %20, line breaks become %0D%0A, and characters such as &, ? and # are encoded so they don't break the link. Typing these codes by hand is error-prone, which is exactly what this generator avoids.

Where to Use Mailto Links

  • Contact pages and footers: a "Email us" button that works on every device without a form.
  • Support and feedback: pre-fill the subject, such as "Bug report", so messages are easy to sort.
  • Job applications and quotes: include a short template in the body so people send the details you need.
  • Email signatures, PDFs and documents: make your address clickable.
  • QR codes: turn the link into a scannable code with the QR code generator (choose the email type).

Limitations and Tips

  • Visitors need an email app. On computers without a configured mail program, clicking a mailto link may do nothing. Show the address as text too, so people can copy it.
  • Keep the body short. Some email programs cut off very long links (roughly 2,000 characters), and attachments are not supported.
  • Spam bots harvest addresses from mailto links in web pages. If spam is a concern, consider a contact form or an address that you can filter easily.
  • Formatting is plain text. The body cannot contain bold text, links with labels or images.
  • BCC isn't supported everywhere. Most desktop and mobile apps honour it, but a few webmail handlers ignore it.

Mailto Parameters at a Glance

ParameterExampleWhat it does
(address)mailto:a@example.com,b@example.comOne or more recipients, separated by commas
cc?cc=boss@example.comVisible copy recipients
bcc&bcc=archive@example.comHidden copy recipients
subject&subject=Order%20questionThe subject line
body&body=Hello%0D%0AThe message text, with encoded line breaks

The first parameter always starts with ? and every further one with &. Inside HTML, the & must itself be written as & – the HTML code box above does that automatically, so the link stays valid in strict HTML validators and email templates.

Making the Link Look Like a Button

A mailto link is a normal link, so you can style it like any other. In most website builders and CMSs, such as WordPress, Wix or Squarespace, add a button block and paste the mailto URL as its link. In your own HTML, add a class to the <a> tag and style it with CSS. In Markdown files such as a GitHub README, paste the Markdown version – it displays as a clickable link with your chosen text.

Tip: test your link on both a phone and a computer before publishing it. Desktop email programs and phone apps sometimes treat special characters, long bodies and BCC differently, and a quick test catches problems early.

Frequently Asked Questions

How do I add a subject to a mailto link?

Add ?subject= followed by the encoded subject, for example mailto:me@example.com?subject=Hello%20there. The generator does this for you.

Can I send to several people?

Yes. Separate addresses with commas in the To, CC or BCC fields.

How do I add line breaks to the body?

Just press Enter in the message box. The generator encodes each line break as %0D%0A.

Can a mailto link include an attachment?

No. The mailto standard doesn't support attachments for security reasons.

Why does my link open the wrong email app?

The link opens whichever app is set as the default for email on that device. This can be changed in the device or browser settings.

Are my addresses stored?

No. The link is built in your browser, and nothing is saved or sent.