The invention relates to a window system for an intraoral scanner. Said window system has an optical element (20) with a thermal conductivity of more than 1 W m-1 K-1. A window (30), which has a pane (31) made for example of a plastic, glass or corundum, is releasably arranged on the optical element (20) spaced apart therefrom at an average distance of less than 1 mm. At least one heat source (40) is also connected to the optical element (20). The invention further relates to an intraoral scanner. Said intraoral scanner has the window system. The optical element (20) and the at least one heat source (40) are connected to the intraoral scanner. The window (30) is arranged in a cover. Said cover can be arranged on the intraoral scanner such that the window (30) is spaced apart from the optical element (20) at an average distance of less than 1 mm.