deftools.io Developer Tools

Mailto Link Generator

Generate mailto: links with to, cc, bcc, subject and body fields. URL-encoded and ready to use in HTML and email templates.

Generated mailto: link
Quick examples

About this tool

The Mailto Link Generator creates properly formatted mailto: links with recipient (To), CC, BCC, subject line, and email body. All fields are URL-encoded so the link works correctly in HTML <a> tags, email templates, and JavaScript window.location calls.

Example: To alice@example.com, subject Hello, body Hi Alice! produces mailto:alice%40example.com?subject=Hello&body=Hi%20Alice!. Paste the result into any HTML anchor tag or share it directly.

Use the "Quick examples" to load common patterns (feedback form, with CC/BCC) and the history saves your recent links locally so you can reuse them later.

FAQ

Does this work with Gmail, Outlook, and Apple Mail?

Yes. When someone clicks a mailto: link, their browser opens the default email client (webmail or desktop). Gmail, Outlook, Yahoo, and Apple Mail all support the subject and body parameters the generator uses.

Can I use this in an HTML email?

mailto: links work in HTML emails too — a reader clicks the link and a new message opens with the fields pre-filled. This is common for "forward to a friend" links and feedback buttons.

Why is the "To" address URL-encoded?

The @ sign is encoded as %40 in the mailto: scheme because the format uses ? to separate the recipient from query parameters. Without encoding, an @ in the email would be ambiguous with the scheme separator.

How do I add multiple recipients?

Separate email addresses with a comma in the To, CC, or BCC field. The generator will encode them correctly as comma-separated values in the mailto: link.

More developer tools

Copied!