How the Mailto Link Generator Builds the Link
AnyTool Mailto Link Generator assembles a standards-compliant mailto: URL in the browser from a small input model. The To, Cc and Bcc fields each accept several addresses; the tool splits them on commas, semicolons or newlines, trims them and drops blanks. The To recipients are joined with commas and placed before the ? — kept literal, since the @ and the comma separators must stay unencoded for clients to parse them — while cc= and bcc= are added as query parameters. The subject and the multi-line plain-text body are appended as subject= and body=. Every query value is escaped with encodeURIComponent, so a space becomes %20, a CR-LF line break becomes %0D%0A and reserved characters such as &, ? and # are escaped. The result, mailto:recipients?cc=…&bcc=…&subject=…&body=…, updates live as you type.
- To, Cc and Bcc accept multiple addresses split on commas / semicolons / newlines
- To recipients are comma-joined before the ? and left literal (the @ is preserved)
- cc=, bcc=, subject= and body= are added as query parameters in order
- Query values are URL-encoded with encodeURIComponent — line breaks → %0D%0A
- The mailto: link is built entirely client-side and updates in real time
