All-optical light control plays an important role in optical signal processing and communications. In this Letter, we demonstrate an all-optical inverter using carbon nanotube (CNT)-polyvinyl alcohol (PVA) thin film and obtain a long-time stable output due to the environmental insensitivity of the d