There are two main types of compression - lossy and lossless. They differ in the way they process the data, the quality of the results, and the file formats that they’re used for. Also, lossy compression produces smaller files, while lossless files take up more storage space.