There are two kinds of USB cable connectors. The USB-A type is a long, flat rectangle for connecting devices like keyboards and mice. The USB-B type is a smaller, squared connector for connecting external hardware like HDD, scanners and printers. Cables are interchangeable if they are the same type.