Expiring and dynamic codes

Expiring QR codes: what they are and when to use them

An expiring QR code stops working after a set date or number of scans. How they work, good uses like tickets and offers, their limits, and what to check first.

An expiring QR code is a code that stops working after a set point: a date, a time window, or a number of scans. After that, scanning it shows a message such as “This offer has ended” instead of the original content. They’re useful for event tickets, limited-time offers, temporary access, and time-sensitive documents, where a code that kept working forever would be a problem. Ordinary static QR codes don’t expire on their own; expiry is something a service adds.

How expiring QR codes work

A QR code is only printed text, so the pattern itself can’t know what day it is. Expiry has to be checked by something else when the code is scanned. There are two common approaches.

Most expiring codes are a kind of dynamic code. The code holds a short link to the service’s server. Each time someone scans it, the server checks the rules (the date, the time, the number of scans so far) and either forwards them to your content or shows an “expired” page.

  • Needs the internet at scan time.
  • Works with any scanner, because it’s an ordinary link.
  • Depends on the service staying online, and on your plan.
  • Can often be changed after printing: extend the date, or end it early.

A code checked by an app

Tickets and passes often use a different design. The code contains data, such as a ticket number, validity dates, and a digital signature, and it’s checked by the organizer’s scanning app. The app rejects a code that’s expired, has been used, or has been altered. To anyone else, it’s just text.

  • Works offline at the gate, if the app has what it needs.
  • Only works with the organizer’s app, not with ordinary scanners.

Static vs dynamic QR codes explains the link-based approach in more depth.

When an expiring code makes sense

Use Why expiry helps
Event tickets and passes A code can’t be reused after the event, or at the wrong time
Limited-time offers and coupons The discount ends when the campaign does, even on printed flyers
Temporary documents A shared file or form is only reachable for a set period
Short-term access instructions Directions or codes for a rental, visit, or delivery are valid only for that stay
Time-limited sign-ups Registration closes on time, even if the poster stays up

When a regular code is better

  • Codes that should last for years, such as a restaurant menu, a business card, or product packaging. Expiry would just create broken codes.
  • Codes that must work offline with any scanner, such as Wi-Fi details or a contact card.
  • Codes you don’t want to depend on a service for. A static code keeps working as long as its content is valid, with no subscription.

Do QR codes expire? explains why ordinary codes keep working, and what can make them stop.

The limits of expiry

Expiry can’t take back what people already saw

If a code revealed something, such as a password, an address, or a discount code, the person who scanned it still knows it after the code expires. Expiry controls access to the link, not people’s memory or screenshots.

Wi-Fi codes are a special case

A Wi-Fi QR code contains the network name and password themselves. Even if the code stopped working, anyone who already scanned it could still join. For temporary Wi-Fi access, use a guest network you can switch off, or change the password when access should end. How to share Wi-Fi with a QR code covers guest networks.

An expired code is still printed

People will keep scanning an expired code on a poster or flyer. Make the expiry message helpful: say what ended and where to go now, rather than showing an error.

What to check before using an expiring code

  • What happens after expiry? A clear message, a redirect to a new page, or an error?
  • Can you change the date after printing, to extend or end it early?
  • Does it need an account or subscription, and what happens to all your codes if the plan ends?
  • Does it need internet to scan? Will it work where your audience is?
  • Does it work with ordinary scanners, or only one app?
  • What data does the service collect from people who scan?

Common questions

Can I make an existing QR code expire?

Not a static one: its content is printed in the pattern. If it links to a page you control, you can take the page down or replace it with an “ended” message, which has the same effect. Can you change a QR code after printing it? explains how.

Is an expiring QR code more secure?

It reduces how long a code can be misused, which helps with tickets and offers. It doesn’t stop someone from copying a code while it’s valid. For entry, combine it with one-time use checked by an app.

Do expiring codes track people?

Link-based ones can: the service sees each scan and can record details such as the time, a rough location from the IP address, and the device type. Check the service’s privacy policy, especially if you’re sharing codes with the public.

Browse all QR code guides.

All QR codes guides