Mailto Link Generator
Create clickable mailto email links with To, CC, BCC, Subject and Body. Get the HTML code, raw link, or test it directly. 100% free & browser-based.
What is a Mailto Link?
A mailto link is a special type of hyperlink that, when clicked, automatically opens the user's default email client,such as Gmail, Outlook, Apple Mail, or Thunderbird,with one or more fields already pre-filled. Instead of a regular URL that starts with https://, a mailto link begins with the mailto: protocol. This tells the browser to hand the link off to an email application rather than loading a webpage.
The basic syntax of a mailto link looks like this: mailto:hello@example.com. You can also attach optional parameters to pre-fill the subject line, body text, CC recipients, and BCC recipients. A full example would be: mailto:hello@example.com?subject=Hello&body=Hi+there,+I+wanted+to+reach+out.
When a visitor clicks this kind of link on your website, their email client opens with the To address, subject, and body message already filled in. This makes it extremely easy for people to contact you without having to manually type out your email address or compose an email from scratch.
How to Use This Mailto Link Generator
Using our free Mailto Link Generator is simple and requires no technical knowledge. Just fill in the fields provided above,the To address is required, while Subject, Body, CC, and BCC are all optional. As you type in any field, the tool instantly generates your mailto link in real time without you needing to click any button.
Once your link is generated, you have three options available through the tabs shown:
-
HTML Code: This gives you a complete, ready-to-use HTML anchor tag like
<a href="mailto:...">Send us an Email</a>. Simply copy this and paste it directly into your website's HTML code wherever you want the clickable link to appear. - Raw mailto: Link: This gives you just the raw mailto URL itself, which you can use in applications, markdown files, PDF editors, email signature builders, or any platform that accepts hyperlinks.
- Test Link: This lets you click the generated link directly in your browser to test it and make sure it opens your email client with the correct details pre-filled before you use it anywhere.
You can also customize the Link Text field to change what the clickable text says in the HTML version. By default it says "Send us an Email" but you can change it to anything,"Contact Us", "Get in Touch", "Email Support", or any other label that suits your website.
Where Are Mailto Links Used?
Mailto links are one of the most widely used contact mechanisms on the web and appear in many different contexts across websites, documents, and digital communications.
- Website contact buttons: "Email Us" or "Contact Support" buttons on business websites almost always use mailto links so visitors can reach out with a single click.
- Email signatures: Clickable email addresses in professional email signatures are typically formatted as mailto links, making it easy for recipients to reply or forward your contact to others.
- HTML newsletters and campaigns: Email marketers use mailto links for reply CTAs or feedback request links, pre-filling the subject and body to make responses effortless.
- Digital business cards and PDFs: Any downloadable document or digital brochure with a clickable "contact us" email address is using a mailto link behind the scenes.
- Landing pages and sales pages: Quick-contact CTAs on high-converting landing pages often use mailto links to reduce friction for potential customers.
- Developer documentation and GitHub READMEs: Open source projects frequently use mailto links for bug reports, support requests, or contribution inquiries.
- Forum posts and community pages: Many online communities allow mailto links in user profiles or posts to enable direct member-to-member communication.
What Do CC and BCC Mean?
CC stands for Carbon Copy. When you add someone in the CC field, they receive a copy of the email and all other recipients,including the main To recipient,can see that this person was included. CC is typically used when you want to keep someone in the loop without them being the main recipient of the message.
BCC stands for Blind Carbon Copy. When you add someone in the BCC field, they also receive a copy of the email, but their address is completely hidden from all other recipients. Neither the To recipient nor any CC recipients will know that the BCC person received the email. BCC is commonly used for mass emails, privacy-sensitive communications, or when you want to loop in a manager or colleague discreetly.
In a mailto link, you can include CC and BCC addresses as URL parameters, and they will be automatically populated in the email client when the link is clicked. This is useful if you always want a copy of contact form submissions sent to a secondary inbox, for example.
How the Subject and Body Parameters Work
The subject and body fields in a mailto link are passed as URL query parameters. Spaces are encoded as %20 or + signs, and special characters like line breaks, commas, and quotes are percent-encoded so they are safely transmitted as part of the URL. Our generator handles all of this encoding for you automatically,you just type your message naturally and the tool produces a perfectly formatted, URL-safe mailto link behind the scenes.
Keep in mind that very long body texts can result in extremely long URLs. While there is no strict official limit on mailto URL length, some older email clients may truncate very long URLs. For brief pre-filled messages, mailto links work perfectly. For longer or more complex contact scenarios, a proper contact form with server-side processing is often the better choice.
Are Mailto Links Safe?
Mailto links themselves are a completely standard, safe, and widely supported web technology. Every modern browser handles the mailto: protocol natively. However, there is one important privacy consideration: if you place a mailto link on a publicly accessible webpage, automated spam bots that crawl the web for email addresses can detect and harvest your email address from the HTML source code. This can lead to an increase in spam emails over time.
To reduce this risk, you can use methods such as email obfuscation (scrambling the address in the HTML so bots cannot read it easily), using a contact form instead of a direct mailto link, or using JavaScript to construct the mailto link dynamically at runtime so it is not visible in the static HTML. For internal pages, intranets, or private documents where public crawling is not a concern, mailto links are perfectly fine to use directly.
Mailto Link vs. Contact Form: Which Should You Use?
Both mailto links and contact forms serve the same basic purpose,letting visitors contact you,but they work differently and suit different situations. A mailto link is instant to set up, requires no server-side code, and works entirely in the browser. It is ideal for personal websites, portfolios, small business pages, email signatures, and documents where simplicity is the priority.
A contact form, on the other hand, keeps your email address hidden from the public, gives you more control over the data you collect, allows for file attachments and custom fields, and does not depend on the visitor having an email client configured on their device. For professional business websites that receive a high volume of enquiries, a contact form is generally the better long-term solution. For quick setups and straightforward contact needs, a mailto link generated with this tool is fast, free, and fully functional.