Online retailer for industrial customers, commercial customers and public institutions - no sales to private customers
Switch to german languageIndustry-Electronics in English

USB Pin Assignment: All Connector Types & Wire Colors Explained

USB 2.0, USB 3.x, USB-C — the pin layout varies significantly across generations and connector form factors. This page provides the complete pin assignment for all common USB types with color-coded wire diagrams — ready for use in cable assembly, fault diagnosis and component planning.

Standards Note: The USB specification is maintained by the USB Implementers Forum (USB-IF). Wire colors are defined in the standard but may differ with third-party manufacturers — when in doubt, always verify with a multimeter.

1. USB 2.0 Pin Assignment

USB 2.0 (Hi-Speed, up to 480 Mbit/s) is the oldest USB standard still widely deployed. Type A and Type B connectors have four pins: two data lines (D− and D+), power supply (VBUS, +5 V) and ground (GND). Micro and Mini variants add a fifth pin (ID) for USB OTG host/peripheral detection.

USB 2.0 Type A (male) 1 2 3 4 VBUS D− D+ GND (Front view, pin 1 on left) USB 2.0 Type B (male) 1 4 2 3 VBUS GND D− D+ (Front view)

USB 2.0 Type A & Type B — Pin Assignment

Pin Name Description Wire Color Voltage / Signal
1 VBUS Bus power supply Red +5 V DC (max. 500 mA USB 2.0)
2 D− Data line negative (differential signal) White Differential 0–3.3 V
3 D+ Data line positive (differential signal) Green Differential 0–3.3 V
4 GND Ground Black 0 V reference

USB 2.0 Micro-B & Mini-B — Pin Assignment

Micro-B and Mini-B (and their A-variants) add an ID pin (pin 4) through which the USB OTG protocol determines whether a device acts as host or peripheral. In standard cables (non-OTG) pin 4 remains unconnected.

USB 2.0 Micro-B (male, contact side) 1 VBUS 2 D− 3 D+ 4 ID 5 GND +5V / Red White Green no wire Black
Pin Name Description Wire Color OTG
1VBUSBus power +5 VRed
2D−Data line negativeWhite
3D+Data line positiveGreen
4IDDevice identification (OTG host/peripheral selection)No wire (GND = host; open = peripheral)OTG
5GNDGroundBlack

2. USB 3.0 / 3.1 / 3.2 Gen 1 Pin Assignment

With USB 3.0 (today USB 3.2 Gen 1, 5 Gbit/s SuperSpeed), four additional data lines were added. The original four USB 2.0 pins are retained (backward compatibility), supplemented by two SuperSpeed differential pairs for transmit (SSTX) and receive (SSRX), plus a shared drain ground (GND_DRAIN).

Important: SSRX/SSTX designations are device-relative — what the Type-A port receives as SSRX is transmitted by the Type-B port as SSTX. Direction is swapped between connector types.

USB 3.0 Type A (male) — 9-Pin Layout ▲ USB 2.0 pins (backward compatible) 1 VBUS 2 D− 3 D+ 4 GND ▼ SuperSpeed pins (5 Gbit/s) 5 SSRX− 6 SSRX+ 7 GND_D. 8 SSTX− 9 SSTX+ Red White Green Black Blue Yellow bare wire Violet Orange (blue plastic body identifies USB 3.x ports)
Pin Name Description Wire Color Standard
1VBUSBus power +5 V (900 mA with USB 3.x)RedUSB 2.0 / 3.x
2D−Hi-Speed data negative (USB 2.0)WhiteUSB 2.0 / 3.x
3D+Hi-Speed data positive (USB 2.0)GreenUSB 2.0 / 3.x
4GNDGroundBlackUSB 2.0 / 3.x
5SSRX−SuperSpeed receive negative (Type A) / transmit negative (Type B)BlueUSB 3.x
6SSRX+SuperSpeed receive positive (Type A) / transmit positive (Type B)YellowUSB 3.x
7GND_DRAINShared ground for SuperSpeed differential pairsBare wire (uninsulated)USB 3.x
8SSTX−SuperSpeed transmit negative (Type A) / receive negative (Type B)VioletUSB 3.x
9SSTX+SuperSpeed transmit positive (Type A) / receive positive (Type B)OrangeUSB 3.x

