Mailto Link Generator

Build a mailto: link with recipients, cc, bcc, subject and body, then copy the URL or the ready-to-paste HTML anchor.

Enter an email address to build your mailto link.
<a href="mailto:…">Email us</a>
No uploads. Your files stay on your device.

Free forever, no sign-up, no cookies. Buy me a coffee

How it works

A mailto link is an ordinary web link that opens the visitor's email app with the message already filled in. Type the recipient, an optional Cc, Bcc, subject and body, and the link is rebuilt as you type: spaces become %20, line breaks become %0A and every other special character is percent-encoded, which is exactly what stops subjects with commas, ampersands or accents from being cut off in Outlook, Gmail and Apple Mail. You get both the raw mailto: URL and a ready-to-paste HTML anchor with the ampersands escaped as &amp; so it stays valid markup. Keep the whole link under about 2,000 characters — older mail clients truncate longer ones. Everything is built in your browser with plain JavaScript, so no address, subject or draft message ever leaves your device.

Frequently asked questions

How do I create a mailto link in HTML?

Fill in the recipient and, optionally, Cc, Bcc, a subject and a message body — the tool builds both the raw mailto: URL and a complete HTML anchor such as <a href="mailto:you@example.com?subject=Hello">Email us</a>. Copy the snippet straight into your page, or download it as an .html file. The link text is editable, so the anchor already says what you want it to say.

How do you add a subject and body to a mailto link?

Everything after the address goes in a query string: the first parameter starts with ? and the rest are joined with &, for example mailto:you@example.com?subject=Hello%20there&body=Hi%20team. Values must be percent-encoded — this tool encodes spaces as %20, line breaks as %0A and characters like commas, ampersands and accents automatically, which is what stops Outlook and Gmail from cutting the subject short.

Why is my mailto link not working in Gmail or Outlook?

The usual causes are an unencoded space or & in the subject or body, a raw & inside an HTML href (it must be written as &amp;), or a link longer than about 2,000 characters, which some clients truncate. This generator encodes the values, escapes the ampersands in the HTML snippet and shows a live character count that warns you past 2,000. Note that mailto cannot add attachments or HTML formatting — only plain text — and it opens whichever mail app the visitor has set as default.

Report a bug