In this paper, a pressure-type ocean wave sensor based on fiber Bragg grating is designed for offshore ocean wave height measurement. The article illustrates the measurement principle of the sensor by integrating its structure. The performance of the ocean wave sensor is evaluated through calibration experiments, resulting in a characteristic curve of temperature versus pressure. A comparison test with the SBF3-2 wave buoy was conducted in the field, revealing that the trends in wave height eigenvalues are consistent, with a correlation coefficient exceeding 0.85. The pressure-type fiber Bragg grating ocean wave sensor designed in this paper has the features of underwater passive, anti-electromagnetic interference, and fast signal transmission. This sensor offers a novel optical method for offshore wave height measurement and demonstrates significant application potential.