A high-performance vertically injected broadband UV-to-IR photodetector based on Gd-doped ZnO nanorods (NRs)/CH3NH3PbI3 perovskite heterojunction was fabricated on metal substrates. Our perovskite-based photodetector is sensitive to a broad spectral range, from ultraviolet to infrared light region (λ = 250–1357 nm). Such structure leads to a high photoresponsivity of 28 and 0.22 A/W, for white light and IR illumination, respectively, with high detectivity values of 1.1 × 1012 and 9.3 × 109 Jones. Optical characterizations demonstrate that the IR detection is due to intraband transition in the perovskite material. Metal substrate boosts carrier injection, resulting in higher responsivity compared to the conventional devices grown on glass, whereas the presence of Gd increases the ZnO NRs performance. For the first time, the perovskite-based photodetector is demonstrated to extend its detection capability to IR (>1000 nm) with high room temperature responsivity across the detected spectrum, leading to a high-performance ingenious cost-effective UV-to-IR broadband photodetector design for large-scale applications.