We demonstrate a method for denoising narrowband optical signals at the kHz and MHz level outperforming typical narrowband filters. This scheme is robust to potential drifts affecting the central frequency of the signal to process and avoids the necessity to know precise parameters of said signal.