Advancements in nanofabrication technology have greatly facilitated research on nanostructures and their associated properties. Among these structures, subwavelength components have emerged as promising candidates for ultra-compact optical elements, can potentially supplant conventional optical components and enable the realization of compact and efficient optical devices. Spectral analysis within the infrared spectrum offers a wealth of information for monitoring crop health, industrial processes, and target identification. However, conventional spectrometers are typically bulky and expensive, driving an increasing demand for cost-effective spectral sensors. Here we investigate three distinct subwavelength grating structures designed to function as narrowband filters within the short-wavelength infrared (SWIR) range. Through simple adjustments to the period of grating strips, these filters selectively transmit light across a wide wavelength range from 1100 to 1700 nm with transmission exceeding 70% and full width at half maximum (FWHM) down to 6 nm. Based on a simple design, the results present great potential of subwavelength grating filters for multiband integration and developing ultra-compact spectral sensors.