The invention provides an oil coating device for a railway sleeper bolt. The oil coating device effectively solves the problems of larger amount of workers, low efficiency, high labor intensity, and easiness in fatigue in the railway maintenance process. The oil coating device adopts the technical scheme that the oil coating device comprises a casing, wherein a flat plate is arranged in the casing; a sun gear is arranged at the upper end surface of the flat plate; the surrounding of the sun gear is engaged with a plurality of planetary gears; the outer side of each planetary gear is engaged with an inner toothed ring, and a first gear is arranged at the upper end of the sun gear; a cylindrical block is arranged in the casing, a spline hole is formed in the cylindrical block, a hollow pipeis arranged in the spline hole, a first cylinder is arranged on the hollow pipe, the outer circumference surface of the first cylinder is of a spline structure, the sun gear is rotated to drive the cylindrical block to rotate through the first cylinder, the lower end of the cylindrical block penetrates through a lower side plate of the casing, and a polygonal screw nut sleeve hole is formed in thelower end of the cylindrical block, is provided with a downward opening, and is concentric with the spline hole. The oil coating device has the advantages that the structure is skillful, the number of required workers in the railway maintenance is effectively reduced, the oil coating efficiency is greatly improved, the labor intensity is decreased, and the automation degree in railway maintenanceis improved.