Depending on the type and capability, barcode scanners read both traditional one-dimensional (1D) bars, and/or two-dimensional (2D) bars such as QR codes.