A typewriter is a mechanical or electromechanical device used for writing characters similar to those produced by a printer's movable type. It was widely used for creating documents before the advent of computers and word processors.