This paper proposes a swing-magnet-type generator that utilizes environment vibration for energy harvesting applications. This device consisted of a liquid, a swing magnet with a float, and a coil, and it was expected to generate electricity using the minute vibration of a bicycle. The vibration of the wide frequency band of the bicycle was converted into a vibration of a low-frequency mover. The yoke size of the permanent magnet affected the linkage flux and swing characteristics. Therefore, we verified the effect of the mover characteristics on the swing moment by structural simulations and vibration experiments using a linear motor. The yoke size changed the torque, which affected the resonant frequency of the swing. The magnetic-field analysis revealed the effect on the flux linkage in the yoke. The output voltage of the generator in the bicycle was 2.1 V, which could power a light-emitting diode.