run-length encoding (rle) is a very simple form of lossless data compression. in rle "runs" of data (that is, sequences in which the same data value occurs in many consecutive data elements) are stored as a single data value and count, rather than as the original run.