Electrochromic device is made up of transparent conduction layer, electrochromic layer, electrolyte layer and counter electrode layer. In this paper, we used a sol-gel method, which could decrease the cost, to prepare the WO 3 electrochromic film. We firstly spin-coated the precursor on the ITO glass and then annealed the WO 3 film at different temperature. Finally, we covered the electrolyte layer on the WO 3 film and assembled it into electrochromic device. The film was investigated by Scanning electron microscope (SEM), X-ray diffraction (XRD) and UV spectrophotometer. We found the precursor’s color will change from yellow to white after it was stirred over 4h. After comparison, the film annealed at 573K could get the highest contrast ratio.