Abstract This work presents an analysis of an ocean wave energy harvesting system. This system is composed of a direct current (DC) power generator attached at the middle-top of a floating platform. A pendulum is connected to the generator’s shaft. It is considered that the ocean waves motion swings the platform in the vertical direction, which transfers energy to the pendulum, making possible to convert mechanical energy, induced by the ocean wave, into a rotational motion due the pendulum and after in electric energy due the generator. With the objective to optimize the harvested power, several analyses of the pendulum parameters, ocean wave amplitude and frequency were carried out. This work was based on the Brazilian’s coast characteristics. Numerical and experimental results were performed which shows the efficiency of the conversion of mechanical energy provided by the pendulum into electric power.