Mailto Link Generator
Generate mailto link using the options shown.
About Mailto Link Generator
Contact pages, email signatures and event flyers often include an 'Email us' link that opens the visitor's mail app with the address, subject and opening line already filled in. Building that link by hand means remembering the mailto syntax and encoding special characters, which is easy to get wrong.
How it works
You enter an email address, an optional subject and an optional message. The address is kept readable, with the @ sign left as is. The subject and message are encoded with encodeURIComponent, so spaces become %20, line breaks become %0D%0A and characters such as & and ? are escaped so they cannot break the link. The result is an anchor tag with the link text 'Email us'. Several addresses can be separated by commas; there are no CC or BCC fields. The tag can be copied or saved as mailto-link.html.
How to use Mailto Link Generator
- Complete the available fields: Email address, Subject, Message. Use the field labels and examples shown in the workspace.
- Select “Create mail link” and check the result before copying or downloading it.
Worked example
Enter [email protected], subject 'Quote request' and message 'Hi team'. The output is <a href="mailto:[email protected]?subject=Quote%20request&body=Hi%20team">Email us</a>. Clicking it opens a new message addressed to [email protected] with the subject 'Quote request' and the body filled in.
Tips for a better result
- Test the link in the mail apps your audience uses, especially if the message contains line breaks or non-English characters.
- Change the link text 'Email us' to something specific, such as 'Email our sales team', after pasting it.
- Publishing a plain address on a public page can attract spam; consider a contact form for high-traffic sites.
Frequently asked questions
Can I add CC or BCC recipients?
There are no CC or BCC fields. You can add them by hand to the href, for example appending &[email protected] after the existing parameters.
Why does the link contain %20 and &?
%20 is the standard encoding for a space in a mailto link, which mail apps turn back into a space. The & between subject and body is how an ampersand is written inside an HTML attribute; browsers read it as a plain &.
Will the link work if the visitor has no mail app?
A mailto link relies on the visitor's device having an email program or a web mail handler set up. Without one, clicking it may do nothing, so consider also showing the address as text.
What to check
Test generated markup in your own page. Sanitize untrusted content before inserting it into a live website.
Read the Privacy Policy for information about local processing, connected services and advertising.