The lifespan of a QR code depends on the type of QR code, the environment in which it is stored, and how it is used. In general, QR codes that are printed on high-quality materials and stored in a protected environment can last for several years.