A rapid in situ analytical method was developed for the detection of generated carcinogenic aromatic amines from banned azo dyes utilizing a photocatalytic reduction-based liquid microjunction surface sampling (LMJSS)-mass spectrometry (MS) system. We utilized photocatalytic reduction under UV irradiation with TiO2 as catalyst to have rapid and mild reduction of azo dyes. The reaction conditions were optimized to have complete photocatalytic reduction within 2-5min in pure methanol at room temperature. TiO2 was immobilized in the inner wall of the capillaries in the LMJSS system to achieve in situ sampling-online rapid reduction-MS detection for aromatic amines originating from azo dyes in packaging surface. The yields of in-tube photocatalytic reduction were near 100% by delivering the azo dye extracts through the capillary at 1μL/min under UV irradiation. With this design, in situ analysis was completed within 2min via direct MS detection and 7min via liquid chromatography (LC)-MS detection. The detection limits for five aromatic amines originating from four different azo dyes were in the range of 1-17mg/kg with relative standard deviations (RSDs) < 8.5%. In the application of the new method, four carcinogenic aromatic amines were detected and identified in three commercial packaging materials, and the quantitation results were comparable with those obtained by the conventional chemical reduction-LC-MS method (relative recovery, 81-121%). Moreover, due to the spatial resolution of the present method with a flow probe, MS imaging was achieved demonstrating clear azo dye patterns of a lab-made sample.