USB Connector Pinout
USB-A / Micro-B / Mini-B / Type-C — pins and standard wire colors at a glance.
What it does: Look up what each pin of any USB connector is and which wire color it maps to.
When to use it: When soldering USB cables, building a power port, or repairing a data cable.
The most common rectangular connector. 4 pins.
Common on older phones/modules. 5 pins, with an extra ID pin for OTG.
Common on older cameras/Arduino. 5 pins.
The full 24-pin connector includes duplicated power/ground and SuperSpeed pairs; the table below lists the functional pins most commonly wired in practice. See the USB-IF spec for the full pinout.
MEANS Red=5V and black=GND are power; white=D− and green=D+ are data. For charging only, connect just the first two.
No history yet. Each calculation is automatically saved to this device.
How to use the USB pinout reference
Pick a connector, view its pins.
- 01
Pick the connector type
USB-A, Micro-B, Mini-B, or Type-C — switch with the buttons above.
- 02
Check the pins and wire colors
Standard USB cables follow a fixed color scheme: red=5V, white=D−, green=D+, black=GND — solder by these and you can't go wrong.
- 03
Power only needs 2 wires
For power only (no data), connect VBUS and GND; to communicate, also wire D+/D−.
USB 2.0 standard wire colors
Nearly every standard USB cable uses this color scheme.
| Wire color | Signal | Function |
|---|---|---|
| Red | VBUS | +5 V power |
| White | D− | Data negative |
| Green | D+ | Data positive |
| Black | GND | Ground |
USB 2.0 specification standard wire colors.
Common questions, answered in 3 minutes
I just want to power a device — which wires do I connect?
Just red (VBUS) and black (GND). Many charging cables really do connect only these two, which is why they "charge but can't transfer data".
What happens if I swap D+ and D−?
USB 2.0 is a differential signal; swapping them causes enumeration / detection failure. Always match white to D− and green to D+.
What is the ID pin on Micro-B for?
OTG detection: the host end grounds ID to say "I'm the host", while the device end leaves it floating. An ordinary power/data cable can leave it unconnected.
Why does Type-C have so many pins?
To support reversible plugging, high-power PD, USB 3.x high-speed pairs, and alternate modes (e.g. video output), the pins are duplicated symmetrically. For everyday wiring just focus on VBUS/GND/CC/D±.
Standards and sources referenced by this tool
| Item | Value / Formula | Source |
|---|---|---|
| USB 2.0 wire colors and pins | VBUS/D−/D+/GND | USB 2.0 specification |
| Type-C pins | 24-pin (function summary) | USB Type-C spec (USB-IF) |
Pins and wire colors come from the USB specification, no external API.