Mailto Link Generator and Decoder
Build a mailto link with recipients, CC, BCC, subject and body, encoded so mail apps read it as you wrote it. Or paste a link that misbehaves and see what is wrong with it. Copy it as a link, HTML, an email button or Markdown. Free, in your browser.
The generator needs JavaScript.
One Link, Five Fields
A mailto link opens the reader’s mail app with a new message already filled in. The addresses come right after mailto:, separated by commas. Everything else follows a question mark as name=value pairs joined with &: cc, bcc, subject and body.
The values can’t hold spaces, line breaks or characters such as & and # as they are, so each is written as a percent code. That encoding is where most hand-written links go wrong, and it is what the generator does for you as you type.
mailto:sales@example.com
?cc=anna.berg@example.com
&subject=Pricing%20%26%20demo
&body=Hi%20team%2C%0D%0A%0D%0APlease…Make a Mailto Link in Three Steps
From a few fields to a link you can put in an email, a page or a chat.
- 1
Fill In the Fields
The address, and if you like CC, BCC, a subject and a body with line breaks.
- 2
Copy the Format
The bare link, an HTML link, an email button or Markdown, each with its own Copy button.
- 3
Test It
Test the Link opens your mail app with everything filled in. Nothing is sent until you press Send.
The Encoding Rules, Applied for You
What RFC 6068, the standard for mailto links, asks for, and what the generator writes.
- Spaces as %20. Never +: in a mailto link a + is a plus sign, and mail apps such as Outlook and Thunderbird show it as one.
- Line breaks as %0D%0A. Each line break in the body, two for an empty line between paragraphs.
- & ? # = % encoded. Inside a subject or body they would end the field or the link, so they become %26, %3F, %23, %3D and %25.
- Umlauts, accents and emoji in UTF-8. “für” becomes f%C3%BCr, which every current mail app reads.
- Several addresses with commas. In To, CC and BCC alike. Display names such as Anna Berg <anna@example.com> don’t belong in a mailto link, so only the address is kept.
- & in HTML. In an href the & between fields is written &, which the HTML link and the email button do.
Where Mailto Links Break
Four causes behind most “the link does nothing” and “the text looks wrong” reports.
- Length. The standard sets no limit, but older Outlook versions refused links once the 2,084th character was an encoded one (Microsoft raised the limit to 8,192 in later builds), and some browsers and mail apps cut long links. The generator warns from 1,900 characters.
- No mail app set. A mailto link opens the app the device has chosen for email. If that is none, or one the reader never uses, nothing useful happens. People who use Gmail in the browser can let it open mailto links.
- Plus signs instead of spaces. Web forms and some URL encoders write + for a space. Copied into a mailto link, the + can show up in the subject and body. The decoder flags it and writes a cleaned link.
- Unencoded & or #. “Pricing & demo” as plain text ends the subject at “Pricing”; a # ends the whole link for the browser. The decoder shows where your text was cut.
Mailto Links in Pardot and Marketing Cloud Next Emails
In a campaign email, a mailto link suits a reply-style call to action: “Reply with two dates”, “Ask the speaker a question”. The reader’s mail app opens with your address and subject filled in, and the answer lands in your inbox.
Email tools count clicks by sending http and https links through their own redirect. A mailto link has no web page behind it, so tracking it is unreliable: HubSpot says it doesn’t track mailto clicks, and Adobe Marketo advises switching tracking off for them because a tracked mailto link can fail to open the mail app. We found no Salesforce documentation on how Account Engagement (Pardot) or Marketing Cloud Next handle them, so test before you rely on them.
- Send yourself a test with tracking on and click the link in the mail apps your readers use
- Check whether the click shows up in the email’s report before you plan on that number
- Need the response on the prospect record? Link to a form or landing page: a mailto reply reaches an inbox, not your forms
<td align="center" bgcolor="#2563EB"
style="border-radius:6px;padding:12px 24px;">
<a href="mailto:sales@example.com?subject=…"
style="color:#FFFFFF;…">Email us</a>
</td>Mailto Link FAQ
Short answers to what people ask about mailto links.
Why do spaces show up as + in my mailto link?
In a mailto link a + is a plus sign, so the mail app shows it. Spaces have to be written as %20. The + comes from web forms and some URL encoders, which use it for a space. Paste the link into the decoder above: it flags the plus signs and writes a cleaned link.
How do I add a line break in the body of a mailto link?
Write %0D%0A for each line break, and two of them for an empty line between paragraphs. In the generator, press Enter in the body field and it writes them for you. Some mail apps also accept %0A on its own, but %0D%0A is what RFC 6068 asks for.
How do I send to several people, with CC and BCC?
Separate the addresses with commas: mailto:anna@example.com,ben@example.com. CC and BCC follow the question mark, like ?cc=clara@example.com&bcc=david@example.com. Fill in the fields above and the generator puts each in its place.
What is the maximum length of a mailto link?
The standard sets none, but stay under about 2,000 characters. Older Outlook versions failed when the 2,084th character was an encoded one (Microsoft later raised the limit to 8,192), and some browsers and mail apps cut long links. The generator warns from 1,900 characters. For long texts, link to a page instead.
Why does my link break when the subject contains & or #?
An & starts the next field and a # ends the link for the browser, so inside a subject or body they must be written as %26 and %23. The generator does that; the decoder shows where an unencoded & or # cut your text.
Can I track clicks on a mailto link in an email?
Not reliably. Email tools track clicks through a web redirect, which a mailto link doesn’t have: HubSpot says it doesn’t track mailto clicks, and Adobe Marketo advises switching tracking off for them. We found no Salesforce documentation for Account Engagement (Pardot) or Marketing Cloud Next, so send yourself a test first. If you need the response tracked, link to a form.
Why does nothing happen when I click a mailto link?
The device has no mail app set for email links, or one you don’t use. Set your default mail app in the system settings; if you use Gmail in the browser, you can let it open mailto links.
Is what I type sent anywhere?
No. The link is built and decoded in your browser. Nothing is sent or stored, and nothing you type reaches analytics.
More Free Tools
We Make Salesforce Marketing Work for You
Talk to a certified consultant, not a salesperson, and leave the first call knowing your next step.