A mailto link is one of the oldest tricks on the web — and one of the most underused. Click it, and your email client opens with the recipient address, subject line, and even body text already filled in. Done right, it's a frictionless way to collect inquiries, support requests, or partnership pitches. Done wrong, it's a spam magnet and an accessibility liability. This guide covers the full mailto URL format, when to use it, how to build one without typing URL-encoded characters by hand, and the best alternatives when mailto isn't the right tool.
The Anatomy of a Mailto Link
A basic mailto link looks like this:
<a href="mailto:hello@example.com">Email us</a>
But the format supports several parameters that let you pre-populate the entire email. The supported parameters are: to (recipient address), subject (email subject line), body (email body text), cc (carbon copy address), and bcc (blind carbon copy). Spaces become %20 and commas become %2C. Writing these by hand is error-prone — which is exactly what a mailto link generator is for.
A fully populated example:
mailto:hello@example.com?subject=Website%20Inquiry&body=Hi%2C%20I%20found%20your%20site%20and%20wanted%20to%20ask%20about%20pricing.
When to Use a Mailto Link
Mailto links work well when you want to collect direct one-to-one inquiries (consulting, freelance, agencies), you're building a simple contact option without a form or backend, you want the email to land in a specific inbox (sales, support, partnerships), or you're building a plain-HTML or static site with no server.
They're not the right tool when you want to prevent email harvesting by bots (use a contact form with CAPTCHA instead), when you need to capture and store submissions (use a form connected to a CRM), or when your audience primarily prefers WhatsApp or SMS.
How to Build a Mailto Link in 3 Steps
Step 1: Open the Mailto Link Generator. Go to InstantLinkHub's Mailto Generator and enter your recipient email address.
Step 2: Add optional pre-filled fields. Enter a subject line and body text if you want to guide the sender. For example, a freelancer's portfolio site might pre-fill: Subject: "Project Inquiry" / Body: "Hi, I'm reaching out about a potential project."
Step 3: Copy the generated code. The tool outputs a ready-to-use <a href="mailto:..."> HTML tag. Paste it into your site wherever you want the contact link to appear.
Real-World Example: Freelance Designer
A freelance UX designer adds a mailto link to her portfolio's footer:
<a href="mailto:hello@designersite.com?subject=Project%20Inquiry&body=Hi%2C%20I%20found%20your%20portfolio%20and%20I%27d%20like%20to%20discuss%20a%20project.">Start a project →</a>
When a potential client clicks it, their email client opens with her address, a professional subject line, and a natural opening already in place. The client only needs to add their project details. Her response rate from portfolio visitors increases because the barrier to reaching out is lower — no copy-paste, no blank subject line.
Mailto vs Contact Form: Which to Use
For most freelancers and small sites, a mailto link with a clearly displayed address is honest and effective. For businesses handling dozens of inquiries a week, a form (or a WhatsApp link for immediacy) will serve you better. The key factors: mailto requires no backend setup but exposes your email to scrapers; contact forms protect your address but require either a paid service or backend code.
Frequently Asked Questions
Does a mailto link work on all devices?
Yes, on most devices — as long as the user has a default email client configured. On mobile, it opens the native mail app. On desktop, it opens Outlook, Apple Mail, or the default client. If a user has no mail app set up, the link does nothing visible. Always include your email address as visible text alongside the link as a fallback.
Will adding my email in a mailto link get it scraped by bots?
Yes — email addresses in HTML source code are readable by crawlers. If spam is a concern, use a contact form, or obfuscate the address with CSS techniques. That said, most modern spam filters handle harvested addresses well, and the conversion benefit of a visible, clickable email often outweighs the spam risk for small sites.
Can I send to multiple recipients with one mailto link?
Yes. Separate multiple addresses with a comma in the to parameter: mailto:alice@example.com,bob@example.com. Use cc and bcc for copied recipients.
Build your mailto link for free
No account, no tracking, no expiry. Generate a properly formatted mailto link in seconds.
Open Mailto Generator