A travel switch comprises a substrate (1), a supporting seat (2), an electric connector (3), a spring (4), a rotating shaft component (5), a clamping block (6), a brake block (7), a piston (8), a clamping post (9), contact pieces (10), a spring plate component (11) and an end cover (12), wherein the supporting seat (2) is fixedly connected to the substrate (1), the electric connector (3) is connected with the supporting seat (2),and the rotating shaft component (5) is positioned on the inner side of the substrate (1). The travel switch has the advantages of small size and small mass; because a casing is totally made of metal, the shielding and sealing effects are good, and the travel switch is free from height change influence; the components have the advantages of higher reliability, shock resistance, vibration resistance, and good accelerating effect; outputting is performed by the connector, so that but joint with mating parts is facilitated; the spring is adopted for controlling the rotating shaft component, so that the synchronicity of the product is good, and the switching time is short; the technical performance is good, and the switch can be used at a temperature between minus 55 DEG C to 70 DEG C.