1. Introduction
Organic–inorganic hybrid perovskites with the ABX
3 structure exhibit direct bandgaps, high absorption coefficients, and long carrier diffusion lengths [
1,
2,
3]. High-quality films and single crystals show low defect densities and efficient charge transport properties [
4,
5,
6]. Their band structure and optical response can be tuned by compositional modification, enabling applications in solar cells [
7], light-emitting diodes [
8], lasers [
9], and photodetectors [
10].
Bandgap engineering can be achieved by adjusting the A-site cation, the B-site metal, or the X-site halide. Among these strategies, halide substitution at the X-site is the most convenient. Increasing Br
− content widens the bandgap and blueshifts the luminescence, while increasing I
− content narrows the bandgap and redshifts the emission [
11,
12,
13]. This tunability makes halide perovskites attractive for applications that require precise control over absorption or emission wavelengths, such as tandem solar cells, tunable lasers, and full-color displays [
11,
12,
13,
14]. Post-synthesis anion exchange offers clear advantages over direct synthesis of mixed-halide perovskites. Direct synthesis requires re-optimization of preparation conditions for each composition and often suffers from inhomogeneity or phase segregation [
15]. By contrast, anion exchange is performed on pre-synthesized perovskites with good morphology and crystallinity. This method decouples film formation from composition control, enabling wide-range bandgap tuning while preserving the original microstructure. Accordingly, anion exchange has become a widely used method for bandgap engineering in halide perovskites.
The majority of studies on anion exchange have been carried out using solution-based methods owing to the simple and mild conditions [
16,
17]. Compared with liquid-phase treatment, vapor-phase anion exchange has attracted extensive attention because of its advantages, including more uniform reaction and less damage to the films. Although vapor-phase exchange avoids solvent-induced damage and preserves film structure better [
18,
19], the detailed mechanism of halide conversion under vapor conditions is still under exploration. Kim et al. achieved in situ Br
−/I
− exchange in perovskite films through a vapor-phase halide exchange method and systematically investigated the exchange kinetics process [
20]. The study by Barrit et al. reported that through a gas–solid interfacial sequential halide exchange/vapor-assisted reaction approach, a stepwise transformation from single-halide (e.g., I
−) to mixed-halide (I
−/Br
−) lead-based perovskite thin films was achieved, resulting in CH
3NH
3Pb(I
1−xBr
x)
3 films with precisely tunable bandgaps [
21]. Karimata et al. further pointed out that during the halide exchange process, perovskite crystals could achieve compositional regulation and bandgap tuning while maintaining their original morphology [
22]. These previous works on vapor-phase anion exchange, including the study by Zhang et al. on the CH
3NH
3PbI
3/CH
3NH
3Br system, mainly focused on replacing I
− with Br
− using CH
3NH
3Br vapor at controlled evaporation rates [
23]. In that system, Br
− substitution is more favorable because the activation energy for vacancy migration of Br
− along the (100) direction (0.258 eV) is lower than that of I
− (0.329 eV). Zhang et al. described the process as a direct solid–gas reaction: CH
3NH
3PbI
3 + xCH
3NH
3Br → CH
3NH
3PbI
3−xBr
x + xCH
3NH
3I and proposed a logarithmic relationship between Br content and reaction time, attributing the kinetic behavior to the slow release of CH
3NH
3Br vapor. Whether vapor-phase anion exchange using CH
3NH
3I in a tube furnace can effectively substitute Br
− with I
− in CH
3NH
3PbBr
3 films, and the underlying mechanism of such an exchange process, remains to be elucidated.
In this work, vapor-phase anion exchange of CH3NH3PbBr3 crystalline films with CH3NH3I was carried out in a tube furnace. The characterizations of structural and optical properties show a gradual conversion from CH3NH3PbBr3 to CH3NH3PbI3. The photoluminescence (PL) peak shifts continuously from ~550 nm to ~790 nm, the absorption edge moves from ~560 nm to ~810 nm, and the optical bandgap decreases from 2.23 eV to 1.55 eV. A significant increase in the resistivity of the ITO substrate was observed after the anion exchange. Based on these systematic measurements, the anion exchange mechanism was discussed. The results demonstrate that vapor-phase anion exchange enables continuous bandgap tuning over a broad spectral range, providing a simple and effective route for composition engineering in hybrid perovskites. In addition, this work provides an experimental basis for substrate selection in vapor–solid anion exchange or thermal synthesis of perovskite based on CH3NH3I and reveals that ITO is susceptible to etching by HI.
2. Materials and Methods
The ITO substrates were sequentially cleaned in deionized water, absolute ethanol and acetone, each for 15 min in an ultrasonic bath. The substrates were then wiped repeatedly with absolute ethanol until the surface was thoroughly cleaned. Afterward, the substrates were dried in a vacuum oven. A precursor solution was prepared by dissolving 482.2 mg of PbBr
2 and 147.1 mg of CH
3NH
3Br (the molar ratio of PbBr
2 to CH
3NH
3Br is 1:1) in 1 mL of N,N-dimethylformamide (DMF). The mixture was stirred at room temperature for 6 h to obtain a clear solution. CH
3NH
3PbBr
3 crystalline films were fabricated via the spin-coating method, as shown in
Figure 1. 20 μL of the perovskite precursor solution was dropped onto the substrate fixed on the spin coater. The substrate was then spun at 500 rpm for 5 s and then at 1000 rpm for 20 s. After spin-coating, the substrates were annealed on a hot plate at 120 °C for 45 min to obtain orange CH
3NH
3PbBr
3 perovskite films. For the vapor-phase anion exchange process, 40 mg of CH
3NH
3I powder was placed at the center of the first heating zone in an SK-1200 three-zone vacuum tube furnace, which was set to 190 °C. The as-prepared CH
3NH
3PbBr
3 films were placed at the center of the second zone, maintained at 160 °C, while the third zone was set to the same temperature to ensure thermal stability. Different reaction times were employed to achieve different extents of anion exchange, with a nitrogen carrier gas (99.999% purity) flow of 100 sccm. After the reaction, the samples were cooled naturally to room temperature inside the furnace (approximately 1 °C/min).
The surface morphology of the perovskite films was characterized using a field-emission scanning electron microscope (SEM 450, FEI, Thermo Fisher, Waltham, MA, USA). The crystal structure and phase composition of the perovskite films were analyzed by X-ray diffraction (XRD, Shimadzu, Kyoto, Japan) with Cu Kα radiation (λ = 1.54056 Å), recorded over a 2θ range of 10–70° at a scanning rate of 4°/min. PL spectra were measured using a steady-state fluorescence spectrometer (Hitachi F-7000, Hitachi High-Technologies Corporation, Tokyo, Japan). The absorption edge of the perovskite films was determined using a UV–Vis–NIR spectrophotometer (Lambda 950, PerkinElmer Instruments, Buckinghamshire, UK). Keithley 2460 (Keithley Instruments, LLC, Cleveland, OH, USA) was used to record the current–voltage (I–V) curves of the ITO substrates after 5 h of anion exchange process. The elemental composition of the ITO substrates before and after the anion exchange process was analyzed using X-ray photoelectron spectrometer (XPS, ESCALAB 250Xi, Thermo Fisher Scientific, Waltham, MA, USA). In addition, the elemental composition and relative content of the perovskite films were analyzed by energy-dispersive X-ray spectroscopy (EDS) attached to the SEM.
3. Results and Discussion
Figure 2a shows the XRD patterns of the CH
3NH
3PbI
3−xBr
x films after different reaction times. As the exchange time increases, all diffraction peaks gradually shift to lower angles, indicating the incorporation of I
− into the lattice. CH
3NH
3PbI
3 has a tetragonal structure [
24], whereas CH
3NH
3PbBr
3 belongs to the cubic phase [
25]. At the reaction time of 15 h, the crystal structure has transformed from the cubic phase to the tetragonal phase.
Figure 2b shows the enlarged XRD patterns around 15° of the CH
3NH
3PbI
3−xBr
x films after different reaction times. For the 5 h and 10 h samples, both peaks display poor symmetry and marked broadening, indicating the possible coexistence of the two cubic and tetragonal phases [
26]. At the exchange time of 15 h, the diffraction peak exhibits high symmetry. These results show that iodine substitution can effectively tune the crystal structure of the perovskite films. Rietveld refinement of the XRD patterns for the 5 h and 10 h samples was carried out using the GSAS-II package, with cubic CH
3NH
3PbBr
3 (space group Pm-3m) and tetragonal CH
3NH
3PbI
3 (space group I4/mcm) as starting models. The refinement confirms the coexistence of a cubic phase and a tetragonal phase in both samples, as shown in
Figure 2c,d. The refined lattice parameters show systematic changes. The cubic lattice constant a expands from 6.038 Å to 6.152 Å, while the tetragonal c axis lengthens from 12.098 Å to 12.495 Å. The cubic lattice parameter is significantly larger than that of pure CH
3NH
3PbBr
3 (~5.93 Å), indicating substantial I
− incorporation into the cubic phase, while the tetragonal c axis remains shorter than that of pure CH
3NH
3PbI
3 (~12.62 Å), suggesting considerable Br
− retention in the tetragonal phase. Thus, both phases are described as mixed-halide solid solutions differing in their relative I/Br enrichment, rather than as end-member bromide and iodide phases. Quantitative phase analysis gives a cubic fraction of approximately 68 wt% and a tetragonal fraction of approximately 32 wt% for the 5 h sample. After 10 h, the tetragonal fraction increases to approximately 75 wt% and the cubic fraction decreases to approximately 25 wt%. The refinement yields reliability factors of R
wp = 8.55% and R
p = 5.89%, indicating acceptable agreement between the calculated and observed patterns. The refined weight fractions (~68 wt% cubic and ~32 wt% tetragonal at 5 h; ~25 wt% cubic and ~75 wt% tetragonal at 10 h) represent the relative abundances of the two crystallographic phases, not the halide distribution between them. The estimated standard deviations for the refined parameters are provided in
Table S1 (Supplementary Information).
Figure 3a presents the SEM image of the CH
3NH
3PbBr
3 crystalline film before anion exchange. The surface is covered with uniformly distributed, well-defined block-like crystals that exhibit a cubic morphology. Grain boundaries are relatively clear and sharp, indicating high crystalline quality and a low surface defect density. After 15 h of treatment, the surface morphology undergoes a transformation, as shown in
Figure 3b. The grains become larger, and the originally sharp crystal edges turn somewhat passivated. This morphological evolution is due to the ion migration and lattice reconstruction during the exchange process [
27]. The thickness of the crystalline film was measured by cross-sectional SEM, and the results indicate that the overall thickness of the film falls within the range of 14–25 μm, as shown in
Figure 3c. Previous studies have shown that in halide perovskite systems, halide anions possess low migration barriers and are prone to diffusion under thermal driving or concentration gradients [
28]. During the anion exchange reaction, the ion exchange behavior of the material is predominantly governed by a surface-dominated mechanism, which is usually accompanied by localized dissolution–recrystallization. Specifically, partial dissolution takes place on crystal surfaces, followed by re-nucleation and crystal growth induced by ion redistribution. This process ultimately results in enlarged grain size and reconstructed grain boundaries [
29].
As the reaction time increases from 1 h to 15 h, the I/(I + Br) atomic ratio rises from 0.004 to 0.887, meaning that the composition parameter x in CH
3NH
3PbI
3−xBr
x drops from about 2.98 to 0.34 (
Table 1). This shows a continuous and controllable anion exchange process. Iodine incorporation is very slow in the first few hours. The EDS spectrum and full composition table of the CH
3NH
3PbI
3−xBr
x films measured at different anion exchange times are provided in
Table S2 (Supplementary Information). At 2–3 h, the I/(I + Br) ratio is below 0.05, then increases gradually, and after 10 h jumps to 0.887 at 15 h. This differs from the logarithmic exchange reported by Zhang et al. for Br replacing I in CH
3NH
3PbI
3 films [
23]. The as-prepared CH
3NH
3PbBr
3 film is a kind of discontinuous micrometer-scale crystalline film with few grain boundaries (
Figure 3a,c). The larger I
− cannot easily enter such a compact structure. Therefore, the early stage is not limited by chemistry or vapor supply but by the difficulty of getting I
− into a dense film with few diffusion paths. To find the rate-limiting step, cross-sectional iodine mapping was performed on the 10 h sample (
Figure 3d). The results show that iodine is distributed uniformly across the film thickness. This uniform interior distribution indicates that once I
− manages to get through the top surface, it diffuses rapidly through the perovskite lattice. Thus, the internal diffusion is not the bottleneck. What really limits the early-stage exchange is the entry of I
− into the dense crystalline network. As a certain amount of I
− eventually does get in, it triggers grain growth and grain boundary reconstruction, as shown in
Figure 3b. These microstructural changes create new diffusion pathways that can accommodate the larger I
− ions, making the subsequent exchange much faster. This explains why the iodine fraction stays low before 10 h but then increases sharply afterward.
Figure 4 shows the PL and UV–Vis–NIR absorption spectra of the CH
3NH
3PbI
3−xBr
x films at different reaction times. As shown in
Figure 4a, the pristine CH
3NH
3PbBr
3 film exhibits a PL peak at approximately 550 nm. After a 5 h reaction with CH
3NH
3I, the PL peak redshifts to 625 nm (
Figure 4b), indicating that the incorporation of a small amount of I
− into the lattice has already changed the band structure of the material. With further prolongation of reaction time, the PL peak undergoes a continuous redshift. As displayed in
Figure 4c, the emission peak is located at around 675 nm after 10 h of reaction, whereas it shifts to 790 nm at 15 h (
Figure 4d), which is close to the characteristic emission wavelength of CH
3NH
3PbI
3. The pristine CH
3NH
3PbBr
3 film exhibits an absorption edge located at approximately 560 nm. With prolonged reaction time, the absorption edge gradually moves toward longer wavelengths, which is consistent with the redshift trend of PL emission. Specifically, the absorption edge shifts to ~650 nm after 5 h reaction, reaches ~690 nm at 10 h, and further redshifts to around 810 nm after 15 h. From the perspective of electronic band structure, the substitution of Br
− by I
− alters energy levels of the halide p-orbital and the Pb-X orbital coupling, resulting in an upward shift in the valence band maximum and a reduction in the bandgap [
30]. Therefore, with increasing I content, the absorption edge exhibits a progressive redshift, extending the spectral response from the short-wavelength region toward longer wavelengths within the visible spectrum. These results demonstrate that vapor-phase anion exchange using CH
3NH
3I can not only regulate the chemical composition of the CH
3NH
3PbBr
3 film but also achieve effective modulation of their optical absorption and emission characteristics.
The optical bandgap determines the spectral response range of the material, and a narrower band gap is typically associated with improved light absorption in the long-wavelength region. In this work, the optical bandgaps of the CH
3NH
3PbI
3−xBr
x films were estimated using the Tauc relation for direct-bandgap semiconductors:
where
α is the absorption coefficient,
hν is the photon energy,
c is a constant, and
Eg is the optical bandgap [
31]. As shown in
Figure 5, the Tauc plot indicates that the bandgap of the pristine CH
3NH
3PbBr
3 film is approximately 2.23 eV. After 5 h of reaction, the bandgap declines to 1.95 eV, and further decreases to 1.81 eV at 10 h, finally reaching about 1.55 eV after 15 h. This trend indicates a gradual transition from wide-bandgap to narrow-bandgap characteristics. Previous studies have confirmed that changes in the I/Br ratio significantly affect the absorption edge and emission peak [
32,
33]. The bandgap evolution observed in this work is consistent with these reports. The narrowing of the optical bandgap is attributed to lattice expansion and electronic structure reconstruction induced by halide substitution. Lindblad et al. revealed that the valence band maximum in CH
3NH
3PbX
3 is strongly influenced by halide energy levels; therefore, changing the halide species alters the band structure [
30]. With the gradual substitution of Br
− by I
−, the valence band maximum shifts upward, accompanied by continuous bandgap narrowing. This phenomenon induces the redshift of both absorption edge and PL emission peak. The measured bandgap values are compared with the composition-dependent bandgap relationship reported by Zhang et al. [
23], which is described by the following equation:
where
Eg(
x) refers to the bandgap of CH
3NH
3PbI
3−xBr
x.
Eg(0) and
Eg(3) correspond to the bandgaps of CH
3NH
3PbI
3 (1.58 eV) and CH
3NH
3PbBr
3 (2.23 eV). The bending parameter b (0.90 eV) is related to fluctuation degrees in the crystal field of CH
3NH
3PbI
3−xBr
x.The experimental data points fall almost exactly on the same curves predicted by Equation (1), indicating excellent agreement with the established bandgap–composition relationship.
In addition, a significant increase in the resistivity of the ITO substrate was observed after 5 h of anion exchange, as shown in
Figure 6a. In contrast, a bare ITO substrate annealed under identical conditions (same temperature, N
2 atmosphere, without CH
3NH
3I, 5 h) exhibited negligible change in conductivity, indicating that the resistivity rise is not attributable solely to thermal annealing but is directly associated with the vapor-phase reaction involving CH
3NH
3I. If the anion exchange proceeded as a simple solid-state reaction, i.e., CH
3NH
3PbBr
3 + CH
3NH
3I → CH
3NH
3PbI
3 + CH
3NH
3Br, none of the products would appreciably interact with ITO. Consequently, the actual reaction pathway must be more complex. It is proposed that CH
3NH
3I first undergoes thermal decomposition into methylamine (CH
3NH
2) and hydrogen iodide (HI) in the tube furnace. As a kind of Brønsted acid, HI is highly reactive. On one hand, it reacts with CH
3NH
3PbBr
3 to yield CH
3NH
3PbI
3 and HBr, thereby converting the perovskite layer from bromide to iodide. On the other hand, HI can diffuse to the ITO interface and chemically etch its primary component, In
2O
3 and SnO
2, according to the reaction: In
2O
3 + 6HI → 2InI
3+ 3H
2O, SnO
2 + 4HI → SnI
4 + 2H
2O.
Figure 6b shows the In 3d XPS spectra of the ITO substrates before and after 5 h of anion exchange. XPS analysis corroborates the proposed etching mechanism. Before anion exchange, the In 3d
5/
2 peak of the ITO substrate is located at 444.2 eV, which is consistent with the characteristic binding energy of In
2O
3 [
34]. After the vapor-phase anion exchange treatment with CH
3NH
3I, the In 3d
5/2 peak shifts significantly to 445.2 eV, a value that is characteristic of InI
3 [
34]. This shift of about 1.0 eV toward higher binding energy corresponds to a decrease in electron density at the In sites upon transition from an oxide to an iodide coordination environment. XPS analysis further reveals the complete disappearance of the Sn 3d peaks from the ITO substrate after 5 h of anion exchange (
Figure 6c). This observation indicates that SnO
2, the tin-containing component of ITO, also reacts with HI generated from the thermal decomposition of CH
3NH
3I. The complete loss of the Sn signal is likely attributable to SnI
4 volatilization, based on its low melting point (144 °C) relative to the reaction temperature (160 °C) and the N
2 flow. Direct evidence is absent, as downstream trapping on activated carbon failed to detect Sn, presumably owing to the negligible total Sn mass in the ITO layer (~120 nm, ~10 at%). Accordingly, volatilization is considered the most reasonable hypothesis, though not conclusively proven. The XPS data provides direct experimental evidence for the proposed HI-mediated multiphase reaction pathway. HI diffuses to the ITO interface and reacts with In
2O
3 and SnO
2, disrupting the conductive network, generating high-resistivity InI
3, and leading to a sharp increase in substrate resistivity. Therefore, the vapor-phase anion exchange does not occur via a simple solid-state exchange but rather through a HI-mediated multiphase reaction pathway: CH
3NH
3I → CH
3NH
2 + HI, CH
3NH
3PbBr
3 + HI → CH
3NH
3PbI
3 + HBr.
The proposed mechanism also reveals that, during vapor-phase anion exchange for compositional tuning of perovskites, decomposition byproducts in the reaction atmosphere can cause unintended chemical corrosion of underlying functional layers or electrodes. Therefore, in device integration or patterning processes, attention should be paid to such HI-mediated reactions that compromise the stability of the substrate and electrodes. Mitigation strategies include the use of protective layers, optimization of reaction temperatures, or the adoption of corrosion-resistant electrode materials.