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
USB connector pinout quick referenceTypical front-facing connector view · verify orientation before wiring USB Type-A / Type-B 2.012341 VBUS · 2 D- · 3 D+ · 4 GND Mini / Micro USB 2.0123451 VBUS · 2 D- · 3 D+ · 4 ID · 5 GND USB-C Reversible24 contactsVBUS · GND · D± · CC · SBU · SS pairs USB wire color guide for basic USB 2.0 cablesRedVBUS +5VWhiteD-GreenD+BlackGNDUSB-C and SuperSpeed cables have additional wires; never rely only on color for high-power or high-speed cables.
Search Connector / Pin
Filter Group
Quick filters:
📌 USB connector pinout table
ConnectorPinNameGroupPurpose / Notes
USB-A / USB-B 2.01VBUSPOWER+5 V bus supply, commonly red wire.
USB-A / USB-B 2.02D−DATAUSB 2.0 differential data negative, commonly white wire.
USB-A / USB-B 2.03D+DATAUSB 2.0 differential data positive, commonly green wire.
USB-A / USB-B 2.04GNDGNDGround return, commonly black wire.
Mini / Micro USB 2.01VBUSPOWER+5 V bus supply.
Mini / Micro USB 2.02D−DATAUSB 2.0 differential data negative.
Mini / Micro USB 2.03D+DATAUSB 2.0 differential data positive.
Mini / Micro USB 2.04IDIDUsed for OTG role detection. Grounded in many OTG host adapters.
Mini / Micro USB 2.05GNDGNDGround return.
USB-CA4,A9,B4,B9VBUSPOWERPower bus. Default 5 V, higher voltages only after USB PD negotiation.
USB-CA1,A12,B1,B12GNDGNDGround return contacts.
USB-CA6,A7,B6,B7D+ / D−USB2USB 2.0 data pair duplicated for reversible plug orientation.
USB-CA5,B5CC1 / CC2CCConfiguration channel for orientation, attach detect, current advertisement and USB PD.
USB-CA8,B8SBU1 / SBU2SBUSideband use pins for alternate modes such as DisplayPort.
USB-CA2,A3,A10,A11,B2,B3,B10,B11TX/RX SuperSpeed pairsSSHigh-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.