The study explores the feasibility of using a photovoltaic (PV) energy system to produce hydrogen for off-site hydrogen refueling stations (HRS) in three Iraqi cities (Karbala, Maysan, and Nineveh), focusing on a comprehensive system model consisting of a 558 MWp off-grid photovoltaic system, a 157.5 MWp proton exchange membrane (PEM) electrolyzer, a converter, and a hydrogen storage tank. Utilizing HOMER Pro software for system simulation and MATLAB, with consedaring 28 years from 2022 to 2050 life span, incorporating hourly weather data for 2022 to optimize system performance. The outcomes identify that the Karbala city as the most cost-effective for green hydrogen production, highlighting the economic benefits of PV technology, which presents the most economical option with a levelized energy cost of $5,010/GWh. The project is projected to produce 10.61 million kg of hydrogen annually at a production cost of $2.75/kg, with an overall project cost estimated at $372.77 million. The results are of strategic significance for Iraq transportation sector, supporting the development of a robust green hydrogen infrastructure for HRS. This infrastructure is expected to promote sustainable transportation practices and reduce reliance on fossil fuels, contributing significantly to the energy transition in Iraq. This techno-economic analysis provides a foundational assessment for stakeholders considering investments in renewable hydrogen production and infrastructure development.