QR code
A QR code encodes text in a two-dimensional grid of modules with error correction, letting cameras recover the data even when part is damaged.
Scan failures are usually a missing quiet zone, insufficient contrast, or too small a printed size rather than a problem with the encoded data. Continue with QR Code Generator: a practical guide for the longer explanation.