The invention belongs to the transformer production equipment technology field, and especially relates to a transformer pipe penetrating, winding and rubber coating all-in-one machine. The machine comprises a machine base, a driving device, a rotating main shaft displacement device, a wire rod pipe penetrating conveying device, a wire head and wire tail pin winding guide pin device and a double-side rubber coating device. The machine base is provided with a portal frame. The driving device comprises a first guide rail, a first driving mechanism, a moving mechanism, a first linear mechanism anda second linear mechanism, the first guide rail is arranged on the portal frame, the moving mechanism is connected with the first guide rail, the first driving mechanism drives the moving mechanism,the first linear mechanism is arranged on the machine base, and the second linear mechanism is arranged on the first linear mechanism. The rotating main shaft displacement device is arranged on the second linear mechanism. The wire rod pipe penetrating conveying device is arranged on the portal frame, and the wire head and wire tail pin winding guide pin device comprises a wire head pin winding mechanism and a wire tail pin winding mechanism. The double-side rubber coating device is arranged on the machine base. The machine has the advantages that a component moving stroke can be reasonably distributed, and production efficiency of a transformer is improved.