What is Mailto Link Generator?
The Mailto Link Generator builds properly encoded mailto: links with recipient, subject, CC, BCC, and body fields prefilled. Get the raw link, an HTML anchor tag, or a clickable preview. Drop the result into an email signature, a website footer, or a newsletter.
The generator URL-encodes every field, so line breaks in the body, em dashes, and accented characters all survive the trip from your form into the visitor's email client. You see the raw mailto: URL, an HTML anchor tag, and a live preview button that opens your default mail app so you can sanity-check before publishing.
How to use
- Enter the recipient email address, subject line, and optional CC/BCC recipients.
- Compose the email body text — line breaks and special characters are automatically encoded.
- Copy the generated mailto: link, HTML code, or click the preview to test it in your default email client.
When to use
- Adding a 'Contact support' link to a website footer or help page.
- Building a feedback form that opens a pre-filled email with a tagged subject like 'Bug report — Page X'.
- Sending a partner email template via SMS or chat without exposing addresses publicly.
Result
You're adding a support contact to your website footer. You enter support@company.com, set the subject to 'Support Request — [describe issue]', add your manager in CC, and copy the HTML anchor tag: <a href='mailto:...'>Contact Support</a> — ready to paste into your site.
FAQ
- Does the mailto: link work in Gmail and other webmail clients?
- It does if the visitor has set Gmail as their default mail handler in the browser. Chrome supports this through chrome://settings/handlers. If not, the browser falls back to whatever desktop client is registered, otherwise nothing happens.
- Can I prefill an attachment with a mailto link?
- No. The mailto: spec does not include an attachment parameter for security reasons — a website could otherwise force-upload arbitrary files. Hosting the file separately and linking to it inside the body text is the workaround.
- Will my email address get scraped by spam bots if I put a mailto: link on my page?
- Yes, plain mailto: links are easy to harvest. Either obfuscate with JavaScript that builds the link on click, or use a contact form that submits via your server. The risk is biggest for personal addresses on public pages.
- Why does my body text lose paragraph breaks when the email opens?
- This tool encodes line breaks as %0A which most clients respect. A few older clients collapse them. If the breaks vanish, try replacing them with %0D%0A in the body or send the link through a content management system that handles encoding for you.
- Is there a character limit for the body parameter?
- Browsers usually accept URLs up to 2,000 characters, and after URL encoding each space becomes %20, each line break becomes %0A. Keep the prefilled body under about 1,500 raw characters to stay safely below that ceiling.
Related Tools
Event Ticket Maker
Design event admission tickets
Email Signature Generator
Design HTML email signatures
International Dialing Code
Look up country dialing codes instantly
Party Invitation
Create digital party invitations
Phone Number Formatter
Format phone numbers to international standards
Telegram Link Generator
Create direct Telegram chat links from usernames or phone numbers