Ultraviolet light influences materials structure causing the decomposition and degradation of organic compounds. One of the ideas to reduce the harmful effects of light is to protect materials by sol-gel coatings. ZnO sol-gel thin films on a glass substrate were obtained as optical filters. The filter effect of synthesized coatings stabilized in different temperatures were characterized by UV-Vis transmittance spectroscopy. The morphology and elemental composition of coating surface was determined by SEM and EDX. Scratch resistance and adhesion have been evaluated by scratch test. The coatings present high transparency in the visible region and absorption in the UV region (270-360 nm). The results suggest that the obtained materials have proper parameters for UV optical filters.