In this study, an electromagnetic energy harvester for a low-frequency ocean wave was developed in a compact 3D-printed structure. Ocean wave energy conversion technologies exist, but maintaining them in the harsh marine environment is crucial for business. Friction increases maintenance costs. Therefore, magnetic levitation, being friction-free, is used for cost-effective, low-maintenance electromagnetic energy harvesting applications. Low-frequency oscillating energy is captured using repulsive magnetic levitation with a buoy and generating electricity using a permanent magnet and copper coil. A levitating magnet is repelled by a fixed one, inducing electricity as it passes through a coil. Experiments with a 0.1 Hz sine wave mimic the average frequency of ocean waves, showing successful voltage peaks at intervals. The output voltage and measured power from the harvester exhibit variations influenced by multiple parameters. The maximum output voltage observed was 3.4 V and an average of 99 mW of power was calculated. The experiment demonstrates the feasibility of using repulsive magnetic levitation for low-frequency wave energy harvesting and also encompasses various harvester configurations, including transfer magnet forces and top magnets.