How to make a Calendar event QR code

An event QR code adds a date, time and place to someone’s calendar in one scan. It belongs on posters, invitations, tickets and conference schedules.

Updated · from 4 official sources · DRISH LABS

What the code contains

A QR code is text. For this kind, the text has to follow this exact pattern:

BEGIN:VEVENT
SUMMARY:<title>
DTSTART:<YYYYMMDDThhmmssZ>
DTEND:<YYYYMMDDThhmmssZ>
LOCATION:<place>
END:VEVENT

Filled in, it looks like this:

BEGIN:VEVENT
SUMMARY:Spring Market
DTSTART:20270418T090000Z
DTEND:20270418T150000Z
LOCATION:Town Hall Square
END:VEVENT

What happens when someone scans it

Phone cameras usually recognise an event and offer to add it to the calendar for review. Neither Apple’s nor Google’s scanning help documents this format specifically, so scan the code on an iPhone and an Android phone before you print.

Make one free

  1. Open the QR Code Generator and leave it on Text.
  2. Paste the VEVENT block, one property per line, with your own title, times and place.
  3. Write the times in UTC with a trailing Z (e.g. 20270418T090000Z), or without the Z for a local “floating” time.
  4. Download the code and test it on both kinds of phone.

Open the free QR code generator — it runs in your browser and uploads nothing.

So it works when it is printed

  • A time ending in Z is UTC (RFC 5545 §3.3.5); convert from your local time, or every scanner abroad will show the wrong hour.
  • This bare VEVENT is the QR convention ZXing documents. A strict iCalendar file also needs UID and DTSTAMP (RFC 5545 §3.6.1); adding them makes the code larger but does no harm.
  • Keep the description out: title, times and place are enough, and every extra line makes the code harder to scan.
  • Scan the finished code with two different phones before you print a batch — it is the only test that counts.

Questions

How do I write the date and time in an event QR code?
As YYYYMMDDThhmmss — for 9 a.m. on 18 April 2027, 20270418T090000. Add Z for UTC; leave it off for a time read as local wherever the phone is.
Can an event QR code repeat weekly?
iCalendar allows a repeat rule (RRULE), but phone scanners handle it unevenly and it enlarges the code. For a recurring event, a link to a calendar page is more dependable.
Why does the event appear at the wrong time?
The time was written as UTC (with Z) but meant as local, or the other way round. Decide which, and convert before encoding.

Sources

Requirements change without notice. Check the official source before you rely on a figure here.

QR Craft iconThe faster way

QR Craft

A QR code generator for Mac that adds your logo and checks it scans.

Not today? Get an email when QR Craft gets better
QR Craft on macOS