This study presents a novel approach to fabricating anodic Co−F−WO 3 layers via a single-step electrochemical synthesis, utilizing cobalt fluoride as a dopant source in the electrolyte. The proposed in situ doping technique capitalizes on the high electronegativity of fluorine, ensuring the stability of CoF 2 throughout the synthesis process. The nanoporous layer formation, resulting from anodic oxide dissolution in the presence of fluoride ions, is expected to facilitate the effective incorporation of cobalt compounds into the film. The research explores the impact of dopant concentration in the electrolyte, conducting a comprehensive characterization of the resulting materials, including morphology, composition, optical, electrochemical, and photoelectrochemical properties. The successful doping of WO 3 was confirmed by energy dispersive spectroscopy (EDS), X-ray diffraction (XRD), Raman spectroscopy, photoluminescence measurements, X-ray photoelectron spectroscopy (XPS), and Mott−Schottky analysis. Optical studies reveal lower absorption in Co-doped materials, with a slight shift in band gap energies. Photoelectrochemical (PEC) analysis demonstrates improved PEC activity for Co-doped layers, with the observed shift in photocurrent onset potential attributed to both cobalt and fluoride ions catalytic effects. The study includes an in-depth discussion of the observed phenomena and their implications for applications in solar water splitting, emphasizing the potential of the anodic Co−F−WO 3 layers as efficient photoelectrodes. In addition, the research presents a comprehensive exploration of the electrochemical synthesis and characterization of anodic Co−F−WO 3 , emphasizing their photocatalytic properties for the oxygen evolution reaction (OER). It was found that Co-doped WO 3 materials exhibited higher PEC activity, with a maximum 5-fold enhancement compared to pristine materials. Furthermore, the studies demonstrated that these photoanodes can be effectively reused for PEC water-splitting experiments.