This book presents the theory of lossless compression methods and lossy compression methods, explain the principle and algorithm for each method, focuses on the lossless compression methods including general-purpose methods which can be used for all types of files. General Purposes Lossless Compression Engine (GPLCE) has been built using three methods (Huffman, LZW, RLE) to compress all types of files.