A lens device includes a seat unit, a swingable lens module having a guide member, a rotatable cam unit, first and second biasing components, and a first lens module. The swingable lens module is movable relative to the seat unit along an optical axis while the guide member is biased by the first biasing component to abut against a spiral guide surface of the rotatable cam unit. The swingable lens module is pivotable relative to the seat unit about a pivot pin that extends parallel to the optical axis with the guide member being pushed by a pushing surface of the rotatable cam unit to a retreating position, and is biased by a second biasing component toward a retracting position. The first lens module is disposed at one side of the swingable lens module opposite to the seat unit along the optical axis.