Abstract Optical cross-correlation is a technique that can achieve both high specificity and high sensitivity when deployed as the basis for a sensing technology. Offering significant gains in cost, size and complexity, it can also deliver significantly higher signal-to-noise ratios than traditional approaches such as absorption methodologies. In this paper, we present an optical cross-correlation technology constructed around a bespoke customised Fiber Bragg Grating (FBG). Exploiting the remarkable flexibility in design enabled by multiple aperiodic Bragg gratings, optical filters are devised that exactly mimic the absorption features of a target gas species (for this paper, acetylene $$C_2H_2$$ C2H2 ) over some waveband of interest. This grating forms the heart of the sensor architecture described here that employs modulated optical cross-correlation for gas detection. An experimental demonstration of this approach is presented, and shown to be capable of differentiating between different concentrations of the $$C_2H_2$$ C2H2 target gas. Furthermore these measurements are shown to be robust against interloper species, with minimal impact on the detection signal-to-noise arising from the introduction of contaminant gases. This represents is a significant step toward the use of customised FBGs as low-cost, compact, and highly customisable photonic devices for deployment in gas detection.