Hazcams (short for hazard avoidance cameras) are photographic cameras mounted on the front and rear of NASA's Spirit, Opportunity, Curiosity and Perseverance rover missions to Mars and on the lower front portion of Chinese Yutu rover mission to the Moon.
The Curiosity rover's hazcams are sensitive to visible light and return black and white images of resolution 1024 × 1024 pixels. These images are used by the rovers' internal computer to autonomously navigate around hazards. Due to their positioning on both sides of the rovers, simultaneous images taken by either both front or both rear cameras can be used to produce a 3D map of the immediate surroundings. As the cameras are fixed (i.e. can not move independently of the rover), they have a wide field of view (approximately 120° both horizontally and vertically) to allow a large amount of terrain to be visible.
They are considered engineering cameras since they were not designed to be used for scientific experiments. The other set of engineering cameras on the rovers are the navcams.
The safe landing of the Mars Science Laboratory was initially confirmed using the vehicle's hazcams.
The Perseverance cameras are qualified to operate in temperatures at the poles of Mars and image correctly over a 100 °C (212 °F) temperature range. 
- List of NASA cameras on spacecraft
- Mars rover
- Navigation Camera (Navcam)
- Panoramic Camera (Pancam)
- "Hazard Avoidance Camera (Hazcam)". PDS Geosciences Node. Retrieved September 4, 2019.
- Goncharenko, Roman (2021-03-01). "Perseverance on Mars: Jenoptik's eyes for the red planet rover". Deutsche Welle. Retrieved 2021-03-14.