LZW is an algorithm used for data compression. The algorithm is lossless so the compressed data can be uncompressed without losing any information. The algorithm is used in the GIF file format and variations of it are used when compressing files in ZIP archives.