USB-A vs USB-B: Two Roles, Two Shapes
Quick answer / TL;DR: Short answer: USB-A is the flat rectangular connector found on computers, chargers and hubs, and it is the host end. USB-B is the squarish connector found on printers, scanners, audio interfaces and older external drives, and it is the device end. A normal cable is A to B. An A-to-A cable is non-standard and can damage hardware.
Five shells, one family: the plug shape does not set the speed.USB-A and USB-B are the same electrical standard in two different housings, and the housing is the point. One end is designed to plug into the host, the other into the device, so a cable cannot be used to connect two computers together by accident.
That design decision explains almost every practical question about these connectors: why the printer port is square, why an A-to-A cable is a warning sign, and why the cable that charges a phone is not the cable that connects a printer.
The Roles Behind the Shapes
A USB connection has a host that controls the bus and a device that responds to it. The host side uses Type-A: flat, rectangular, with the contacts visible in the upper part of the shell. The device side uses Type-B in its full-size form: roughly square with two chamfered corners, which prevents it being inserted upside down.
| Connector | Shape | Role | Typical equipment | Notes |
|---|
| USB-A | Flat rectangle | Host | PC, laptop, hub, charger, TV | Carries VBUS power out |
| USB-B | Square, chamfered | Device | Printer, scanner, DAC, audio interface | Full-size only, no mini version |
| USB Mini-B | Small trapezoid | Device | Older cameras, GPS units | Deprecated, 5,000 mating cycles rated lower |
| USB Micro-B | Small flat trapezoid | Device | Phones before USB-C, power banks | Still common on small electronics |
| USB 3.0 Micro-B | Wide micro with extra block | Device | Portable drives, USB 3 hubs | Carries the extra SuperSpeed pair |
The asymmetry is deliberate. If both ends were Type-A, a user could join two hosts together and back-feed power into a port that was never designed to accept it. The specification forbids A-to-A cables for that reason, which is why the ones sold as transfer cables have electronics in the middle.
Which Cable Goes With Which Device
| Device | Port on device | Cable needed | Common confusion |
|---|
| Inkjet or laser printer | USB-B | A to B | Buying A to A because both ends look like computer ports |
| Flatbed scanner | USB-B | A to B | Same |
| USB audio interface or DAC | USB-B | A to B | USB-C models now exist; check the port |
| External 2.5 inch drive | Micro-B or USB-C | A to Micro-B or C to C | Assuming all drives are C |
| Phone or tablet | USB-C or Lightning | C to C or A to C | Charging cable may be power-only, no data |
| Keyboard or mouse | USB-A | A to A is internal only | Wireless receivers use A directly |
The power-only cable deserves separate mention. Many cables supplied with chargers contain only the two power conductors and no data pair. They charge normally and fail silently when used for a printer or a drive, which sends people looking for a driver problem that does not exist.
Does USB-B Limit Speed?
No. The connector shape says nothing about the data rate, within a generation. A USB 2.0 A-to-B cable carries 480 Mbps, and a USB 3.0 A-to-B cable carries 5 Gbps, using the same Type-B shell with an added block of contacts stacked on top. The shell is backward compatible: a USB 2.0 A-to-B cable fits a USB 3.0 printer port and runs at 480 Mbps.
- Check the port, not the plug, when diagnosing slow transfers
- A USB 3.0 Type-B port accepts both cable generations but only runs at 5 Gbps with a 3.0 cable
- Printers and audio interfaces rarely exceed USB 2.0 speeds anyway
- External drives are the case where the cable generation actually changes throughput
Real-World Applications
Office printer that stopped working after a cable swap
The most common cause is a charge-only cable taken from a phone charger drawer. The printer lights up but never appears in the device list, because there is no data pair. Replacing it with a known data cable resolves it without touching drivers.
Home studio audio interface
Audio interfaces still favour USB-B because the shell is mechanically stable on a desktop and the connector is rated for repeated insertion. Keep the cable under 3 m for bus-powered units: longer cables add resistance on VBUS and can cause dropouts that look like driver instability.
Point-of-sale and label printers
Retail installations often run A-to-B over 5 m and then wonder why jobs spool slowly or fail. USB 2.0 does not support passive runs that long reliably; use an active extension or a powered hub at the midpoint.
Standards and Verification
Connector dimensions, mating cycles and the prohibition on A-to-A cables are defined in the USB specifications published by the USB Implementers Forum. The electrical limits referenced above come from the same documents and from the USB Battery Charging specification.
- USB 2.0 Specification: connector types, 480 Mbps signalling, VBUS limits
- USB 3.2 Specification: SuperSpeed pairs and the USB 3.0 Type-B shell
- USB Battery Charging Specification 1.2: charging ports and detection
- USB Type-C Specification: the current device-side standard
- USB-IF compliance programme for cable assemblies
To verify a cable in hand, look for the USB-IF certification mark on the overmould, check the shell for the SuperSpeed block on 3.0 assemblies, and test data transfer rather than charging when the cable is unknown.
Related reading: USB cable types explained — blogs/news/usb-cable
Related reading: USB-B cable guide — blogs/news/usb-b-cable
Related reading: USB-A vs USB-C — blogs/news/usb-a-vs-usb-c
Frequently Asked Questions
Is USB-A the same as USB-B?
They use the same signalling standards but different connectors with different roles. USB-A is the host end found on computers and chargers; USB-B is the device end found on printers, scanners and audio interfaces.
Can I use a USB-A to USB-A cable to connect two computers?
No. A-to-A cables are non-standard and can back-feed power between two hosts, damaging ports. Transfer cables sold for this purpose contain electronics in the middle and are not plain cables.
Does a USB-B cable limit transfer speed?
No. The connector shape does not set the speed. A USB 2.0 A-to-B cable runs at 480 Mbps and a USB 3.0 A-to-B cable runs at 5 Gbps; the shell is the same apart from the extra contact block.
Why does my printer cable charge but not print?
The cable is likely power-only, with no data pair inside. Cables bundled with chargers often omit data conductors. Replace it with a known data cable before troubleshooting drivers.
Sourcing cables for a project, a store, or a private-label line? Contact our B2B sales team for specifications, certification evidence, and volume terms – FOB and CIF options available. Request a quote or sample.