Mailto Link Generator
Our free mailto link generator creates perfectly formatted email links that open your visitors' default email clients with pre-filled information. Simply enter the recipient's email address and optionally add CC recipients, BCC addresses, a subject line, and message body.
The tool generates both the raw mailto URL and complete HTML code, properly encoding all special characters and line breaks for reliable functionality across all email clients and browsers. Perfect for contact pages, support links, feedback forms, or any website where you want to make it easy for visitors to send you email. Test your link directly in the tool, then copy the code and paste it wherever you need to.
Generate Mailto Links
Fill in the fields below to generate a mailto link. When clicked, it will open the user's default email client with pre-filled information.
Frequently Asked Questions
What is a mailto link?
A mailto link is a special HTML hyperlink that, when clicked, opens the user's default email program (like Gmail, Outlook, or Apple Mail) with a new email composition window. The link can pre-fill the recipient's email address, subject line, CC/BCC recipients, and even the message body, making it easier for website visitors to contact you without manually entering information.
How do I use the Mailto Link Generator?
Enter the recipient's email address in the "To Email Address" field (required), then optionally fill in CC, BCC, subject line, and message body fields. Click "Generate Mailto Link" to create your link. You'll see both the raw mailto URL and the HTML code. Use "Copy Link" to copy just the mailto URL, or "Copy as HTML" to copy the complete anchor tag ready to paste into your website's HTML.
What's the difference between the Mailto Link and HTML Code outputs?
The "Mailto Link" output shows just the URL (starting with "mailto:") which you can use as the href attribute in an anchor tag or button. The "HTML Code" output provides a complete, ready-to-use HTML anchor tag like '<a href="mailto:...">[email protected]</a>' that you can paste directly into your website's HTML without any modifications.
Can I add multiple CC or BCC recipients?
Yes! Simply separate multiple email addresses with commas in the CC or BCC fields. For example: "[email protected], [email protected], [email protected]". The tool will properly encode all addresses so they work correctly when the email client opens.
What happens when someone clicks a mailto link?
When a visitor clicks a mailto link, their default email application opens automatically with a new email composition window. Any information you specified (recipient, subject, CC, BCC, message body) will be pre-filled in the appropriate fields. The visitor can then modify the email if needed and send it. Note that the visitor must have an email client configured on their device for mailto links to work.
Does the message body support line breaks and special characters?
Yes! The tool automatically encodes all special characters, spaces, and line breaks so they display correctly in email clients. You can write multi-line messages in the body field, and they'll appear properly formatted when the email client opens. Special characters like &, ?, and # are automatically URL-encoded for compatibility.
How do I test if my mailto link works correctly?
After generating your link, look for the yellow "Test Your Link" section. Click the "Click here to test the mailto link" button, and your default email client will open with all the pre-filled information. This lets you verify everything appears correctly before adding the link to your website. Make sure you have an email client configured on your device for testing.
Why isn't my mailto link working?
Common issues include: the visitor doesn't have an email client configured (many people only use webmail), the browser or security software is blocking mailto links, or there are unencoded special characters in the link. Always test your links before deploying them. If you're experiencing issues, try testing in a different browser or email client to isolate the problem.
Can I customize the link text that appears on my website?
Yes! In the HTML code output, you'll see '<a href="mailto:...">[email protected]</a>'. The text between the '>' and '</a>' is what visitors see on your website. You can change "[email protected]" to any text you want, like "Contact Us," "Email Support," or "Send Feedback." Just modify the link text while keeping the href attribute unchanged.
Do mailto links work in all browsers?
Yes, mailto links are part of the HTML standard and work in all modern browsers including Chrome, Firefox, Safari, Edge, and mobile browsers. However, the user experience depends on whether the visitor has an email client installed and configured. On systems without email clients, browsers may ask the user to set up an email application or may not respond to the link.
How do I add a mailto link to WordPress, Wix, or Squarespace?
In most website builders and CMS platforms, you can add mailto links by: selecting text or a button, clicking the link/hyperlink button in the editor, and pasting your mailto link in the URL field. In WordPress's block editor, use the link button and paste the mailto URL. In Wix or Squarespace, select an element, choose "Link," and paste the mailto link. The HTML code output from this tool can be added directly if your platform allows HTML editing.