Mailto link generator
A mailto link opens the reader's mail app with a message already addressed and written. It works on a contact page, in an email signature or in a button, as long as it is encoded correctly, and that is where hand-written links go wrong: a space becomes a plus sign, a line break disappears, an ampersand cuts the message short. This tool builds the link from plain fields and gives you the finished URL and the HTML.
Separate several addresses with commas.
Fill in at least one field to build the link.
No recipient is set, so the reader will be asked who to send the message to.
The addresses and text you type are turned into a link by code running in this page and are never sent anywhere.
How it works
- Every address is checked for valid syntax. An invalid address in any field stops the build and the message names the field and the address.
- Several addresses in one field are joined with commas, which is how the mailto format lists more than one recipient.
- The subject and message are turned into percent-encoded text from their UTF-8 form, so accented letters and emoji survive. A space becomes %20, never a plus sign.
- A line break in the message becomes %0D%0A, the carriage return and line feed pair that the mailto format requires. Line breaks in the subject are replaced with spaces.
- The fields are joined with & after a question mark: cc, then bcc, then subject, then body.
- The HTML anchor escapes the link for use inside a double-quoted href, so each & becomes & and a quote can never end the attribute early. The link text is escaped too.
Limits
- A mailto link only opens the reader's default mail app or webmail handler. If none is set up, the click does nothing, and the tool cannot change that.
- The body field is plain text. Mail apps do not accept HTML, images or attachments through a mailto link.
- Very long links are cut off or refused by some apps and browsers. The tool warns above 2,000 characters, which is a cautious guide and not a figure from a standard.
- Addresses with non-English letters in the domain are not accepted here. Use the ASCII form of the domain.
- Anyone who sees the page can read the addresses in the link, including a Bcc. Do not put an address in a public link that you would not publish.
Related tools
Email checkerCheck up to 500 addresses for syntax errors and provider typos, and confirm each domain can receive mail.Email signature generatorBuild a clean table-based email signature, preview it live and copy it as rich text, HTML or plain text.Follow-up email generatorWrite a follow-up that adds something new and a polite goodbye note from four short inputs.Email read timeWords, characters, reading time and a length check for a cold email.Email sign-off generatorChoose a situation and a formality level and get six ranked ways to end an email, each with a note.