The invention discloses an automobile charging pile wire winding device and a method thereof. The automobile charging pile wire winding device comprises a charging pile body, a charging gun is arranged on the right side of the charging pile body, a charging wire is movably installed at the bottom of the charging gun, and an infrared sensor is fixedly installed on the portion, corresponding to thecharging gun, of the right side of the charging pile body. According to the automobile charging pile wire winding device and the method thereof, through arrangement of the charging pile body, the charging gun, the charging wire, a bearing block, a supporting base, a motor, a winding shaft, fixing plates, torsional springs, a winding wheel, a fixing frame, connecting springs, baffles and the infrared sensor, the external charging wire can be automatically wound after charging is finished, it is guaranteed that the charging wire can not be ground, and damage is prevented; and meanwhile, the problems that the charging wire is prone to being damaged or electric leakage is prone to occurring due to the fact that the charging wire on the ground is prone to being ground by vehicles when some vehicle owners directly plug a charging head into the charging pile again and neglect the position of the charging wire after charging is completed are solved.