This is the method used to compress files, reducing their size and making them more portable. It’s also used in order to restore data back to its previous form during a decompression process. Once decompressed, the data can be used as normal. There are two main types of compression algorithms, each with their own advantages and disadvantages.