Hero Background

Next-Gen App & Browser Testing Cloud

Trusted by 2 Mn+ QAs & Devs to accelerate their release cycles

Next-Gen App & Browser Testing Cloud

Free Mailto Link Generator Online

Build an RFC 6068 encoded mailto link with cc, bcc, subject, and body, then copy it as a URL, HTML, or Markdown link.

Categories

...

Verify Before You Deploy

Terminal-native web and mobile automation.

Try Kane CLI
...

Write Tests in Plain English with KaneAI

Create, debug, and evolve tests using natural language.

Try for free
...

3000+ Browsers. One Platform.

See exactly how your site performs everywhere.

Try it free

Input

Separate multiple addresses with commas, semicolons, or new lines.

Output

No link generated yetOpen in Email App

What Is a Mailto Link Generator?

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.

How Does a Mailto Link Work?

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:

  • Recipients: Addresses in To, Cc, and Bcc are split on commas, semicolons, or new lines, checked for a name@domain shape, and joined with commas.
  • Subject and body: Every reserved or unsafe character is percent-encoded, so a space becomes %20 and an ampersand becomes %26.
  • Line breaks: Each new line in the body becomes %0D%0A, the encoded CRLF sequence that RFC 6068 Section 5 requires.
  • Output formats: The finished URL is also wrapped as an HTML anchor, with & escaped as &, and as a Markdown link.

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%20attached

How Do You Use the Mailto Link Generator?

You only need the recipient addresses and the message you want to pre-fill. Follow these steps:

  • Add recipients: Type one or more addresses in To, and optionally Cc and Bcc, separated by commas.
  • Write the subject and body: Enter the subject line and message text, and press Enter in the body wherever you want a new line.
  • Set the link text: Change the Link Text field to the clickable words used in the HTML and Markdown output.
  • Generate the link: With Auto Update on, the outputs refresh as you type; otherwise click Generate Mailto Link.
  • Copy and test: Copy the Mailto URL, HTML Link, or Markdown Link, then click Open in Email App to check the draft.
  • Edit an existing link: Paste a mailto link into Import Existing Link and click Import to load its fields for editing.

All processing happens in your browser. No data is uploaded, so internal addresses and draft text stay on your device.

Kane CLI - Testing Agent in Your Terminal

Which Characters Need Encoding in a Mailto Link?

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:

CharacterEncoded asWhy it matters
Space%20RFC 6068 Section 5 says spaces should be encoded as %20
Line break in the body%0D%0ARFC 6068 Section 5 requires line breaks to use %0D%0A
&%26Left as is, it starts a new field and cuts off the text
?%3FLeft as is, it can be read as the start of the field list
=%3DIt separates field names from values
#%23Left as is, it starts a URI fragment and the rest of the link is dropped
%%25It stops a literal percent sign from being read as an escape
@ inside an address@RFC 6068 lets @ stay unencoded in addresses

What Are the Use Cases of a Mailto Link Generator?

A mailto link fits anywhere a visitor should reach a specific inbox without a contact form. Common uses include:

  • Support and bug-report buttons: Pre-fill a subject and a body template so users send the details your team needs.
  • Email signatures and newsletters: Add a reply link with a set subject, and confirm the address first with the Email Checker.
  • Sales and feedback CTAs: Point each button at the right team and copy a shared inbox with cc or bcc.
  • Contact list reuse: Pull addresses out of existing text with the Email Extractor and paste them into the To field.
  • QA test fixtures: Generate links with multiple recipients, special characters, and multi-line bodies to check how your site's email links behave, alongside the wider checks in this email testing guide.
  • Cross-device checks: Mail apps handle mailto links differently, so open the link on phones and tablets with TestMu AI Real Device Cloud, which offers 10,000+ real devices.

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.

Frequently Asked Questions (FAQs)

How do I add a line break in a mailto link body?

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.

Can a mailto link have multiple recipients?

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.

Can a mailto link include an attachment?

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.

Does clicking a mailto link send the email automatically?

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.

Why is my mailto link not opening an email app?

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.

How do I create a mailto link in HTML?

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 &amp; inside the attribute.

Can I edit a mailto link I already have?

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.

Is the Mailto Link Generator free and private?

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.

KaneAI - GenAI-Native Testing Agent

Did you find this page helpful?

More Tools

Related Tools
AI Agent Tools
Code Formatters & Minifiers

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests