A scanner is a device that optically scans objects like printed text or handwriting and converts it into a digital image that can be transferred to and viewed on a computer screen. It works by placing the object on the glass window, where it is illuminated and its image captured by a sensor array, usually CCD, with red, green, and blue filters, that converts it into a digital file. Scanners are used to scan objects into files that can be saved and managed on a computer.