A replaceable forehead liner for the continuous positive airway pressure machine, which includes a base, a support, and a locking member. The base has a plurality of flexible pads and a connecting member for bridging the flexible pads. The support has a plurality of support pillars and a support plate connecting the support pillars. The support pillars, the support plate, and the flexible pads form a hollow area, and each support pillar has a hollow hole. The hollow area and holes make the support pillars elastic and compressible. The locking member forms off the surface of the support pillars and the support plate, with the locking member being wider than the side of the hollow area. The locking member has a locking portion for engaging to the clipping portion of the CPAP mask. Functionally, the replaceable forehead liner is more secured and improves pressure relief for the user.