T

Text Machine

Powerful text tools, in your browser

Mailto Link Generator

Create HTML mailto links with recipients, CC, BCC, subject, and body text.

Email Settings
How to Use Mailto Links

Mailto links allow visitors to open their default email client with pre-filled information. Here's what each parameter does:

Email Address: The main recipient of the email (required).

Subject: Pre-fills the subject line of the email.

Body: Pre-fills the content of the email.

CC and BCC: Add carbon copy and blind carbon copy recipients.

Note that mailto links can behave differently depending on the email client and browser used.

How to use Mailto Link Generator

  1. 1

    Enter the recipients

    Fill in the To address and optionally add CC and BCC recipients, separating multiple emails with commas.

  2. 2

    Add subject and body

    Type a pre-filled subject line and message body so the visitor's email opens ready to send.

  3. 3

    Set link and advanced options

    Customize the link text, CSS class, or ID, and toggle options like open in new window or URL-encode parameters.

  4. 4

    Generate and copy

    Click Generate Mailto Link, then copy the ready-made HTML anchor or the raw mailto URL for your site.

Frequently asked questions

What is a mailto link?
A mailto link is a special URL that opens the visitor's default email program with the address, subject, and body already filled in. It is the standard way to turn an email contact into a clickable link on a web page.
Can I add CC, BCC, subject, and body?
Yes. The generator includes fields for To, CC, BCC, a subject line, and a message body, and it folds all of them into a single valid mailto link automatically.
Should I keep URL encoding turned on?
Yes, in most cases. URL encoding converts spaces and special characters in your subject and body into a safe format so the link works reliably across browsers and email clients; it is recommended and on by default.
Do I get HTML code or just the URL?
Both. The tool outputs the raw mailto: URL and a complete HTML anchor tag with your chosen link text, CSS class, and ID, so you can drop either straight into your page.
Will the link work in every email client?
Most modern browsers and email apps support mailto links, though very long bodies and some parameters can behave differently between clients. Generation happens entirely in your browser, and the tool is free with no sign-up.

Related tools

Keep going with these handy tools

HTML to Text Converter

JSON Formatter

Regex Tester

JWT Decoder

CSS Gradient Generator

CSS Box Shadow Generator