To generate a QR code to email, encode a mailto: link containing the recipient and any optional subject and body, then download the resulting QR code as a PNG.

A mailto QR code gives a recipient a direct route into their device's email app: after scanning, the app can open with the address, subject and message already in place. The code does not send anything automatically. It stores the mailto instruction, and the person scanning still reviews and sends the message they receive.

generate qr code to email
Generate QR Code to Email: Build a mailto Link

Choose the right email payload

An email QR code can carry a plain address or a mailto link. A plain address is useful when the goal is simply to share contact details. A mailto link adds an action: a compatible scanner can hand it to the email app and prefill the draft.

Payload format What it does when scanned Best fit
Plain email address May display or copy the address without requesting an email draft. Simple contact details on a card or handout
Mailto link with a recipient Can open the device's email app with the recipient filled in. General enquiries and contact requests
Mailto link with a subject and body Can open a draft with the recipient, subject and message prepared. Feedback, support and event follow-up

Scanner and operating-system behavior can vary, so test the final code on the phones your audience is likely to use. If the recipient, subject or message must be ready every time, use a mailto link rather than plain text.

The basic format is mailto:[email protected]. A subject and body are optional. Add them after a question mark as separate query fields, with the field names subject and body.

Here is a complete example:

mailto:[email protected]?subject=Website%20feedback&body=Hi%20there,%0A%0AI%20would%20like%20to%20learn%20more.

When read as a mailto link, this points to [email protected], sets the subject to “Website feedback,” and supplies a short body with a line break. The percent codes are standard URL encoding: %20 represents a space and %0A represents a line break.

Prepare the recipient and message

  • Replace the example recipient with the inbox that should receive the message.
  • Percent-encode URL-reserved characters in the subject and body. For example, use %26 for a literal ampersand, and keep the query separator between subject and body as &.
  • Keep the prefilled message concise when possible. A longer payload creates a denser QR grid, which can be harder for a camera to read from a small printed area.
  • Do not put confidential information in the code. Anyone who can view and decode the QR image can read its payload.

The generator accepts any text, so this completed mailto string can be pasted without changing its structure.

  1. Copy the complete mailto link, including the address and every optional subject or body field.
  2. Open the QR Code Generator and paste the link into the input box. The QR code appears instantly as you enter the text, so there is no Generate button to press.
  3. Confirm that the QR preview appears and that the input still contains the intended address and message.
  4. Choose an error-correction level and output size. Level M is suitable for most email QR codes; use H if you will place your own logo over the code or print it very small.
  5. Click Download PNG to save the code, then print or share the image. Your text never leaves the browser and nothing is uploaded.
  6. Scan the downloaded image with a phone. Confirm that the address, subject and body appear in the draft, and test with more than one phone before committing to a large print run.

Pick an error-correction level and size

Error correction adds redundant data so a code can remain readable when part of it is dirty, scratched or covered. The generator's recovery levels differ, and higher levels also produce denser grids that need more physical space to scan reliably.

Level Recovery When to consider it
L About 7% Large, clean codes where the least dense grid is useful
M About 15% Everyday email cards, posters and flyers
Q About 25% Small print or curved surfaces that need more recovery
H About 30% Your own logo overlay or very small printing

For a standard business card, flyer or poster, M is the practical default. If you overlay your own logo, select H. Because H produces a denser code, increase the output size and the printed dimensions as needed. If a long subject or body makes the code difficult to scan, shorten the message or move to a lower level when a logo does not require H.

Test the scan and the email draft

A successful download does not guarantee a successful handoff. Test the image in the same conditions it will be used: on a phone, at the final print size and from the distance a reader will scan it.

  • Check the complete draft, not just the recipient. Missing spaces, a truncated body or an incorrectly encoded character can make the experience feel broken even when the code scans.
  • On some devices, the camera shows a link preview before opening the email app. Include clear wording such as “Scan to email us” so people know what action to expect.
  • Keep the quiet margin, which is the white border around the code. The tool adds it automatically.
  • Use dark code on a light background and avoid low-contrast color combinations that can make edges harder to distinguish.
  • Test a printed proof rather than relying only on the screen. The same code that looks sharp on a monitor can lose detail when reduced for a card or handout.

Match the payload to the printed use

The amount of information should match the purpose of the material. A simple contact code, a feedback code and an event follow-up code serve different jobs.

  • For a business card or website footer, use the recipient address alone unless a subject helps route the message.
  • For customer feedback or support, add a specific subject and a short prompt explaining what the recipient should include.
  • For an event handout, prefill the event name in the subject so the recipient knows which conversation the message belongs to.
  • For a general QR code reused across several placements, keep the recipient and prefilled content identical to avoid confusion.

Every downloaded PNG is a fixed representation of its payload. If the inbox, subject or message changes, generate a new code and replace the old image rather than expecting the existing QR code to update.

Keep the email code private and durable

The QR Code Generator runs as client-side JavaScript, so the mailto text remains in your browser and is never uploaded. The QR code encodes the mailto destination directly: there is no tracking redirect and no server-hosted code waiting to expire. Once downloaded, the PNG contains the complete code and can be read without a connection to the generator; opening the email app and sending the message still depends on the recipient's device and email setup.

There is no account, watermark or limit on how many codes you create. No scan tracking is built into the generated code. Because the payload can be decoded from the image, treat the address, subject and any prefilled message as public information and use only details that are appropriate for everyone who may see the printed code.

For a deeper look, see UTM Builder on Android: Build Campaign URLs in Browser.

For a deeper look, see Does Higher Error Correction Scan Better in Bulk QR Codes?.