A sterilizing device comprises a light guiding member and an ultraviolet (UV) light source. The light guiding member has a surface. The UV light source emits UV light rays such that the UV light rays are guided into the guiding member based on a total internal reflection. When an object contacts or comes close to the surface, an evanescent wave from the UV light rays irradiates on the object.