Cyanide (CN-) is a highly toxic compound that exists in many substances and is harmful to the environment and human health. Therefore, it is of great significance to develop excellent CN- ion probes, especially solvent-induced on-off fluorescent probes. Based on the condensation reaction of indolo[2,1-b][1,3]oxazine molecules with aldehydes, probes (E)-13a-(2-(9-ethyl-9H-carbazol-3-yl)vinyl)-14,14-dimethyl-10-nitro-13a,14-dihydro-8H-benzo[e]benzo[5,6][1,3]oxazino[3,2-a]indole (NCO) and (E)-13a-(2-(9-benzyl-9H-carbazol-3-yl)vinyl)-14,14-dimethyl-10-nitro-13a,14-dihydro-8H-benzo[e]benzo[5,6][1,3]oxazino[3,2-a]indole (NBO) were synthesized to detect CN-. Compared with other cyanogen ion probes, NCO and NBO have special carbazole ring structures and large conjugate systems. When CN- is added to the probe-detection solution, color changes that are visible to the naked eye can occur. The UV-vis spectrum test using differential spectroscopy shows that the probe (i) has excellent solvent-induced switching characteristics and stability (CH3OH-H2O) and (ii) high selectivity, anti-interference ability, and sensitivity for the detection of CN-. The fluorescence limit of detections (LODs) are 1.05 µM for NCO and 1.34 µM for NBO. The UV LODs are 0.83 µM for NCO and 0.87 µM for NBO. Fluorescence spectroscopy shows that the probe has remarkable fluorescence properties. Fluorescence titration experiments, liver cancer cell (Hep G2) imaging, and cytotoxicity experiments all show that the probes have high biocompatibility, low toxicity, high cell permeability, and high sensitivity for the detection of CN- in cells. In addition, NCO and NBO have been successfully used for the detection of cyanogenic glycosides in the seeds of ginkgo, crabapple, apple, and cherry. Test strips were fabricated to detect CN-. After adding CN-, the color of the test strip changed significantly-from brown to light yellow; thus, the test strips have a high application value in the fields of drug quality control, drug safety testing, and pharmacological research.