To separate oil–water mixtures especially in oil field operations, new energy-efficient methods are urgently required. Conventional separation techniques using demulsifiers for separation of oil–water mixtures or even use of membranes usually suffered from high cost and energy consumption, composition dependency of demulsifiers and fouling or inability of a single membrane to separate all types of oil–water mixtures. This research aimed to synthesize tungsten oxide-coated stainless steel mesh using the hydrothermal method, with a focus on evaluating its effectiveness in oil–water separation. The coating procedure was carried out using hydrothermal techniques, with an emphasis on investigating the impact of precursor concentration, pH levels, reaction temperature and duration, on the separation efficiency of the optimal coating solution. The hydrothermally coated stainless steel mesh was created within a polytetrafluoroethylene reaction vessel, submerged in a 150 ml aqueous solution containing 0.0094 mol of sodium tungstate di-hydrate at pH 3.0, achieved through the addition of hydrochloric acid. Additionally, 1 g of oxalic acid, acting as a chelating agent, was introduced. Subsequently, the mesh underwent a 4 h reaction at 220 °C and was subsequently annealed for 30 min in a 350 °C furnace. Remarkably, the resultant mesh exhibited an exceptional water separation flux of 9870 ± 15 L/hr/m2 when exposed to 1:1 v/v oil–water mixtures. This performance significantly outperformed previous filters designed for similar oil–water separation tasks. The mesh efficiently facilitated the passage of water through the oil–water mixture, achieving an efficiency rate exceeding 98 ± 1%. To gauge its wetting behavior, the hydrophilic/underwater oleophobic filter underwent static contact angle measurements. The filter's wetting mechanism was primarily attributed to its hierarchical surface structure, which enhanced surface hydrophilicity and roughness. Analytical techniques such as XRD, FTIR, and FE-SEM were employed to scrutinize the fabricated filter's composition. These analyses confirmed the successful creation of a nanostructured WO3 coating on both sides of the stainless steel mesh. Moreover, the utilization of commercially available chemicals and straightforward fabrication techniques underscores the promising potential of this approach for large-scale applications.