A facile approach of polypyrrole (PPy)/tungsten oxide (WO3) composites electrosynthesized in ionic liquids for fabrication of electrochromic devices is discussed. The electrochromic properties of PPy/tungsten oxide nanocomposite films (PPy/WO3) prepared in the presence of four different ionic liquids, 1-butyl-3-methylimidazolium tetrafluoroborate (BMIMBF4), 1-butyl-3-methylimidazolium hexafluorophosphate (BMIMPF6), 1-butyl-3-methylimidazolium bis (trifluoromethylsulfonyl) imide (BMIMTFSI), and 1-butyl-1-methylpyrrolidinium bis(trifluoromethylsulfonyl) imide (BMPTFSI) were investigated in detail. Cyclic voltammetry results revealed that PPy/WO3 nanocomposite films have much more electrochemical activity than those of WO3 and PPy film. The electrochromic contrast, coloration efficiency, and switching speed of the composite films were determined for electrochromic characteristics. The maximum contrast and the maximum coloration efficiency values were measured as 33.25% and 227.89 cm(2)/C for the PPy/WO3/BMIMTFSI composite film. Copyright (C) 2015 John Wiley & Sons, Ltd.