Next-Gen App & Browser Testing Cloud
Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Build an RFC 6068 encoded mailto link with cc, bcc, subject, and body, then copy it as a URL, HTML, or Markdown link.
Input
Separate multiple addresses with commas, semicolons, or new lines.
A mailto link generator is a free online tool that builds a mailto: URL from recipients, cc, bcc, subject, and body fields. It percent-encodes every value to the rules in RFC 6068, so a single click opens a pre-filled draft in the reader's default email app.
Hand-writing these links is error prone, because one unencoded space, ampersand, or line break can cut off the subject or body. This generator by TestMu AI also returns ready-to-paste HTML and Markdown versions of the link. For regular web links with target and rel options, use the Hyperlink Generator.
A mailto link follows the syntax mailto:to?field=value&field=value defined in RFC 6068 Section 2. Recipient addresses come right after mailto: and are separated by commas, while cc, bcc, subject, and body are added as fields joined with &. Here is what the generator does with each part:
For example, To support@example.com, Subject Bug report, and a two-line body of Hi team and Steps attached produce this link:
mailto:support@example.com?subject=Bug%20report&body=Hi%20team%0D%0ASteps%20attachedYou only need the recipient addresses and the message you want to pre-fill. Follow these steps:
All processing happens in your browser. No data is uploaded, so internal addresses and draft text stay on your device.
RFC 6068 Section 2 requires percent-encoding for characters that are not allowed in a URI, for the percent sign itself, and for reserved characters such as ?, #, &, ;, and =. The table shows how this generator encodes the characters that most often break a mailto link:
| Character | Encoded as | Why it matters |
|---|---|---|
| Space | %20 | RFC 6068 Section 5 says spaces should be encoded as %20 |
| Line break in the body | %0D%0A | RFC 6068 Section 5 requires line breaks to use %0D%0A |
| & | %26 | Left as is, it starts a new field and cuts off the text |
| ? | %3F | Left as is, it can be read as the start of the field list |
| = | %3D | It separates field names from values |
| # | %23 | Left as is, it starts a URI fragment and the rest of the link is dropped |
| % | %25 | It stops a literal percent sign from being read as an escape |
| @ inside an address | @ | RFC 6068 lets @ stay unencoded in addresses |
A mailto link fits anywhere a visitor should reach a specific inbox without a contact form. Common uses include:
Need to encode a value for a regular URL instead? The URL Encoder handles query strings, and HTML Escape escapes text for markup. Teams can record these link checks as test cases in Test Manager.
A line break in a mailto link body is written as %0D%0A, the encoded carriage return and line feed that RFC 6068 Section 5 requires. Two of them in a row create a blank line. In the Mailto Link Generator, press Enter in the Body field and each new line is converted to %0D%0A automatically.
Yes, a mailto link can list several recipients by separating the addresses with commas, such as mailto:a@example.com,b@example.com. The cc and bcc fields accept comma-separated lists the same way. The Mailto Link Generator also accepts semicolons or new lines between addresses and converts them to commas.
No, a mailto link cannot attach files, because RFC 6068 defines header fields plus a body field meant for the first text/plain part of the message. There is no standard attachment field, so the reader has to attach files manually after the draft opens in their email app.
No, clicking a mailto link only opens a pre-filled draft, and RFC 6068 Section 7 says a mail client should not send a message from a mailto URI without first showing the user the full message. The reader can still edit the recipients, subject, and body before pressing send.
A mailto link opens whichever app the device or browser has registered for the mailto scheme. If no default email app is set, or the browser passes mailto links to a webmail site the user is not signed in to, no usable draft appears. Setting a default email app on the device usually fixes it.
To create a mailto link in HTML, put the mailto URL in the href attribute of an a element, for example <a href="mailto:team@example.com">Email us</a>. MDN documents this pattern for links that open a new message in the reader's email program. The HTML Link output of this generator also escapes & as & inside the attribute.
Yes, paste the existing mailto link into the Import Existing Link field of the Mailto Link Generator and click Import. The tool decodes the To, Cc, Bcc, Subject, and Body values into editable fields, so you can change the message and copy a freshly encoded link.
The Mailto Link Generator by TestMu AI is free, with no signup or usage limit. All processing happens in your browser and no data is uploaded, so recipient addresses, subject lines, and message text stay on your device while you build or import a mailto link.
Did you find this page helpful?
TestMu AI forEnterprise
Get access to solutions built on Enterprise
grade security, privacy, & compliance