DataMatrix barcode is a 2D (two-dimensional) matrix barcode consisting of black and white "cells" or modules arranged in either a square or rectangular pattern. The information to be encoded can be text or raw data. Usual data size is from a few bytes up to 2 kilobytes. The length of the encoded data depends on the symbol dimension used. Error correction codes are added to increase symbol strength: even if they are partially damaged, they can still be read. DataMatrix 2D barcode symbol can store up to 2,335 alphanumeric characters.
DataMatrix 2D barcode symbols are rectangular in shape and usually square, they are made of cells: little elements that represent bits. Depending on the situation a "light" module is a 0 and a "dark" module is a 1, or vice versa. DataMatrix 2D barcode is composed of two solid adjacent borders in an "L" shape (called the "finder pattern") and two other borders consisting of alternating dark and light "cells" or modules (called the "timing pattern"). Within these borders are rows and columns of cells encoding information. The finder pattern is used to locate and orient the symbol while the timing pattern provides a count of the number of rows and columns in the symbol. As more data is encoded in the symbol, the number of cells (rows and columns) increases. Symbol sizes vary from 8×8 to 144×144.