The invention relates to a power generation type car vibration energy recycling shock absorber, and provides a pinion-and-rack rotating power generation car shock absorber which aims to recycle vibration energy of a car for power generation and enables the purposes of vibration attenuation and energy recovery to be achieved. The pinion-and-rack rotating power generation car shock absorber is formed by an upper hanging ring, a dust-proof cover, a lower hanging ring, an upper hanging ring rod, a shell, a shaft, a rack, a pinion, a big hypoid gear, a small hypoid gear, a motor stator, a motor rotor, a lower hanging ring connecting base, a linear bearing, a linear bearing pedestal, three rolling bearings and an end face bearing. The pinion-and-rack rotating power generation car shock absorber has the advantages that reciprocating vibration mechanical energy of a car frame and a car body of the car can be recycled and can be converted to rotating mechanical energy through the rack and the gears, the relative rotation of the motor rotor and the motor stator is achieved so that power generation can be carried out, and the vibration attenuation can be achieved through magnetic resistance torque between the stator and the rotor and gear meshing resistance.