Mailto Link Generator
Build a mailto: link with subject, body, cc and bcc, encoded so nothing truncates.
Processing: This tool runs entirely in your browser. Your input and any file you open stay on your device — nothing is uploaded to a server.
How to use the mailto link generator
- Fill in the address and any fields.
- Test the link.
- Copy it into your page.
About this tool
A mailto link opens the visitor's mail client with fields already filled in. Writing one by hand works until the subject contains an ampersand — at which point everything after it is read as a new parameter and the subject truncates. That single failure is the reason this tool exists; everything after the address is percent-encoded here.
Line breaks in the body are encoded too, which is what lets a mailto link pre-fill a multi-line message rather than one long run of text.
Worth knowing before you rely on one. A mailto link opens whatever the visitor has configured as their mail client, which on a machine with none set up may be nothing at all. Long bodies are also truncated by some clients. For anything essential, show the address as text alongside the link, so someone can copy it.
Putting an address in a mailto link does expose it to address-harvesting crawlers. That is a genuine trade-off rather than a reason not to do it, and obfuscation tricks mostly inconvenience real visitors more than they inconvenience scrapers.
Common uses
- A contact link with the subject pre-filled.
- A support link that includes a reference number.
- A pre-written message for people to send.
Frequently asked questions
- Why does my subject get cut off?
- An unencoded ampersand starts a new parameter. Encoding fixes it, which happens automatically here.
- Can I include line breaks in the body?
- Yes. They are encoded so the mail client receives a multi-line message rather than one long line.
- What if the visitor has no mail client?
- The link does nothing, which is why it is worth showing the address as text alongside it so it can be copied.
Related tools
Email Address Extractor
Pull every email address out of a block of text, deduplicated if you want.
Email List Cleaner
Tidy a list of email addresses: deduplicate, normalise case and find malformed entries.
QR Code Generator
Create QR codes for links, WiFi networks, contacts, email, SMS or plain text.
URL Builder
Build a URL from a base address and named parameters, with encoding handled for you.