1. Home
  2. Productivity tools
  3. Mailto Link Generator

Mailto Link Generator

For web designers who want a link that opens an email already filled in.

Free, no sign-up. Runs in your browser: nothing is uploaded.

Free workspace included. Docs, spreadsheets, notes and tasks that save on your device. No sign-up.Take a look

How to use Mailto Link Generator

  1. Fill in the form, or press a sample to see a worked example.
  2. Read the result and any warnings.
  3. Copy the output or download it.

Features

  • Several recipients, Cc and Bcc
  • Subject and a multi-line body encoded correctly
  • HTML link and a styled button
  • Shows the length of the link
  • Copy each output

Supported formats

Input

  • Typed details

You get

  • Link
  • HTML

Private by design

Everything you enter is processed by your browser on this device. Nothing is sent to openWorkstand or anyone else, so the Mailto Link Generator is safe for private and work data. After you have used it once while online, it also works without an internet connection. How local processing works

Good to know

  • A mailto link opens the visitor’s email app; it does not work for people with no email app set up.
  • Putting an address in a page can invite spam harvesters.

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.

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.

Checked against the current version of the Mailto Link Generator on .

Frequently asked questions

Why do line breaks look like %0D%0A?

A web address cannot contain a raw line break, so each one is encoded as a carriage return and a line feed, written %0D%0A, the line ending that mail programs expect. The encoded form is what makes a message with paragraphs come out right when the email app opens.

How can I protect my address from spam?

Automated scrapers read page source for addresses, and a mailto link exposes it. A contact form avoids that. If you need a link, use a role address that you can filter, or hide the address with a method that builds it when the page loads, accepting that the trade is partial protection.

Does a mailto link send the email?

No. It opens the visitor’s own email app with the message filled in. It does not work for people who have no email app set up.

Will my address attract spam?

Putting an address in a web page can invite spam harvesters. A contact form avoids this.

Keep working with the result

openWorkstand also includes a free workspace with documents, spreadsheets, tasks, projects and a calendar that save to a folder on your computer.