The short message function of the BeiDou satellite system, due to its strong concurrent processing capabilities, can quickly and accurately send information to the target location in emergency situations. However, because of data redundancy and limitations on message length, a single piece of information often requires multiple transmissions through BeiDou short messages to be completed, resulting in limited transmission capacity. To improve the transmission capacity of information, it is necessary to compress the information during transmission using BeiDou’s short message communication function for maritime safety information. This paper proposes a Byte Encoding-enhanced Prediction by Partial Matching, variant D (BPPMd) algorithm that is particularly suitable for transmitting maritime safety information. Combined with a maritime safety information encoding algorithm (ME), it further improves compression efficiency, optimizes byte space, reduces information redundancy, and ensures the accuracy of the information. In this study, we constructed a maritime safety information dataset that includes three categories of information: meteorological warnings, navigation warnings, and disaster warnings. Experimental results show that the proposed algorithm is particularly suitable for compressing the maritime safety information dataset and outperforms other benchmark algorithms. Therefore, this study indicates that the proposed lossless compression method can be a feasible and effective solution for BeiDou short message communication.