USB-B (Universal Serial Bus Type-B) is a rectangular or square-shaped connector commonly used to connect peripheral devices like printers, scanners, and external hard drives to a host device, such as a computer. Unlike USB-A, which plugs into the host, USB-B plugs into the device being connected.