Abstract Herein, the development of a one-dimensional all-inorganic perovskite nanofibers produced via a common route of electrospun is studied. Indeed, a series of inorganic perovskite nanofibers are synthesized via an electrospun approach. The following CsPbX3 (X = Cl, Br and I) nanofibers indicate composition-tunable photoluminescence (PL) emissions over the particular visible light window (from 450 to 670 nm), consisting of effective tunability of the optical properties. In this case, we present that the hybrids (CsPbX3) with various halide ratios, the method can be tunable in terms of morphology and optical. By tuning the composition of the CsPbX3 nanofibers, a power conversion efficiency of 7.79% under AM1.5G (cell area 0.5 cm2) has been approved. The all-inorganic nanofibers by electrospun has exhibited to be a valuable action to perform absorber layer that increase light benefit and charge collection for perovskite solar cells.