The Burrows-Wheeler Transform (also known as Block-Sorting) is at the base of compression algorithms which are the state of the art in lossless data compression. In this paper we analyze two algorithms which use this technique. The first one is the original algorithm described by Burrows and Wheeler, which, despite its simplicity, outperforms the Gzip compressor. The second one uses an additional run-length encoding step to Improve compression. We prove that the compression ratio of both algorithms can be bounded in terms of the k-th order empirical entropy of the input string for any k greater than or equal to 0 We make no assumptions on the input and we obtain bounds which hold in the worst case, that is, for every possible input string. ...