The invention relates to a swing bike saddle capable of generating electricity, and belongs to the field of bike manufacturing. The swing bike saddle is composed of a saddle, a swing rod, a swing rod sliding block, a swing rod sliding groove device, a gear and rack device, an eccentric wheel device and a small electric generator and is characterized in that the upper portion and the saddle are connected through screws, one side is movably connected with a swing rod rotating shaft, the swing rod can swing around the swing rod rotating shaft, the other side and a gear connecting shaft are fixed together, the swing rod sliding block is located on the lower portion of the swing rod, and the swing rod sliding block and the swing rod are fixedly connected together; the swing rod sliding groove device is composed of a swing rod sliding groove, a sliding groove side plate, a supporting rod, a bearing frame and the swing rod rotating shaft, the gear and rack device is composed of a gear connecting shaft, a gear, a rack and a rack sliding groove, and the eccentric wheel device is composed of a connecting rod and an eccentric wheel and is capable of driving the small electric generator to rotate. The swing bike saddle has the advantages of effectively ensuring that the bike saddle moves along with the human body during bike riding to reduce local fatigue of the human body, and electricity energy can be generated to supply electricity.