The invention discloses an angle adjustable railway headlamp which comprises a base plate. The upper surface of the base plate is fixedly connected with the lower surface of the body of a first motor,the output shaft of the first motor is fixedly connected with the lower surface of a driving gear, the driving gear is meshed with a driven gear, the upper surface of the driven gear is fixedly connected to the bottom of a threaded rod, the outer surface of the threaded rod is in threaded connection with a thread cap, the left side of the thread cap is fixedly connected with the right side of a slider, and the left side of the slider is lapped with the left side of the inner wall of a first slide chute. By the arrangement of the first motor, the driving gear, the driven gear, the threaded rod, the thread cap, a connecting block, a first pulley, a toothed bar, a gear, a second motor and a first connecting rod, the illumination of the lamp body is wider, people can have a better view of some places, and the probability of an accident can be lowered.