Legend: yellow background = USB 2.0 compatible pins, blue background = SuperSpeed-only pins. USB 3.0 Type B (Powered-B) optionally adds pin 10 (DPWR, peripheral power) and pin 11 (DGND).

3. USB-C Pin Assignment (24 Pins)

USB-C is the universal connector for USB 3.2, USB4 and Thunderbolt. It features 24 pins in two rows of 12 (side A top, side B bottom). The mirror-image layout enables reversible insertion — the trademark of the USB-C standard. Additional functions such as Power Delivery (up to 240 W), DisplayPort Alt Mode and Thunderbolt are negotiated via the CC pin (Configuration Channel).

USB-C Connector — 24-Pin Layout (top view) Side A → A1 GND A2 SSTX+ A3 SSTX- A4 VBUS A5 CC A6 D+ A7 D- A8 SBU A9 VBUS A10 SSRX- A11 SSRX+ A12 GND Side B ← B1 GND B2 SSRX+ B3 SSRX- B4 VBUS B5 CC2 B6 D- B7 D+ B8 SBU2 B9 VBUS B10 SSTX- B11 SSTX+ B12 GND Mirror plane A/B — reversible (plug either way) A1=B12=GND  |  A4=B9=VBUS  |  A5=CC, B5=CC2  |  A6/A7=D+/D− (shared) A2/A3=SSTX+/−  |  A10/A11=SSRX−/+  |  B2/B3=SSRX+/−  |  B10/B11=SSTX−/+

USB-C Complete Pin Assignment (Side A)

Pin A Mirror (Side B) Name Function Wire Color (A / B)
A1B12GNDGroundBare wire
A2B11SSTX+SuperSpeed transmit positiveYellow (A) / White (B)
A3B10SSTX−SuperSpeed transmit negativeBrown (A) / Black (B)
A4B9VBUSBus power (USB PD up to 240 W)Red
A5B5CC1 / CC2Configuration Channel: orientation detection, Power Delivery negotiation, Alt Mode activationBlue (A) / Yellow (B)
A6B7D+Hi-Speed data positive (USB 2.0)White
A7B6D−Hi-Speed data negative (USB 2.0)Green
A8B8SBU1 / SBU2Sideband Use: auxiliary path for audio and DisplayPort Alt ModeRed (A) / Black (B)
A9B4VBUSBus power (second VBUS pin)Red
A10B3SSRX−SuperSpeed receive negativeBlue (A) / Orange (B)
A11B2SSRX+SuperSpeed receive positiveRed (A) / Green (B)
A12B1GNDGroundBare wire
CC Pin (A5/B5) — The Key to USB-C Intelligence: The Configuration Channel negotiates at connection: which side is host, how much power to deliver (USB PD Profiles 5–48 V, up to 5 A = 240 W) and whether an Alternate Mode (DisplayPort, Thunderbolt, HDMI) should be activated. In simple charging cables without an E-Marker chip, CC pull-up/pull-down resistors (56 kΩ / 5.1 kΩ) are hardwired.

4. Wire Colors — Overview and Tolerances

Wire colors are normatively defined in the USB standard but not always followed by third-party manufacturers. Budget cables in particular may deviate — the pin position is always authoritative, not the color.

Wire Color Pin Function USB Version Note
RedVBUS (+5 V)2.0 / 3.x / CAlways the positive power supply. Higher voltages possible with USB PD.
WhiteD− (USB 2.0)2.0 / 3.x / CData line — not a power wire, do not confuse with VBUS.
GreenD+ (USB 2.0)2.0 / 3.x / CData line — differential pair with D−.
BlackGND2.0 / 3.x / CGround / reference potential.
BlueSSRX−3.xSuperSpeed receive negative (Type A).
YellowSSRX+3.xSuperSpeed receive positive (Type A).
VioletSSTX−3.xSuperSpeed transmit negative (Type A).
OrangeSSTX+3.xSuperSpeed transmit positive (Type A).
Bare wireGND_DRAIN3.x / CUninsulated drain wire for SuperSpeed differential pair shielding.

