The invention discloses a matrix type two-dimensional code and an encoding method and a decoding method thereof. The matrix type two-dimensional code comprises a matrix, wherein the matrix consists of N*N modules and comprises a data area and a finder pattern, the data area is used for storing data information, the finder pattern is arranged around the data area, the data area comprises a default module, a line odd-even check unit, a row odd-even check unit and a CRC (cyclic redundancy check) unit, the default module is arranged at a vertex of the data area, the line odd-even check unit comprises N-3 line odd-even check bits for storing line odd-even check codes, the row odd-even check unit comprises N-3 row odd-even check bits for storing row odd-even check codes, the CRC unit comprises eight CRC bits for storing CRC codes, and an information storage unit comprises a plurality of information bits for storing the data information. The matrix type two-dimensional code has the advantages that the error checking capability is high, some types of errors can be corrected, a correction pattern is not needed, the number of bar code modules is fewer, the data encoding mode is simple, the encoding efficiency is high, and the number of redundancy information is fewer.