Works on this device
Unsubscribe Link Generator
Type the web address of your unsubscribe page, an email address for unsubscribe requests, or both. The page writes the HTML link and the plain text line for the footer of your email, and the header lines that let a mail program show its own unsubscribe button. It writes text only: your own system must take the reader off the list.
Your unsubscribe addresses
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your link will show here
Type an address, or choose Try an example.
Your result
How it was worked out
How to use the generator
- Choose what you want to make: the link for the footer, or the header lines.
- Type the web address of your unsubscribe page. It starts with
https://and holds the part that tells your system which reader it is. - Type an email address for unsubscribe requests if you take them by email. You can change the subject that the new message starts with.
- Choose Generate, then copy each piece. Send a test message to yourself and try the link before you send to readers.
What the page writes
- HTML link:
<a href="...">Unsubscribe</a>for the footer of the HTML part of the message. - Plain text line: the same for the plain text part, with the address written out.
- Mailto link:
mailto:and the address, then the subject and the text of the new message. A reader who uses it gets a new message that is ready to send. - List-Unsubscribe: a header line with each address in angle brackets. Mail programs read it to show their own unsubscribe button.
- List-Unsubscribe-Post: a second header line with the fixed text
List-Unsubscribe=One-Click. It says that the web address takes a one-click unsubscribe.
The rules the page follows
- Mailto link (RFC 6068): the subject and the text are written as UTF-8, and every character except letters, digits and
-,.,_,~is percent-encoded. A space is%20, never+. A line break is%0D%0A. - Email address: letters, digits and the marks
!,$,*,+,-,.,_,~and the apostrophe stay as they are. Other marks that an address may hold, such as%,&,=and?, are percent-encoded. - List-Unsubscribe (RFC 2369): each address stands in angle brackets, with a comma between two addresses. The first one is the one the sender prefers. A line break may come after the comma, never inside the brackets.
- One-click (RFC 8058): the header must hold one address that starts with
https://, and the message must also have the lineList-Unsubscribe-Post: List-Unsubscribe=One-Click. This page refuses the one-click form for an address that starts withhttp://or when there is no web address. - HTML: the characters
&,<,>and"are written as&,<,>and".
Worked example
The web address is https://www.example.com/unsubscribe?u=abc123, the email address is unsubscribe@example.com and the subject is unsubscribe.
The footer link is <a href="https://www.example.com/unsubscribe?u=abc123">Unsubscribe</a> and the mailto link is mailto:unsubscribe@example.com?subject=unsubscribe.
The header lines are List-Unsubscribe: <https://www.example.com/unsubscribe?u=abc123>, then on a new line, after one space, <mailto:unsubscribe@example.com?subject=unsubscribe>, and then List-Unsubscribe-Post: List-Unsubscribe=One-Click.
With the subject Please take me off the mailto link ends with ?subject=Please%20take%20me%20off.
Limits you should know
- This page cannot make unsubscribing work. Your own system must take the reader off the list when the link is opened, when the POST request arrives, or when the email arrives. Test it.
- It does not check that the web address exists or that the mailbox is read. Nothing is sent or looked up.
- A one-click unsubscribe has more conditions than the two header lines. By RFC 8058 the address must hold what your system needs to know the reader and the list, the request must work with no sign-in and no further step, and the message must have a valid DKIM signature that covers both header lines.
- Laws on marketing email and the sender rules of the large mailbox providers say how an unsubscribe must work and how fast it must be honoured. They differ by country and change over time. Check the current sender rules of the mailbox providers and the law that applies to you. This is not legal advice.
- Many sending systems add the header lines and a footer link themselves. Do not add them twice.
- A placeholder of your sending system inside the subject or the text is percent-encoded like any other text. If your system must fill it in, check that it still finds it.
- The email address is checked lightly: one address with English letters, digits and common marks, and a domain name. Addresses in other scripts are not taken.
- For any other mailto link, with Cc, Bcc and a longer message, use the Mailto Link Generator. To check a whole footer, use the Email Footer Checker.