Mailto link generator
A mailto link opens the visitor's mail app with a draft already filled in. Enter the recipient, subject and body below and the tool encodes every special character for you, so spaces, ampersands and line breaks do not break the link.
Fill in a field above.Fill in a field above.Fill in a field above.Everything you type stays in your browser. Nothing is sent anywhere.
How to use it
- Enter one or more recipients in To. Separate several addresses with commas.
- Add Cc, Bcc, a subject and a body if you want them prefilled. Line breaks in the body are kept.
- Fix anything flagged under the fields, such as a malformed address.
- Copy the plain link, the HTML anchor or the Markdown link.
- Press "Test the link" to check that your mail app opens with the draft you expect.
How the encoding works
RFC 6068 defines the mailto format: addresses come first, then a query string with cc, bcc, subject and body. Anything other than letters, digits, hyphen, underscore, period and tilde is percent-encoded, so a space is %20, an ampersand is %26, a hash is %23 and a line break is %0D%0A.
Use %20 for spaces, never a plus sign. In a mailto link a plus is a literal plus, so a subject written with plus signs shows up with plus signs in the draft. In HTML, write each & between parameters as & inside the href; the HTML output here does that for you.
Limits to know about
A mailto link only prefills a draft. The visitor still presses send from their own mail app, and a device with no mail app set up may do nothing when the link is tapped. Keep the body short: browsers and mail apps cut links off at different lengths, commonly around 2,000 characters.
Publishing an address as a plain mailto link on a public page also exposes it to scrapers. Expect more spam at that address, and route it somewhere your team can sort it quickly instead of one person's inbox.
Questions
How do I add a subject and body to a mailto link?
Put a question mark after the address, then add subject=... and body=... joined with an ampersand. Both values must be percent-encoded, which this tool does for you.
How do I send a mailto link to more than one person?
Separate the addresses with commas in the To field, for example mailto:a@example.com,b@example.com. Cc and Bcc accept comma-separated lists the same way. Use bare addresses: a display name such as Jane <jane@example.com> is not allowed in a mailto link.
How do I put a line break in the body?
Encode it as %0D%0A. Typing a new line in the Body box above does this automatically.
Why does my mailto link show plus signs instead of spaces?
Plus-for-space is a form-encoding rule, not a mailto rule. Mailto links need %20 for spaces, which is what this generator outputs.
Does a mailto link work on every device?
It works wherever a mail app or a web mail handler is registered. If none is set up, the tap does nothing, so consider showing the plain address beside the link too.
See also
More free email tools
Updated .
