A scanner is a hardware device used to convert physical documents or images into digital format. It works by capturing the image or text on the document and converting it into a digital file that can be stored, edited, or shared. Scanners are commonly used in offices, libraries, and homes for various purposes such as scanning documents, photos, or artwork. They are connected to a computer or other devices through cables or wirelessly, allowing the scanned files to be transferred and accessed easily.