Dye-sensitized solar cells (DSSCs) are known for their excellent low-light performance, cost-effectiveness, and flexibility. The photoanode has a crucial role in enhancing the overall performance of DSSCs and can be modified with different nanostructures. This study explores the impact of photoanode structure on the power conversion efficiency (PCE) of DSSCs, where four configurations of freestanding TiO2 nanotube arrays (f-TNAs), closed-up, closed-down, open-up, and open-down, were employed as photoanodes. Performance was evaluated based on current density (J(sc)), open-circuit voltage (V-oc), fill factor (FF), and PCE concerning dye adsorption, electrolyte diffusion, electron transport, and barrier layer. DSSCs based on open configurations, open-up and open-down f-TNAs, demonstrated superior performance, achieving PCE of 7.73% and 7.71%, respectively. The primary distinction between the DSSCs based on open-up f-TNAs and those based on open-down f-TNAs lies in the dye adsorption time and electron diffusion characteristics. The PCE for DSSCs with closed-down f-TNAs was measured at 6.78%, while DSSCs with closed-up f-TNAs showed a lower PCE of 5.52%. The presence of a barrier layer under the bottom of f-TNAs impacted the PCE for DSSCs with closed-down f-TNAs, whereas for DSSCs with closed-up f-TNAs, insufficient dye loading, poor electrolyte diffusion and barrier layer reduced the performance.