Guide
Building mailto links with a subject, body, Cc and Bcc
A mailto link opens the visitor’s own email program with a message already started. It is one of the simplest ways to let people contact you from a web page, a signature or a PDF, and it can pre-fill the subject and body so that you get messages with the information you need. The syntax is easy to break, because every part has to be encoded, which is why a generator helps.
The pieces
After mailto: comes the address of the recipient, or several addresses separated by commas. A question mark begins the query, with parts joined by ampersands: subject, body, cc and bcc. Spaces, accents, ampersands, equals signs and line breaks in any value must be percent-encoded, otherwise the link breaks. The tool does all of this from five ordinary boxes.
The body
Type the message with real line breaks. In the link they become %0D%0A, the line ending mail programs expect, so paragraphs survive. A pre-written body is useful for support requests, applications and orders, as the visitor sees the template and fills in the blanks. Keep the body short: very long links may be cut by some mail programs and browsers.
Link length
The result shows the length of the link in characters. There is no formal limit, but practical limits exist, and links over about 2,000 characters may not open reliably in every browser or app. If your link is long, shorten the body or use a form instead.
The outputs
The first output is the plain link, for a button in a design tool or a QR code. The second is an HTML a element with the text you choose, with ampersands written as & for valid HTML. The third is the same link styled as a blue rounded button with inline styles, which you can paste into a page or an email template and restyle as needed.
Good practice
Make the link text meaningful, for example “Email the shop”, not “click here”. Tell people the address too, because not everyone has a mail app set up, and some use webmail that handles the link differently. Do not rely on the link alone for something important. A contact form or a visible address as backup serves everyone.
A worked example
The sample is a product enquiry to [email protected] with the subject “Question about trail shoes” and a three-paragraph body that asks whether size 9 is in stock. The link is 173 characters and begins mailto:[email protected]?subject=Question%20about%20trail%20shoes&body=Hello%2C%0D%0A%0D%0AI%20would%20like%20to%20know%20if%20size%209%20is%20in%20stock.%0D%0A%0D%0AThanks. The HTML link has the text “Email us”, and the button version uses the same address with inline styles.
Limits
A mailto link opens the visitor’s email program; it does not send anything, and it does nothing useful for someone with no mail program set up. Support for cc, bcc and long bodies varies between programs. Putting an address on a page can invite spam. The tool does not check that addresses are valid or exist.
Writing a useful template
A good prefilled message asks for what you need, for example an order number, the product and the problem. Keep a friendly greeting and leave blank lines where the visitor should type. Test the link in at least two mail programs and on a phone, as each treats a long body and special characters a little differently.
Related tools
- WhatsApp Link & QR Generator opens a chat instead of an email.
- Add-to-Calendar Link Generator lets visitors save an event after contacting you.
- Digital Business Card Maker includes an email link and a contact file.
- URL Encoder encodes any text for use in a web address.
Checked against the current version of the Mailto Link Generator on .

