The conductive channel evolution in Na:WO3−xfilms is visualized byin situoptical imaging combined with near-field infrared imaging techniques.