More free tools:  InstantLinkHub· Feexio· SwiftConvertHub

Mailto Link Generator: Complete Guide for Web Developers and Marketers

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.
Advertisement

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
AM

Alex Morgan

Digital Marketing Strategist & Founder, InstantLinkHub

Alex Morgan has spent the past decade at the intersection of digital marketing and web development, helping freelancers, agencies, and e-commerce brands build measurable online strategies. Alex specializes in link-tracking, UTM campaign architecture, and click-to-contact optimization. InstantLinkHub was built out of a simple frustration: too many essential tools were locked behind subscriptions or privacy-invasive dashboards.

Esta guía completa cubre todos los aspectos de los enlaces mailto: desde la sintaxis básica hasta casos avanzados, consideraciones de seguridad y cómo combinarlos con otras herramientas.

Anatomía completa de un enlace mailto

mailto:principal@empresa.com
  ?cc=copia@empresa.com
  &bcc=registro@empresa.com
  &subject=Solicitud%20de%20Presupuesto
  &body=Estimados%2C%0A%0AMe%20gustaría%20solicitar%20presupuesto%20para%3A

Codificación URL en mailto

  • Espacio → %20
  • Salto de línea → %0A
  • Coma → %2C
  • Signo de interrogación → %3F

Múltiples destinatarios

Separa los emails con coma:

mailto:a@empresa.com,b@empresa.com?subject=Reunión

Seguridad: proteger tu dirección del scraping

Las direcciones visibles en HTML pueden ser recogidas por bots de spam. Para protegerte, construye el enlace dinámicamente en JavaScript o usa un formulario con reCAPTCHA para emails de negocio importantes.

Mailto vs. formulario de contacto

Usa mailto cuando el usuario ya sabe qué comunicar y quieres mínima fricción.

Usa formulario cuando necesitas estructurar la información o validar los datos.

Mejor práctica: ofrece ambas opciones.

Advertisement