Email QR Code Generator
Published Updated
Build a QR code that opens a pre-addressed email with a subject and a message. Several recipients can be separated by commas, spaces, ? & # in an address are refused, and a line break in the message is written as %0D%0A, as RFC 6068 asks.
What the code contains
A mailto link follows RFC 6068: the address, then a question mark, then fields joined by ampersands. For the address jane@example.com, the subject Order #12 & more and a body of two lines, the page built this string:
mailto:jane@example.com?subject=Order%20%2312%20%26%20more&body=Hi%2C%0D%0APlease%20call%20me%3F
The # and & in the subject had to be encoded, since a bare one would end the field. With only an address the string is 23 bytes and needs version 2; the example above is 93 bytes and needs version 6, at 41 x 41 modules.
Which addresses pass
| Address typed | Result |
|---|---|
jane+news@example.com | Accepted |
José@exämple.com | Accepted, since only the unsafe characters are checked |
a@b.com, c@d.com | Accepted: two recipients in one link |
a b@x.com | Refused: space |
a@b.com&bcc=x@y.z | Refused: ampersand |
a@b.com#x | Refused: hash |
The check is a safety filter and not an email validator: a word with no @ passes it.
Building an email code
Step 1
Enter the address or addresses
Whitespace, ?, & and # are rejected with a message, because each one could change the meaning of the link. Several addresses are allowed, separated by commas, and each one is checked on its own.
Step 2
Add a subject and message
Both are optional and are trimmed. A message of a few lines makes the code much denser than an address alone.
Step 3
Download the image
Pick PNG or SVG. The preview updates as you type, and the error correction level sets the size of the pattern.
Where it falls short
A mailto link is only a request to the mail app on the reader's phone. The page cannot control what that app does with it.
- No cc, bcc or second recipient, by design.
- No attachment, since a mailto link has no way to carry one.
- Mail apps decide how to treat the pre-filled body, so test on the app your audience uses.
- The body is plain text. Bold, links and other formatting do not survive, and a pasted web address appears as plain characters.
Email code questions
Can I add cc or bcc?
No. The page writes only subject and body, and it refuses an address like victim@x.com?cc=evil@x.com, which would otherwise slip a hidden cc into the link.
Can I send to several people?
Yes. RFC 6068 lets a mailto URI list addresses separated by commas, and so does this page. Every address is checked for spaces and the characters ? & #, so one of them cannot add a hidden cc or bcc.
Which form does a line break take?
%0D%0A. The browser's text box gives a single line feed, and the page encodes every line break as %0D%0A, which is what RFC 6068 says a line break in the body must be.
Does the plus in jane+news@example.com survive?
Yes. A plus sign in the address part is not touched. Only the subject and message are percent-encoded.
How long can the message be?
A QR code tops out near 2,300 bytes at level M. Past that point the drawing fails, and lowering the level to L raises the cap to about 2,950.
Is the address kept anywhere?
Not by this page. The code is drawn in your browser, and no request carries the address to our servers. The tool writes nothing to browser storage, so closing the tab discards it, apart from any copy you put on the clipboard.