01What is Mailto Link Generator?
A mailto link looks trivial until a subject contains an ampersand, or a body with paragraphs arrives in Outlook as one squashed line. This generator builds the link for you and encodes each part the way RFC 6068, the IETF spec for the mailto URI scheme, describes. You fill in To, CC, BCC, Subject and Body. To is required. The other fields are optional and simply left out of the link when empty. Recipients can be separated by commas or semicolons. Each address is trimmed, percent-encoded with encodeURIComponent, and then the @ is put back as a literal character. The addresses are joined with plain commas, the separator RFC 6068 uses. So [email protected] becomes jane%[email protected], and a list typed as "[email protected]; [email protected]" comes out as [email protected],[email protected]. Subject and Body go through encodeURIComponent too. Spaces turn into %20, & into %26, ? into %3F, and accented letters or emoji into their UTF-8 byte sequences. Before encoding, every line break in the body is normalised to CRLF, so it lands in the link as %0D%0A. RFC 6068 asks for that form, and it is why a blank line between paragraphs survives in clients that are picky about line endings. Leading and trailing whitespace on the subject and body is trimmed first. Here's a quick example. With To set to [email protected] and Subject set to "Q&A: pricing?", the query becomes subject=Q%26A%3A%20pricing%3F. Without that encoding, the & would start a new parameter and the mail app would show only "Q". You get two outputs. One is the raw mailto URI. The other is a ready HTML anchor whose link text is the subject, or "Email" plus the first recipient when there's no subject. Inside that tag both the URL and the text are HTML-escaped, so the & between parameters is written as & and a < in the subject stays text. Copy Link and Copy HTML put either one on your clipboard. The link is built locally as you type, so the addresses and message stay in your browser tab. Some limits are outside the tool's control. What happens on click depends on the visitor's default mail handler, and some have none set up. Very long bodies can be cut off by certain clients. And the tool does not check that an address is real or well formed.
Web developers and technical writers who need a correctly encoded mailto link or anchor tag for a site footer, README or support page. The tool runs entirely in your browser, so your data never leaves your device.
02How to use Mailto Link Generator
- Enter one or more recipients in To (separate several with commas or semicolons).
- Optionally fill in CC, BCC, Subject and Body. Line breaks in Body are kept.
- Check the generated mailto link and the HTML anchor tag below the fields.
- Click Copy Link or Copy HTML, paste it into your page or document, then click it once to test it in your own mail app.
03Worked examples
- Input:
To: [email protected] - Result:
mailto:[email protected] <a href="mailto:[email protected]">Email [email protected]</a> - With no subject, the HTML link text is "Email" followed by the first address.
- Input:
To: [email protected], Subject: Q&A: pricing?, Body: Hi,⏎Please send a quote. - Result:
mailto:[email protected]?subject=Q%26A%3A%20pricing%3F&body=Hi%2C%0D%0APlease%20send%20a%20quote. <a href="mailto:[email protected]?subject=Q%26A%3A%20pricing%3F&body=Hi%2C%0D%0APlease%20send%20a%20quote.">Q&A: pricing?</a> - & and ? in the subject are percent-encoded so they don't break the query, and the line break becomes %0D%0A. In the HTML tag the & between parameters is written as &.
- Input:
To: [email protected]; [email protected], CC: [email protected], Subject: 50% off & more - Result:
mailto:[email protected],[email protected][email protected]&subject=50%25%20off%20%26%20more - Semicolons between recipients are converted to commas.
- Input:
To: [email protected] - Result:
mailto:jane%[email protected] - The + is encoded as %2B while @ is left as is.
- Input:
To: [email protected], BCC: [email protected], Subject: Café <menu>, Body: Line one⏎⏎Line two - Result:
mailto:[email protected][email protected]&subject=Caf%C3%A9%20%3Cmenu%3E&body=Line%20one%0D%0A%0D%0ALine%20two <a href="…">Café <menu></a> - é becomes its UTF-8 bytes %C3%A9 and the blank line becomes two CRLF pairs. The href in the anchor is trimmed here. The link text is HTML-escaped so <menu> can't break your markup.
04Common use cases
- Adding a contact link to a website footer that opens a pre-addressed email
- Putting a bug-report link in a README or app menu that pre-fills a subject and a short template body
- Building a support link that copies a team address in CC so nobody answers alone
- Adding a request-access link to internal docs with the approver in To and a fixed subject line
- Fixing an existing mailto link whose subject is cut off at an ampersand or question mark
- Creating a feedback link in an HTML email or newsletter template with the version number in the subject
05Tips
- Paste the HTML version into templates that are HTML. Its & is correct there, while the raw link is what you want in Markdown or a JavaScript string.
- Keep pre-filled bodies short. Some mail clients and browsers cut off very long mailto links, so put long instructions on a web page.
- Show the address as visible text too. Visitors without a configured mail app may get nothing, or an OS prompt, when they click.
- Don't put tokens or personal data in the subject or body. The full link is visible in the page source and the status bar.
06Related concepts
RFC 6068, URI encoding, Email deep linking, HTML anchor tag.
Frequently Asked Questions
What is Mailto Link Generator?
Mailto Link Generator is a free, browser-based developer tool on AIDToolStack. Generate mailto links with pre-filled subject, body, CC, and BCC. It requires no installation or sign-up and works entirely in your browser.
Is Mailto Link Generator free to use?
Yes. No sign-up, no fees and no usage cap.
Does Mailto Link Generator store my data?
No. It runs in your browser; nothing is uploaded.