Solution processed all-inorganic lead halide perovskites are widely utilized to develop photodetectors (PDs) due to their excellent optoelectronic properties. The low-cost TiN electrode not only has better corrosion resistance than Ag electrode but also possesses good conductivity comparable to Au electrode, but the utilization of TiN electrode in perovskite PDs has been rarely reported.