USB Pinout Reference
A mobile-friendly USB connector wiring reference for USB Type-A, Type-B, Mini USB, Micro USB and USB-C with VBUS, D+, D-, GND, ID, CC and SuperSpeed pin notes.
🔌 Safety Note: USB VBUS is normally 5 V, but USB-C Power Delivery can negotiate higher voltage. Do not short CC pins, data pins, shield or VBUS while testing cables.
🧭 Common USB connector pinout overview
Search Connector / Pin
Filter Group
Quick filters:
📌 USB connector pinout table
| Connector | Pin | Name | Group | Purpose / Notes |
|---|---|---|---|---|
| USB-A / USB-B 2.0 | 1 | VBUS | POWER | +5 V bus supply, commonly red wire. |
| USB-A / USB-B 2.0 | 2 | D− | DATA | USB 2.0 differential data negative, commonly white wire. |
| USB-A / USB-B 2.0 | 3 | D+ | DATA | USB 2.0 differential data positive, commonly green wire. |
| USB-A / USB-B 2.0 | 4 | GND | GND | Ground return, commonly black wire. |
| Mini / Micro USB 2.0 | 1 | VBUS | POWER | +5 V bus supply. |
| Mini / Micro USB 2.0 | 2 | D− | DATA | USB 2.0 differential data negative. |
| Mini / Micro USB 2.0 | 3 | D+ | DATA | USB 2.0 differential data positive. |
| Mini / Micro USB 2.0 | 4 | ID | ID | Used for OTG role detection. Grounded in many OTG host adapters. |
| Mini / Micro USB 2.0 | 5 | GND | GND | Ground return. |
| USB-C | A4,A9,B4,B9 | VBUS | POWER | Power bus. Default 5 V, higher voltages only after USB PD negotiation. |
| USB-C | A1,A12,B1,B12 | GND | GND | Ground return contacts. |
| USB-C | A6,A7,B6,B7 | D+ / D− | USB2 | USB 2.0 data pair duplicated for reversible plug orientation. |
| USB-C | A5,B5 | CC1 / CC2 | CC | Configuration channel for orientation, attach detect, current advertisement and USB PD. |
| USB-C | A8,B8 | SBU1 / SBU2 | SBU | Sideband use pins for alternate modes such as DisplayPort. |
| USB-C | A2,A3,A10,A11,B2,B3,B10,B11 | TX/RX SuperSpeed pairs | SS | High-speed differential pairs for USB 3.x / USB4 capable cables and devices. |
📋 Quick Reference
USB 2.0 Wires
RedVBUS +5V
WhiteD−
GreenD+
BlackGND
Micro USB OTG
ID floatingDevice
ID to GNDHost
VBUS5V
USB-C Essentials
CC1 / CC2Detect / PD
VBUS5V default
D+ / D−USB 2.0
📚 Engineering Notes
Connector orientation matters Many diagrams show the socket front view, but cable plug view can be mirrored. Always confirm the physical view before soldering.
USB-C is not just four wires Simple charging may use VBUS, GND and CC resistors, but data, Power Delivery and high-speed modes require correct USB-C design rules.
D+ and D− are a differential pair Keep USB data wires twisted or close together, especially for longer cables and reliable data transfer.
Shield is not always signal ground Cable shield and connector shell are often connected to chassis/ground through a defined EMI strategy, not randomly soldered.
USB Pinout Reference
This USB pinout reference helps makers and technicians identify common USB connector pins while repairing cables, wiring modules, checking chargers, building Arduino projects, or understanding USB-C connector signals.
USB Type-A and Type-B pinout
Basic USB 2.0 Type-A and Type-B connectors use four pins: VBUS, D−, D+ and GND. VBUS is normally 5 V, while D+ and D− carry the USB 2.0 differential data signal.
Micro USB and Mini USB pinout
Mini USB and Micro USB add an ID pin, commonly used for USB OTG role detection. In many OTG adapters, the ID pin is shorted to ground to indicate host mode.
USB-C pinout
USB-C includes duplicated USB 2.0 data pins, multiple VBUS and GND pins, CC pins for orientation and Power Delivery, SBU pins for alternate modes, and SuperSpeed differential pairs for high-speed data.
❓ Frequently Asked Questions
Basic USB 2.0 cables normally use red for VBUS +5 V, white for D−, green for D+ and black for ground. Some cables may use different colors, so test before wiring.
Yes, if the load current is within the USB source rating. For USB-C or fast chargers, higher voltage is only available after proper negotiation.
D+ and D− are a differential pair used for USB 2.0 communication. They should not be swapped unless the circuit or adapter specifically handles it.
The ID pin is used for USB OTG. When ID is grounded, many devices enter host mode. When it is floating, the device usually acts as a peripheral.
CC1 and CC2 detect plug orientation, cable attachment, allowed current and USB Power Delivery communication.
No. USB-C starts with 5 V by default. Higher voltages like 9 V, 12 V, 15 V or 20 V require USB Power Delivery negotiation.
No. Red, white, green and black are common, but low-cost or non-standard cables may not follow the expected color code. Verify with a multimeter.
Short repairs can work, but long or poorly twisted extensions can cause data errors. Keep D+ and D− close together and avoid unnecessary stubs.