A working machine includes a machine body, a traveling device provided on the machine body, a traveling motor configured to provide power to the traveling device and to be switched between a first speed and a second speed, a traveling operation member to be operated by an operator, an operation detector to detect an operation extent of the traveling operation member, a traveling pump driven in response to the operation extent to supply operation fluid to the traveling motor, a revolution detector to detect a motor revolving speed, and a controller configured to switch the traveling motor from the second speed to the first speed when the motor revolving speed is equal to or less than a deceleration threshold, and then to switch the traveling motor from the first speed to the second speed when the motor revolving speed is equal to or greater than a return threshold.