A 1D (or linear) code is the most common type of barcode — the kind found on grocery and other consumer items. Scanners with a 1D in the scan engine column can only read this type of code. A 2D code uses patterns of squares, dots, hexagons, and other shapes, and can be smaller than a linear code because it holds more data using both vertical and horizontal dimensions — for example, a QR code.