Mailto Link Generator.
A mailto link opens the visitor's email app with a new message already addressed to you, for example mailto:hello@example.com?subject=Quote%20request. Enter the address, subject and message, and copy a correctly encoded link, an HTML link or a styled button for your website, email signature or social profile.
Paste the HTML into a custom HTML block in WordPress, Wix, Squarespace or Webflow, or put the link itself behind any button. Encoding follows RFC 6068. Runs in your browser; nothing you type is sent anywhere.
Need a website to put this on? Neweb builds one in about 90 seconds. Free to start.
Start freeMailto Link Generator is a free online tool from Neweb (neweb.ai) for small businesses, with no sign-up. A mailto link opens the visitor's email app with a new message already addressed to you, for example mailto:hello@example.com?subject=Quote%20request. Enter the address, subject and message, and copy a correctly encoded link, an HTML link or a styled button for your website, email signature or social profile.
| Cost | Free, no account, no sign-up |
|---|---|
| Built for | small businesses, freelancers and sole proprietors |
| Made by | Neweb, the AI website builder and online presence manager (free plan; paid plans from $9/month billed yearly) |
Facts checked October 2026.
What you'll get.
A real example of what this tool produces. Run it above with your own inputs.
A mailto link is a hyperlink that starts with mailto: instead of https://. When someone clicks it, their default email app opens a new message addressed to you, with the subject and message already filled in if you added them. It is the simplest way to put a working "Email us" link or button on a website, in an email signature or behind a QR code.
The format is defined in RFC 6068: the address comes first, then optional fields after a question mark, joined with ampersands. Writing one by hand is easy until the subject has a space, an ampersand or a line break in it. This generator encodes every field correctly, checks the addresses, and gives you the raw link, an HTML link and a styled button.
Mailto link syntax
Every mailto link has the address and, optionally, these fields:
| Field | Example | Notes |
|---|---|---|
| To | mailto:hello@example.com | Required. Separate several addresses with commas. |
| Subject | ?subject=Quote%20request | Spaces become %20. |
| Body | &body=Hi%2C%0D%0AThanks | Line breaks become %0D%0A. |
| Cc | &cc=sales@example.com | Copy recipients. |
| Bcc | &bcc=archive@example.com | Hidden copy recipients. Some email apps ignore it. |
Encoding rules that break hand-written links
Most broken mailto links break on encoding. RFC 6068 says spaces should be encoded as %20 rather than +, because a plus sign cannot be told apart from a real one, and line breaks in the body must be encoded as %0D%0A. An ampersand inside the subject must become %26, or the email app reads everything after it as a new field, and question marks, hash signs and non-English characters need percent-encoding too. The generator applies all of these rules for you.
Where to use a mailto link
Put it on your contact page, in the header or footer of your site, behind an "Email us" button, in your email signature and in any profile that accepts a link. You can also turn the link into a QR code with the QR code generator for flyers and shop windows. Pre-filling the subject ("Quote request", "Booking enquiry") means messages arrive already labelled, which makes them easier to sort.
What mailto links cannot do
A mailto link only works if the visitor has an email app set up. On a shared or work computer with no default mail app, clicking may do nothing or open an app they do not use, so show the address as text next to the button. Addresses published on web pages can also be collected by spam bots, a risk RFC 6068 itself points out. A contact form on your website avoids both problems, and many businesses offer both.
How to use the mailto link generator
Enter the To address. Add more addresses separated by commas if the email should go to several people.
Optionally add Cc and Bcc addresses, a subject and a starting message.
Type the link or button text and choose a plain link or a button, with your colour.
Click Test the link to open it in your own email app and check it.
Copy the link to use behind any button, or copy the HTML and paste it into your website.
Tips for better results
- Keep the pre-filled message short, such as a greeting and a prompt. People edit it, and very long links can be cut off by some email apps.
- Use a subject that tells you where the email came from, such as "Website enquiry", so you can filter and track enquiries.
- Show your email address as visible text too, for visitors whose computers have no email app set up.
- Use a business address on your own domain (hello@yourbusiness.com) rather than a free webmail address; it looks more trustworthy.
- Want customers to message you on WhatsApp instead? Use the WhatsApp link generator or the WhatsApp chat button generator.
Example
A real-world walkthrough
A wedding photographer wants an "Ask about my dates" button on her portfolio site. She enters her address, the subject "Wedding date enquiry" and a short message asking for the date and venue. The generator turns the spaces into %20, the line breaks into %0D%0A and produces a button in her brand colour.
She pastes the HTML into a custom HTML block on her contact page, tests it on her phone and laptop, and adds her address as plain text underneath for visitors who use webmail. Every enquiry now arrives with the same subject, so a single email filter sorts them into one folder.
Frequently asked questions
How do I create a mailto link with a subject?
Add ?subject= after the address, then the subject with spaces written as %20: mailto:hello@example.com?subject=Quote%20request. Type the subject into this generator and it does the encoding for you.
How do I add line breaks to the body of a mailto link?
Encode each line break as %0D%0A, as RFC 6068 requires. For example body=Hi%2C%0D%0AThanks gives "Hi," on one line and "Thanks" on the next. Type the message with normal line breaks in the generator and it converts them.
Can a mailto link send to several people?
Yes. Separate the addresses with commas in the To field, for example mailto:sales@example.com,owner@example.com, and add cc or bcc fields for copy recipients. Some email apps ignore bcc, so do not rely on it for anything private.
Why does my mailto link do nothing when I click it?
The computer has no default email app, or the default is an app the person does not use. Webmail users can usually set their browser to open mailto links in their webmail, from the browser's settings for protocol handlers. That is why it helps to show the email address as text as well.
Can a mailto link attach a file?
No. The mailto standard has no field for attachments, so there is no reliable way to attach a file from a link. Ask people to attach it themselves, or link to the file in the message body.
How do I add a mailto button in WordPress, Wix or Squarespace?
Either set an existing button's link to the mailto link you copied here, or paste the generated HTML into a custom HTML or embed block. Both work on any builder that lets you edit a link or add custom HTML.
Is it safe to put my email address on my website?
It is common, but addresses published on web pages can be collected by spam bots. Use a dedicated address such as hello@ or enquiries@ with a good spam filter, or offer a contact form alongside the link.
Keep building.
WhatsApp Link Generator
wa.me link with a pre-filled message.
Email Signature Generator
HTML signature for Gmail and Outlook.
WhatsApp Chat Button Generator
Floating chat button for any site.
Add to Calendar Link Generator
Google, Outlook and .ics event links.
QR Code Generator
Turn any link into a printable QR code.
Your entire online presence, on one subscription.
All industries and more. AI website builder, managed hosting and AI search optimization. Free to start; paid plans from $9/month billed yearly ($19 month-to-month) include a free domain for the first year.