A one-dimensional photonic crystal (1DPhC) with a defect layer is utilized as an optical filter in a simple realization of narrow linewidth LED-based sources. The 1DPhC comprising TiO2 and SiO2 layers is characterized by two narrow defect mode resonances within the 1DPhC band gap, or equivalently, by two peaks in the normal incidence transmittance spectrum at wavelengths of 625.4 nm and 697.7 nm, respectively. By combining the optical filter with LEDs, the optical sources are employed in interferometry experiments, and the defect mode resonances of a Lorentzian profile with linewidths of 1.72 nm and 1.29 nm, respectively, are resolved. In addition, a simple way to tune the resonances by changing the angle of incidence of light on the optical filter is demonstrated. All-dielectric optical filters based on 1DPhCs with a defect layer and combined with LEDs thus represent an effective alternative to standard coherent sources, with advantages including narrow spectral linewidths and variable output power, with an extension to tunable sources.