AnyTool
Your files never leave your device. All processing happens locally in your browser.

How do I create a mailto: link with a subject, body, Cc and Bcc?

Open AnyTool Mailto Link Generator, type the recipient (or several, separated by commas), then add Cc, Bcc, a subject and a plain-text body, and it builds a correctly URL-encoded mailto: link instantly. It also gives you a ready-to-paste HTML link and a styled HTML email button, and a Test button opens the link in your default email app to check it. Everything runs in your browser — no email is sent and nothing is uploaded; it just creates a link.

  • To, Cc and Bcc each accept multiple addresses — separate them with commas
  • Subject and a multi-line plain-text body, with line breaks preserved
  • Values are URL-encoded with encodeURIComponent so the link never breaks
  • Outputs: the raw mailto: link, an HTML <a> link and an HTML email button
  • Test button opens your default mail app · 100% client-side, nothing sent or uploaded

What is

mailto: URI scheme

A mailto: link is a hyperlink using the mailto: URI scheme that opens the visitor&rsquo;s default email client with a pre-filled draft. Its form is mailto:address?subject=…&body=…&cc=…&bcc=…, where multiple recipients are comma-separated and each query value is URL-encoded (spaces become %20, a line break becomes %0D%0A). Clicking it does not send mail — the person reviews the draft and sends it themselves.

Generators

Related terms

URL encodingCc and BccDefault mail clientHTML anchorencodeURIComponent

Frequently Asked Questions

No. A mailto: link only opens the user&rsquo;s default email app with the fields pre-filled; they still review the draft and press send themselves.

A mailto: link never sends mail on its own — it is a hand-off to whatever email client the user has set as their default, opening a new draft with the To, Cc, Bcc, subject and body already filled in. The person sees the draft and chooses to send it, edit it or close it. This tool likewise sends nothing: it only assembles the link in your browser. Because of that, mailto links cannot be used to silently email someone, and they have no way to confirm delivery the way a server-side form would.

Separate addresses with commas in the To, Cc or Bcc field. The To addresses go before the ?, and cc= and bcc= are added as query parameters.

For several recipients, list the addresses separated by commas — for example mailto:a@x.com,b@x.com. Carbon copy and blind copy are added as query parameters, cc= and bcc=, each of which can itself hold a comma-separated list. AnyTool Mailto Link Generator lets you type comma-separated addresses in the To, Cc and Bcc fields and joins them correctly, placing the To recipients before the ? and the cc/bcc parameters after it, all URL-encoded so commas and special characters do not break the link.

Because spaces, line breaks and characters like &, ? and # would otherwise break the URL. They are escaped — a space becomes %20 and a line break %0D%0A.

A mailto: link is a URL, so the subject and body have to follow URL rules. Unencoded spaces, punctuation and especially & or # would prematurely end or corrupt the link, which is the number-one reason mailto links fail. This tool encodes every query value with encodeURIComponent: spaces become %20, line breaks become %0D%0A and reserved characters are escaped, while the @ in addresses is deliberately left intact so clients can still parse them. The result is a link that opens cleanly in any compliant email client.

Only if that webmail service is set as the system or browser default mail handler. Otherwise the link may do nothing or prompt to set up an email account.

Webmail like Gmail or Outlook on the web can catch mailto: links, but only when the user has registered it as their default mail handler — through the browser&rsquo;s protocol-handler prompt or their operating system settings. If no default email client is configured, clicking the link may open nothing or show a prompt to set up email. Behaviour also varies across Chrome, Firefox, Safari and Edge, and pre-filled fields may not always carry over after a login redirect. Because of that, it is good practice to offer an alternative contact method alongside a mailto link.

Detailed Explanation

Mailto link building: in-browser (AnyTool) vs typical online generators
CapabilityAnyToolTypical online generators
RecipientsTo, Cc, Bcc — multiple, comma-separatedOften single To + subject
EncodingencodeURIComponent — line breaks → %0D%0ASometimes partial or broken
Outputsmailto: link + HTML link + HTML buttonUsually link only
Preview / testLive clickable preview + opens your mail appRarely
ValidationWarns on invalid address, empty To, long bodyUsually none
ProcessingRuns in your browserOften server-side
PrivacyNo email sent, nothing uploadedMay log what you type

AnyTool builds the link locally, encodes every value correctly, and never sends an email or uploads anything.