Text compression plays an important role and it is an essential object to decrease storage size and increase the speed of data transmission through commmunication channels. This research aims to combine two compression methods in one data compression system. The first algorithm is Shannon-fano coding that is a stastical compression method for creating the code lengths of a integer-length prefix code, the second method is Oring Bits that deals with data streams of 0 and
1.