Huffman coding is a lossless data compression algorithm. It assigns shorter binary codes to more frequent characters and longer codes to less frequent ones. This helps reduce the overall size of the encoded data.