Skip to content

Mailto Link Generator

Create mailto email links with subject, body, CC and BCC, and hide them from spam bots.

HTML code
Mailto URL
Preview

Clicking the link opens the visitor's default email app with everything filled in.

Processing and privacy

Processing varies by tool. Check the instructions for local processing, server requests, external services and any file or request limits before entering sensitive information.

Read the privacy policy

Share this tool

Found it useful? Send it to a friend or teammate.

Rate this tool

0.0

0 ratings

  • 5 stars 0
  • 4 stars 0
  • 3 stars 0
  • 2 stars 0
  • 1 star 0

Click a star to rate this tool

Clear instructions

Find steps, examples and limitations below.

Use online

Open the tool in a supported web browser.

Free to use

No sign-up required. Tool-specific limits may apply.

How to use the Mailto Link Generator

The mailto link generator builds an email link that opens the visitor's email app with everything filled in: the recipients, CC and BCC, subject and message body. Special characters and line breaks are encoded correctly so the email arrives exactly as intended, and an optional setting encodes the address as HTML entities to make it harder for spam bots to harvest.

  1. 1 Enter the recipient addresses, and CC or BCC if needed.
  2. 2 Add a subject, message and the link text.
  3. 3 Copy the HTML link or the mailto URL, and test it in the preview.

Example and practical tips

A "Request a quote" button can open an email to sales@example.com with the subject "Quote request" and a message template the customer only needs to complete.

Example: an email link with a subject

For hello@example.com and the subject Project quote, the URL is mailto:hello@example.com?subject=Project%20quote. Paste the generated HTML into a page to create a clickable link; use the URL output when another editor supplies its own link field.

Encoding and HTML attributes

Spaces and reserved characters in the subject and body need URL encoding. An ampersand that separates URL parameters also needs HTML escaping inside an HTML attribute. Use the appropriate output instead of manually editing the encoded string.

Bcc is visible in page source

Bcc recipients are hidden from other recipients by the email client, but addresses embedded in a website link are visible to anyone who inspects that link. Do not place confidential addresses in a public mailto URL.

Test with the visitor email app

A mailto link opens an installed or configured email handler; it does not send mail itself. Check the recipient, subject and body in a draft before publishing. HTML entity encoding is not reliable protection against address harvesting.

Further reading

Frequently asked questions

What is a mailto link?

A link starting with mailto: that opens the visitor's default email program with a new message instead of loading a web page.

Does hiding the address stop all spam?

Encoding the address as HTML entities stops simple scrapers, but determined bots can decode it. A contact form offers stronger protection.

Why are spaces shown as %20?

URLs cannot contain spaces or line breaks, so they are percent-encoded. Email apps decode them back to normal text.

  • How to Use Mailto Link Generator

    Create a mailto email link with subject, message, CC and BCC, encoded correctly, and optionally hidden from spam bots. Copy the HTML or URL. Free generator.

Browse all guides

Report an issue

Something broken or not quite right? Tell us and we will look into it.

Accessibility Menu

Personalize your experience. Open with Ctrl+U (Option+U on Mac). Preferences stay in this browser when storage is available.

Move / Hide Widget

Restore at any time with Ctrl+U (Option+U on Mac).

Accessibility statement and help