In terms of mechanical, chemical, and corrosion properties, the current research investigates the effect of nanotube’s length by increasing the water content on the electrolyte. Self-assembled titanium dioxide (TiO2) nanotube was synthesized by electrochemical anodization using a neutral medium of ethylene glycol and ammonium fluoride. The experiments were carried out with two different water vol%. Subsequently, crystalline phases were achieved by annealing the sample at 550 °C. A scanning electron microscope confirmed that an increase in water content elevates the length of nanotube by three times than under normal conditions. The results demonstrate that the increased length of nanotube thus attained enhanced corrosion resistance and mechanical properties. © 2020, Springer Nature Switzerland AG.