Skip to content

01Calendar code

Create a QR code for a calendar event.

A trade show, a wedding, a meeting: the code holds the event itself, with its title, times and place. On scan, the phone offers to add it to the calendar, with no link and no server.

What the code contains
Read offline, added to the phone’s calendar.
Empty: the same day as the start.
Each phone will show the time in its own time zone.
To attach to an email or link to from your website.

Fill in the form: the code appears here.

    SVG or PDF for print, PNG for screens.

    AppearanceColors, shapes, frame, logo

    Colors

    Module shape

    Finder pattern shape

    Decorative: only the code in the center is read.
    Logo in the center
    PNG, JPEG or SVG, 2 MB at most.
    The higher it is, the better the code resists wear, but the denser it gets.

    Several codes? Bulk creation

    Static code: it never expires.

    02How it works

    The event
    in the code.

    The code holds the event in the calendar format (iCalendar). The phone reads it offline and adds it to the calendar in use: Google Calendar, Apple Calendar, Outlook. The code can also hold a pre-filled Google Calendar link.

    Enter the venue’s local time: the generator writes it in universal time (UTC), and each phone shows it at its own local time. For an all-day event, only the dates are written.

    Uses: save-the-dates, wedding invitations, trade shows, conferences, open houses, meetings, appointments.

    03The syntax

    What the code
    contains.

    A VEVENT block, the event in .ics files (iCalendar), reduced to the essentials. It is the form QR code readers read[3][4]. For a book fair on March 20, 2027, from 10 a.m. to 6 p.m., Paris time, our generator writes:

    BEGIN:VEVENT
    SUMMARY:Book fair
    DTSTART:20270320T090000Z
    DTEND:20270320T170000Z
    LOCATION:Parc Chanot\, Marseille
    DESCRIPTION:Free entry\; book signings\, workshops
    END:VEVENT
    179 characters: a version 9 code, 53 × 53 modules, at error correction level M.
    • Times in UTC. 10 a.m. in Paris in March is 9 a.m. in universal time, hence the final Z[1]. Without Z, the time would be “floating”: 10 a.m. everywhere, in Paris and in Montreal alike[1].
    • No named time zone. TZID=Europe/Paris would require a full VTIMEZONE block[1], and ZXing ignores it: it would read the time in the phone’s time zone[4].
    • Seconds written. Without them (T090000Z), ZXing ignores the whole event[4].
    • Escaped characters. Backslash, semicolon and comma are preceded by a backslash; a line break is written \n. Colons are not escaped[1].
    • CRLF line endings, as the standard requires[1].

    An all-day event

    Without a time, only the date. The end is exclusive: the day after the last day, as in the standard’s festival example[1]:

    BEGIN:VEVENT
    SUMMARY:Festival
    DTSTART;VALUE=DATE:20270628
    DTEND;VALUE=DATE:20270709
    END:VEVENT
    You enter July 8; the generator writes July 9.

    What the code does not contain

    A full .ics file adds a VCALENDAR wrapper and two mandatory fields, UID and DTSTAMP[1]. QR code readers do without them, like ZXing’s example[3], and the code would be longer. Lines are not folded at 75 bytes, which the standard recommends without requiring[1]. The downloadable .ics file has all of this.

    04The event or the link

    In the code,
    or in Google Calendar.

    Two kinds of content for the same event:

    • The event itself: read offline, added to the calendar in use. Apple does not document what the iPhone camera does with it[7].
    • A Google Calendar link: it opens event creation, pre-filled, following Google’s model[2]. A Google account is required, and the person saves the event.
    https://calendar.google.com/calendar/r/eventedit?action=TEMPLATE&text=Book%20fair&dates=20270320T090000Z%2F20270320T170000Z&details=Free%20entry%3B%20book%20signings%2C%20workshops&location=Parc%20Chanot%2C%20Marseille
    The same book fair as a Google Calendar link: 218 characters, 57 × 57 modules (version 10), versus 53 × 53.

    Dates are in ISO 8601, in UTC with Z, separated by %2F[2]. For an all-day event, the generator writes the dates alone, with the same exclusive end; Google does not document this form: check on a device.

    The link suits a Google Calendar audience, or an event that would make the code too dense. For an invitation or a program, the event in the code works with no account and no connection.

    The .ics file

    “Download the .ics file” saves the same event, to attach to an email or link to from your website. The file is complete: VCALENDAR with VERSION and PRODID, UID and DTSTAMP[1], lines folded at 75 bytes without splitting an accented character[1], served as text/calendar[1].

    BEGIN:VCALENDAR
    VERSION:2.0
    PRODID:-//QR Samurai//QR code generator//EN
    BEGIN:VEVENT
    UID:7c1e5f2a-3b4d-4e6f-9a0b-1c2d3e4f5a6b@qrsamurai.com
    DTSTAMP:20261121T093000Z
    SUMMARY:Book fair
    DTSTART:20270320T090000Z
    DTEND:20270320T170000Z
    LOCATION:Parc Chanot\, Marseille
    DESCRIPTION:Free entry\; book signings\, workshops
    END:VEVENT
    END:VCALENDAR
    
    The book fair as an .ics file. The UID changes with each download; it is fixed here for the example.

    05iPhone and Android

    What the phone
    does.

    Only what is documented or measured is stated; the rest is marked “To test on a real device”.

    Reading an event QR code, by reader
    ReaderRecognizes the eventTime in UTC (Z)All-day event
    Our decoder (ZXing)Yes, measured by our tests: title, place, description and times unchangedYes, converted to an absolute time[4]Yes; ZXing’s Android app subtracts a day from the end to display it[5]
    Android: Google’s reader (ML Kit)The “calendar event” type is recognized[6]A flag says whether the time is in UTC[6]To test on a real device What the camera app does with it is not documented.
    iPhone: cameraTo test on a real device Apple does not document this case[7].To test on a real device Not documented.To test on a real device Not documented.

    The phone offers to add the event; the person accepts. The added event is a copy: if the date changes, the printed code will not correct it.

    06Pitfalls

    What makes people
    miss the event.

    • A shifted time. A “floating” time (without Z) displays as is everywhere, wrong in another time zone. The generator always writes UTC.
    • One day short. For an all-day event, the end is the day after the last day[1]. Writing the last day itself shortens the event.
    • A link that goes through a service. Some “calendar QR codes” lead to a page on the site that made them: they stop with that page or with the subscription. The generator’s Google Calendar link goes straight to Google.
    • A date that moves. You must reprint. For a program that changes, make a code to a page on your site.
    • Too much text. Every character makes the code denser: keep the description short and the details on a web page.
    • Several events. A code holds only one. For a whole calendar, use a link to an .ics subscription or a program page.

    07Print size

    A dense code,
    to print large.

    An event holds more text than a link: the code is denser and must be printed larger. For the example (53 × 53 modules), our size calculator gives:

    Minimum side of the example code (version 9) by reading distance
    MediumReading distanceMinimum sideModule
    Invitation card, save-the-date25 cm5.5 cm1 mm
    Flyer, program held in hand40 cm8.5 cm1.6 mm
    Poster at the entrance1.5 m32 cm6 mm

    Common rule, not yet measured by us: test a print with several phones, at the intended distance.

    08Questions

    Frequently
    asked questions.

    Does the scan add the event on its own?

    No. The phone offers to add it; the person accepts or not. Apple and Google do not document exactly what the camera does.

    Do I need an app?

    On Android, Google’s reader recognizes events. On iPhone, nothing is documented: if the camera offers nothing, a QR reader app will. Test before printing.

    Is it compatible with Google Calendar, Outlook and Apple Calendar?

    The code uses iCalendar, the format these calendars share; the phone chooses where to add it. For Google Calendar, the generator can also write a pre-filled link.

    Can I download the event as a .ics file?

    Yes: the “Download the .ics file” button, below the fields.

    What if the time or date changes?

    You need a new code, and people who added it keep the old version. For a program that may change, make a code to a page on your site.

    Will the code expire?

    No, it goes through no server. The event, of course, has its date.

    Can I include a video call link?

    Yes, in the location or the description. The calendar app decides whether it becomes clickable.

    Can I put several events in one code?

    No, only one. For a program, make a code to a web page or an .ics subscription.

    Is my information sent anywhere?

    No. The code is built in your browser: nothing leaves your device.

    09Sources

    Sources
    and dates.

    Every technical claim on this page links to one of these sources, with the date it shows and the day we read it.

    1. [1]

      RFC 5545: Internet Calendaring and Scheduling Core Object Specification (iCalendar)IETFSections 3.1, 3.2.19, 3.3.5, 3.3.11, 3.6, 3.6.1, 3.7.3, 3.7.4, 3.8.2.2, 3.8.4.7, 3.8.7.2 and 8.1.Date shown: September 2009 · accessed November 21, 2026

    2. [2]

      Invite users to an event: Provide a link for users to add the eventGoogle for Developers, Google CalendarLink r/eventedit?action=TEMPLATE: text, dates, details, location. The all-day form is not described there.Date shown: September 3, 2026 · accessed November 21, 2026

    3. [3]

      Barcode Contents: Calendar eventsZXing project, wikiNo date shown · accessed November 19, 2026

    4. [4]

      ZXing: VEventResultParser.java, CalendarParsedResult.java, VCardResultParser.javaZXing project, source codeCode read at commit 16ef432. ZXing is also QR Samurai’s decoder.No date shown · accessed November 19, 2026

    5. [5]

      ZXing: CalendarResultHandler.java (Android app)ZXing project, source codeNo date shown · accessed November 19, 2026

    6. [6]

      ML Kit: Barcode scanning and Barcode.CalendarDateTimeGoogle for DevelopersRecognized types, including “calendar events”. CalendarDateTime only exposes a UTC flag, not a time zone.Date shown: November 9, 2026 · accessed November 19, 2026

    7. [7]

      Scanner un code QR avec la caméra de l’iPhoneApple, iPhone user guideCovers websites, apps, coupons and tickets; nothing on calendar events.No date shown · accessed November 19, 2026