🔗 Mailto Link Generator
Build a mailto: link with a pre-filled subject, body, CC and BCC — handy for "Contact us" buttons and email templates.
How the link is assembled
The generator runs in your browser and sends nothing anywhere - no DNS lookup, no check that the address exists. It percent-encodes every field, then appends the non-empty ones as query parameters in the order cc, bcc, subject, body:
mailto:hello%40example.com?subject=Question%20about%20your%20service
&body=Hi%20there%2C%0A%0AI%27d%20like%20to%20ask%20about...
The encoding is what makes it work: a raw space or line break in an
href breaks the link. %20 is a space, %0A a
newline, %40 the @ sign. The tool also prints a ready
<a href="...">Email Us</a> snippet, and the To box is the only
one that must be filled.
What mail clients do with it
- Several addresses go in one field, separated by commas:
a@example.com,b@example.comin the CC box. Support for multiple recipients in the To field itself is patchy across clients. - BCC is the least reliable parameter. Some webmail clients drop it silently as an anti-abuse measure, so never rely on it for anything that matters.
- Length is not unlimited. Long bodies get truncated by some clients and by older Windows URL handling. Keep a prefilled body to a few short lines rather than a whole template.
Frequently asked questions
How do I add a subject line to a mailto link?
Put ?subject= after the address, with spaces written as
%20. Every later parameter is joined with &, so a
subject and body read ?subject=Hello&body=Hi%20there.
How do I put a line break in the body?
Use %0A. Two of them give a blank line between paragraphs. Typing a
real Enter into the body box here produces exactly that in the generated link.
Will a mailto link get my address scraped by spammers?
It can. The address sits in plain text in your page source, and harvesters read that. A contact form avoids it; obfuscation tricks mostly do not, since scrapers run the same JavaScript your visitors do.