In recent years, significant advancements have been made in the research of photoswitchable probes. These probes undergo reversible structural and electronic changes upon light exposure, thus exhibiting vast potential in molecular detection, biological imaging, material science, and information storage. Through precisely engineered molecular structures, the photoswitchable probes can toggle between “on” and “off” states at specific wavelengths, enabling highly sensitive and selective detection of targeted analytes. This review systematically presents photoswitchable fluorescent and colorimetric probes built on various molecular photoswitches, primarily focusing on the types involving photoswitching in their detection and/or signal response processes. It begins with an analysis of various molecular photoswitches, including their photophysical properties, photoisomerization and photochromic mechanisms, and fundamental design concepts for constructing photoswitchable probes. The article then elaborates on the applications of these probes in detecting diverse targets, including cations, anions, small molecules, and biomacromolecules. Finally, it offers perspectives on the current state and future development of photoswitchable probes. This review aims to provide a clear introduction for researchers in the field and guidance for the design and application of new, efficient fluorescent and colorimetric probes.