5. Practical Notes for B2B Procurement & Engineering

⚙ Cable Assembly

USB 2.0 (4-wire) can still be hand-soldered with standard equipment. USB 3.x (9-wire) and USB-C (24-wire) require precision tooling and impedance control (90 Ω differential). For industrial applications, factory-assembled certified cables are preferred over custom assemblies.

Maximum passive cable lengths per USB-IF: USB 2.0: 5 m • USB 3.x: 3 m • USB-C: 2 m (without active cable).

⚔ Fault Diagnosis

A simple continuity tester is sufficient for USB 2.0 cables. For USB 3.x and USB-C: test continuity of all 9 or 24 pins, verify no short between D+ and D−, and confirm shield continuity (GND_DRAIN to connector shell).

For USB-C charging issues: test CC pin pull-up/pull-down resistance (missing E-Marker limits the cable to 5 V / 3 A).

📜 Standards

Governing standards: USB 2.0 Spec. (USB-IF, 2000), USB 3.2 Gen 1/2 (USB-IF, 2019), USB4 Version 2.0 (USB-IF, 2022), IEC 62680 (international USB interface standard). For USB PD: IEC 62680-1-2. Product labeling per USB-IF: Performance Logos 5G, 10G, 20G, 40G.

USB SS 5G USB SS 10G USB SS 20G USB4 20G USB4 40G

⚡ Power Delivery

USB-C cables rated above 60 W must contain an E-Marker chip (electronically marked) that signals cable capacity and current rating to the host. Without E-Marker, the device automatically limits to 5 V / 3 A (15 W). For EPR (Extended Power Range, 100+ W), certified EPR cables are mandatory.

Frequently Asked Questions about USB Pin Assignment

How many wires does a USB cable have?

USB 2.0 cables have 4 wires (VBUS, D−, D+, GND). USB 3.x cables have 9 wires (plus drain wire = 10 in the cable). Full-spec USB-C cables can have up to 24 pins plus shield — but simple charging cables often only populate a subset of them.

Can USB-A plugs be hand-soldered?

USB 2.0 Type A and B connectors can be assembled with standard soldering equipment: 4 pins, 90 Ω pair impedance, shield connection. USB 3.x and USB-C connectors are barely suitable for hand-soldering due to the 9 or 24 closely spaced pins and impedance requirements. Factory-assembled cables are more reliable for these.

What is the CC pin in USB-C?

The CC pin (Configuration Channel, A5/B5) handles several functions during USB-C connection: it detects which side acts as host, negotiates Power Delivery capacity, and activates Alternate Modes such as DisplayPort or Thunderbolt. Without the CC pin, USB-C cables are incompatible with PD and Alt Mode — in some cases not recognized at all.

Why does USB 3.x speed drop on some cables?

Common causes: the cable has a USB 3.x connector body but is internally only 4-wire (USB 2.0 pins only) — SuperSpeed pins 5–9 are absent. Other causes: inadequate shielding on SuperSpeed pairs, cable length exceeding the passive limit (3 m), or missing GND_DRAIN continuity. Fix: use USB-IF certified cables with the correct wire count (minimum 9 wires for USB 3.x).

USB Cables & Connectivity for Industrial B2B

USB cables, adapters and hubs for industrial use — from assembled patch cables to industrial USB isolators. All in stock, tiered pricing from 1 unit.

Cables & Adapters USB Hubs USB Sticks

Questions about cable wiring or connector specifications? Our technical sales team: +49 (0)7666 / 88499-0  •  sales@industry-electronics.com

Further reading: USB Port Colors Explained  •  Connector Glossary  •  Video Connector Overview  • 

Searching
Search is performed.
Please be patient ...
Fehlende Felder
Close
We use cookies to provide the service. Using this website you agree with that. Information on the privacy policy OK und schließen