QR Code in Email: When It Helps and How to Add One
A QR code in email works when the device that scans it isn't the one showing the email. Think of a ticket for a customer evening: staff at the door scan the code on each guest's phone or printout.
When the reader holds the phone that would do the scanning, the code is a picture they can't use. So a QR code sits next to a link to the same page, never in place of it.
The garden centre in these examples is invented. It sells plants in Shrewsbury and holds a ticketed Christmas shopping evening every December.
When a QR code in email helps
A QR code earns its place when the email is read in one place and used in another. Before writing a QR code email, ask where the scan will happen.
| Where the code gets scanned | QR code or link? | |
|---|---|---|
| Ticket or booking confirmation | At the door, by staff scanning the guest's phone or printout | QR code, a different one per guest |
| Voucher for use in the shop | At the till, if the till scanner reads QR codes | QR code, with the voucher code in text as well |
| App download in a newsletter | On the reader's phone, from a laptop screen | QR code beside the app store links |
| Quote, letter or statement customers print | On the reader's phone, from paper | QR code, because paper has no links |
| Weekly newsletter or sale | On the phone the reader opened it on | Button or link |
| Sign-in, payment or account check | Anywhere | Link only |
Tickets are the strongest case, because the code is the ticket. Each guest gets their own, and the door team needs nothing but a scanner.
An event invitation email to people already on your guest list can carry the same code. The invitation then doubles as the ticket.
A voucher QR code saves time only if the till can read it, so check your scanner first. If it reads barcodes but not QR codes, a short voucher code in large text does the job.
When a link works better than a QR code
A link works better whenever the reader opens the email on the phone they would scan with. Nobody can point a phone's camera at its own screen.
A reader could screenshot the code and open it from their photos, but few will when a button sits one tap away.
A restaurant newsletter promoting a set menu needs a booking button for the same reason. The diner who wants a table is already holding the phone.
A QR code is also an image, so it vanishes wherever images don't load. For a QR code not showing in email, check image blocking first: Classic Outlook blocks automatic picture downloads by default (Microsoft Support), leaving an empty box.
Screen readers can't use a QR code either. Alt text tells a blind reader what the code is for, and the link beside it lets them follow it.
Treat the code as a second route for people reading on a computer or on paper. The button stays the first.
How to add a QR code to an email
Add a QR code as an image in the body of the email, linked to the page it opens, with a line of text under it. These steps work in any email tool:
- Choose a short address on your own website. A short address makes a simpler code, as the measurements below show.
- Create the code as a PNG (Portable Network Graphics) image at twice the width you will show it, so it stays sharp on high-resolution screens. The same rule applies to email banners.
- Insert it in the body of the email. A code sent as an attachment makes the reader open a file before they can scan it.
- Link the image to the same address, so a reader on a phone can tap the code.
- Write alt text that says what the code opens.
- Add a sentence that says what the code is for, followed by the address as a link.
- Before sending, scan it from a laptop screen at arm's length, then from a printed copy.
Give the code its own block in your email template, directly under the sentence that explains it. Here is the ticket block from the garden centre's confirmation email:
[QR code image, 160 px wide, linked to the page below]
Alt text: QR code: your ticket for the Christmas evening, Friday 11 December
Show this code at the door. We can scan it from your phone or a printout.
Code not showing? Open your ticket: example.co.uk/t/4821
QR code size, contrast and the quiet zone
Show a QR code at least 160 pixels wide, dark on light, with an empty margin around it. How dense the code gets depends on the address inside it.
On 21 November 2026 we generated four codes with segno 1.6.6, an open-source Python library, at error correction level M. Pixels per square is the display width divided by the grid plus its margin.
| What the code holds | Length | Grid of squares | Pixels per square at 120 / 160 / 220 px wide |
|---|---|---|---|
https://www.example.co.uk/menu | 30 characters | 29 × 29 | 3.2 / 4.3 / 5.9 |
| The same site with three tracking tags (UTM) | 110 characters | 45 × 45 | 2.3 / 3.0 / 4.2 |
| The tracking example further down, with four tags | 128 characters | 49 × 49 | 2.1 / 2.8 / 3.9 |
| A contact card with name, phone, email and website | 167 characters | 53 × 53 | 2.0 / 2.6 / 3.6 |
At 160 pixels, the tagged code's squares are about 30% smaller than the short one's. The camera has to come closer, or the code has to grow.
So keep the address short where you can, and choose a larger size when you can't.
Denso Wave, which created the QR code, asks for a clear margin four squares wide on every side (Denso Wave). This quiet zone lets the camera find the code's edge, so don't crop it or set text against it.
Level M restores up to 15% of a damaged code and is the level most often chosen (Denso Wave). Higher levels add squares, and a code on a screen doesn't get scuffed or wet.
Keep the squares dark and the background light, because a reversed code fails on some phones.
Give the image a solid white background, too. In dark mode, a dark reading pane shows through a transparent image, and dark squares on a dark pane disappear.
Track QR code scans with UTM tags
To see visits from a QR code in Google Analytics, add UTM (Urchin Tracking Module) tags to its address. Google asks for utm_source, utm_medium and utm_campaign every time.
Google also suggests utm_content for telling two calls to action in one email apart (Google Analytics Help). Give the code utm_content=qr and the button utm_content=button:
https://www.example.co.uk/christmas-evening?utm_source=newsletter&utm_medium=email&utm_campaign=christmas-evening&utm_content=qr
Google treats tag values as case sensitive, so Newsletter and newsletter end up as two sources. Write every value in lower case.
Tags make the address long: this one is the 128-character row of the table. Put the tagged address behind a short redirect on your own site, such as example.co.uk/xmas, or let your email platform add the tags after the scan.
UTM tags count visits that reach your website, not scans. A code that goes straight to your page leaves your email platform blind to scans.
Counting scans in the email report needs the code to pass through a redirect that records each one first.
Quishing: why filters and readers distrust QR codes
Criminals hide phishing links in QR codes, a trick called quishing, so a QR code in a business email meets more suspicion than a plain link.
Action Fraud received 784 reports of quishing between April 2024 and April 2025, with almost £3.5 million lost (Action Fraud, June 2025).
The National Cyber Security Centre (NCSC) gives three reasons criminals like codes in email. People are wary of odd links, not every security tool scans images, and personal phones may lack a work computer's protection.
The NCSC tells readers to take care when an email asks them to scan a code (NCSC, February 2024).
Filters have caught up. Since December 2023, Microsoft's built-in protection for cloud mailboxes reads QR codes in an email's body and blocks the phishing it finds (Microsoft Learn).
So the address in your code is judged like any other link. In organisations with Defender for Office 365, Microsoft Safe Links checks the links beside it.
A genuine code passes both tests when it looks nothing like a scam. Readers learn the signs of spam and phishing email, so avoid every one of them:
- Send a code only for something the reader expects: a ticket they booked or a voucher they signed up for.
- Never use a code for signing in, paying or confirming an account. Those are the requests quishing emails make.
- Point the code at the domain in your sender address, not at a link shortener.
- Print the same address as a text link, so a careful reader can check it before scanning.
QR code in email signatures
A QR code in an email signature rarely helps. Readers on a phone can't scan it, blocked images hide it, and it adds a picture to every reply in a thread.
Size limits it too. Gmail allows signature images up to 100 pixels high (Gmail Help). At 100 pixels, our 30-character address gives squares of 2.7 pixels, and the contact card's shrink to 1.6.
Embedded images also make each reply heavier. When we tested email signature sizes, an embedded 400-pixel logo took a one-line reply from 1.4 kilobytes (KB) to 14.3 KB.
A code in every signature also teaches people that scanning codes from email is normal, the habit quishing depends on.
A typed line such as "Book a call: example.co.uk/call" does the same job on every screen.
Email address QR codes that open a new message
An email address QR code is the reverse of everything above. It is a QR code to email you, printed on a poster, receipt or counter card, that opens a new message when scanned.
It holds a mailto: address, and the standard for those, RFC (Request for Comments) 6068, lets it fill in the subject and the body too (RFC Editor). The garden centre could print one on its wreath order card:
mailto:[email protected]?subject=Christmas%20wreath%20order
This one starts an email titled "Christmas wreath order", ready to fill in. This kind of code belongs on paper: someone with your email in front of them can press reply.
Add a QR code block in MailGraf
In MailGraf, a QR code is a block in the drag and drop email editor. MailGraf draws the code image for each recipient at send time.
Open Content, find QR code in the Dynamic group and drop it where the code should appear. Under QR opens, choose Web page, File from your media library, or Personal.
Personal is the ticket option. Enter a Destination, such as your check-in page, and MailGraf adds each contact's ID or email address to it, so every guest gets a different code.
Choose Contact ID under Added detail. Anyone who scans a code can read the address inside it, and the panel warns that an email address would show there.
MailGraf makes the codes; the page they open has to recognise the ID and check the guest in.
With Count QR scans on, the code goes through a MailGraf tracking address and every scan is counted. A tap on the code from a phone reader opens the same page and counts as a QR click (Add a QR code block).
That tracking address is about 135 characters long. At the default settings, a counted code is a 49 × 49 grid whatever page it opens, so under Size choose Medium (160 px) or Large (220 px), not Small (120 px).
If UTM parameters are on in the campaign's Settings, MailGraf adds them between the scan and your page. They don't make the code denser.
Switch Count QR scans off and the code holds your address exactly as typed. Scans then no longer reach the report.
Alt text fills itself in from the address; rewrite it to say what the code is for. Note below puts "Scan with your phone camera." under the code; change it to your own instruction and add a text link after it.
The campaign report then shows a QR scans card with unique and total scans, and a QR clicks line for taps on the image. Click the card to see who scanned.
QR clicks count towards the Clicks card, but scans don't, so they never inflate your click rate (Read a campaign report).
MailGraf prices its plans by monthly sends, with no cap on contacts. Inviting your whole customer list to one evening doesn't push you into a bigger contact band: compare the monthly plans and pick the send allowance your event emails need.
Originally published: Dec 1, 2026


