Passive differential optical absorption spectroscopy (DOAS) is widely used to monitor the three-dimensional distribution of atmospheric pollutants. However, the observational and retrieval accuracy of this technique is significantly influenced by the precise wavelength calibration of solar spectra. Current calibration methods face challenges in automation when dealing with complex remote-sensing conditions. We introduce a novel automatic wavelength calibration algorithm for passive DOAS based on sequence-matching technology to estimate the spectral parameters of the spectrometer channels, integrating advanced processing measures such as feature structure enhancement and sub-pixel interpolation. These measures significantly reduce the dependency on reference spectrum resolution and accurately correct even minor spectral shifts. We perform sensitivity experiments using synthetic spectra to determine optimal retrieval configurations, followed by field tests at four cities on the Yangtze River Delta, China, to calibrate and compare passive DOAS instruments of various resolutions. Comparative verification in these field studies demonstrated that our algorithm was suitable for rapid spectral calibration within a wider resolution range of 0.03 nm to 0.1 nm with a wavelength inversion error < 0.01 nm. This highlights the applicability and calibration precision of our algorithm.