In this paper, we report an experiment about the device-independent tests of classical and quantum entropy based on a recent proposal [Phys. Rev. Lett. 115, 110501 (2015)], in which the states are encoded on the polarization of a biphoton system and measured by the state tomography technology. We also theoretically obtained the minimal quantum entropy for three widely used linear dimension witnesses. The experimental results agree well with the theoretical analysis, demonstrating that lower entropy is needed in quantum systems than that in classical systems under given values of the dimension witness.