Mailto Link Generator
Build a perfectly URL-encoded mailto: link with pre-filled To, CC, BCC, Subject, and Body. Paste it into any website, email template, or button.
Email Parameters
Fill in the email fields and click Generate Link to create your mailto URL.
What is a Mailto Link?
A mailto: link is a standard HTML hyperlink that instructs the browser to open the user's default email client (Gmail, Outlook, Apple Mail, Thunderbird, etc.) and pre-populate a new compose window with your specified fields. It's the simplest way to add a "Contact Us" button to any website without needing a backend server.
Why URL Encoding Matters
Without proper encoding, special characters like spaces, line breaks, ampersands, and question marks will completely break a mailto link. For example, a space must become %20, and a newline becomes %0A. Our generator automatically applies strict URL encoding to the Subject and Body fields so your links work flawlessly across all browsers.
How to Generate a Mailto URL
Enter the recipient email address, subject line, and the body of your message. You can also add CC and BCC recipients. As you type, the tool generates a raw mailto URL and a ready-to-use HTML anchor tag snippet. Copy the HTML snippet and paste it directly into your website's source code.
Pros and Cons
| ✅ Advantages | ⚠️ Limitations |
|---|---|
| Requires zero backend coding, servers, or form processors | Exposes your email address to spambots scraping the website |
| Opens in the user's familiar, native email client automatically | Fails if the user uses webmail but hasn't set it as their OS default handler |
| Allows pre-filling complex templates (CC, BCC, Subject, Body) | Cannot enforce required fields like a traditional web form can |
| Extremely fast to implement in static HTML or email signatures | URL length limits in older browsers can truncate very long message bodies |
Top Use Cases & Insights
Email Signatures
Create a "Refer a Friend" or "Contact Support" button in your email signature that automatically sets the subject line for easy sorting.
Static Websites
For simple portfolio or landing pages, a mailto link is the fastest way to add a "Hire Me" button without managing a backend server.
Marketing Campaigns
Include an "RSVP via Email" link in newsletters that pre-fills the subject with "Yes, I will attend" to lower the barrier to response.
Internal Support Portals
Generate a link for employees to report IT issues, automatically CCing the department head and pre-filling a troubleshooting template in the body.
Frequently Asked Questions
A mailto: link is a special hyperlink that opens the visitor's default email client with pre-filled fields (To, CC, BCC, Subject, and Body). When placed on a website or in a button, clicking it immediately composes a new email without needing to copy-paste the address.
Email clients and browsers parse the URL strictly. Characters like spaces, ampersands (&), question marks (?), and line breaks must be URL-encoded. For example, a space becomes %20, a line break becomes %0A, and an ampersand becomes %26. Our generator applies encodeURIComponent() to every field automatically, so the link always works correctly.
Yes. Separate multiple email addresses with a comma in the "To", "CC", or "BCC" fields (e.g., alice@company.com,bob@company.com). Most email clients handle comma-separated lists in all mailto fields.
Copy the HTML snippet and paste it anywhere in your webpage. The snippet looks like: <a href="mailto:...">Email Us</a>. You can change the link text ("Email Us") to anything you prefer. The href attribute contains the complete, properly-encoded mailto URL.
Related Free Tools
Manage Your Entire Workforce with BriskPeople
Automate HR processes — payroll, attendance, leave, and performance — all in one platform.
