In this study, at two different fifth generation (5G) low-frequency bands (3.7–4.2 GHz and 5.975–7.125 GHz) and based on nonuniform transmission lines (NTLs) theory, a compact three-quarter-wave resonators interdigital bandpass filter (IBPF) is analyzed, designed, and fabricated. The compact proposed filter is considered as a good candidate for reconfigurable 5G low-frequency bands and ultrawide band (UWB) antenna, which will reduce the size of the final RF communication system. Firstly, a uniform transmission line (UTL) IBPF at these two bands is designed and tested; then the NTL concept is applied for compactness. For both UTL and NTL IBPFs, different parametric studies are performed for optimization. At the first frequency band, size reductions of 16.88% and 16.83% are achieved in the first (symmetrical to the third resonator) and second λ/4 resonator of UTL IBPF, respectively, with up to 36.6% reduction in the total area. However, 16.46% and 16.33% size reductions are obtained in the first (symmetrical to the third resonator) and second λ/4 resonator, respectively, at the second frequency band with a 40.53% reduction in the whole circuit area. The performance of the proposed NTL IBPF is compared with the UTL IBPF. The measured reflection coefficient of the proposed NTL IBPF, S11, appears to be less than −10.53 dB and −11.27 dB through 3.7–4.25 GHz and 5.94 GHz–7.67 GHz, respectively. However, the transmission coefficient, S12 is around −0.86 dB and–1.7 dB at the center frequencies, fc= 3.98 GHz and 6.81 GHz, respectively. In this study, simulations are carried out using high-frequency structure simulator (HFSS) software based on the finite element method (FEM). The validity of the proposed theoretical schematic of this filter is proved by design simulations and measured results of its prototype.