Skip to main content

Mailto Link Generator

Build a correctly encoded mailto: link with To, Cc, Bcc, subject and body, and copy it as a URL or as an HTML anchor.

For web developers and anyone adding an email link to a page.

Last updatedHow we build & check our tools
Results will appear here once you enter your values.

Anatomy of a mailto URL

A mailto URI begins with mailto:, then the recipient list, then optional header fields after a question mark, separated by ampersands. The recipient goes in the path; cc, bcc, subject and body are name=value pairs. Values must be percent-encoded because characters like &, ? and spaces would otherwise break the structure.

Example: To support@example.com, subject Order 1042: late, body of two lines. The URL is mailto:support@example.com?subject=Order%201042%3A%20late&body=Hello%2C%0D%0AMy%20order%20is%20late. The %0D%0A in the body is the line break.

  • Recipients: the @ stays literal, other reserved characters are percent-encoded.
  • In HTML: use the anchor output so & is written as &.
  • Plain URL: use the URL output in JavaScript, markdown or email signatures.

Privacy and spam

Publishing a full email address in a page makes it easy for scrapers to collect, which tends to bring spam.

Consider a contact form for public pages.

Do not prefill Bcc with other people's addresses in a public link, and do not put private data in the body, since the whole link is visible in the page source.

Sources

RFC 6068, The 'mailto' URI Scheme (Duerst, Masinter and Zawinski, 2010), sections 2, 5 and 6.1 for structure, line breaks and HTML escaping. RFC 3986, Uniform Resource Identifier: Generic Syntax (Berners-Lee, Fielding and Masinter, 2005), section 2 for percent-encoding.

Related tools: the URL Encoder and HTML Encoder.

Frequently Asked Questions

Common questions about the Mailto Link Generator

With the defaults, it is mailto:hello@example.com?subject=Hello&body=Hi%20there. The HTML output is an anchor tag using that URL, with ampersands written as & for valid HTML. Cc and Bcc are added as cc= and bcc= fields only when you fill them in.

From the same team

Turn your GPU into an OpenAI-compatible API endpoint

Wide Area AI routes your LLM API calls to your own hardware over a Cloudflare Tunnel — free local inference with edge caching and automatic cloud failover. Works with any OpenAI SDK.

Start routing — free

Sources & References

Web platform and protocol references

Authoritative definitions for web technologies, encodings, and data formats used by these developer tools.

Internet standards (RFCs)

Formal specifications for internet formats and protocols.