A 1D or linear barcode is a combination of vertical bars. For some of them you can encode only numbers for other you can encode letters also. Most of barcode scanners can read them scanning just a line. 2D barcode encodes information in two dimensions and therefore can keep a way more information in it. And it is usually smaller than 1D one. More complex scanner is required to read this type of barcodes.