No Login Data Private Local Save

USB Pinout Reference - Online Connector Wiring Guide

12
0
0
0

USB Pinout Reference

Complete Connector Wiring Guide — Type-A, Type-B, Mini, Micro & USB-C

USB 1.x / 2.0
USB Type-A — 4 Pins
1
2
3
4
VBUS
D-
D+
GND
Receptacle (Female) — View looking into port
PinNameWire ColorFunctionVoltage
1VBUSRedPower (+5V DC)+5V ±5%
2D-WhiteData Minus (differential pair)±3.3V signal
3D+GreenData Plus (differential pair)±3.3V signal
4GNDBlackGround / Return Path0V
Standard USB 2.0: Max 500mA current. Data rate up to 480 Mbps (High Speed). Backward compatible with USB 1.1 (12 Mbps) and USB 1.0 (1.5 Mbps).
USB 3.0 / 3.1 / 3.2
USB Type-A 3.0 — 9 Pins
1
2
3
4
← Front Row (USB 2.0 compatible) | Back Row (SuperSpeed) →
5
6
7
8
9
PinNameFunctionRow
1VBUS+5V PowerFront (USB 2.0)
2D-USB 2.0 Data MinusFront (USB 2.0)
3D+USB 2.0 Data PlusFront (USB 2.0)
4GNDGroundFront (USB 2.0)
5StdA_SSRX-SuperSpeed Receive (-)Back (SS)
6StdA_SSRX+SuperSpeed Receive (+)Back (SS)
7GND_DRAINSignal Ground DrainBack (SS)
8StdA_SSTX-SuperSpeed Transmit (-)Back (SS)
9StdA_SSTX+SuperSpeed Transmit (+)Back (SS)
USB 3.0 Type-A: Fully backward compatible with USB 2.0. Front 4 pins = standard USB 2.0. Back 5 pins = SuperSpeed (5 Gbps). Also known as "USB 3.2 Gen 1".
USB 1.x / 2.0
USB Type-B — 4 Pins
1
2
3
4
Square connector — Common on printers & scanners
PinNameWire ColorFunction
1VBUSRed+5V Power
2D-WhiteData Minus
3D+GreenData Plus
4GNDBlackGround
USB Type-B: Square design prevents incorrect insertion. Commonly found on printers, scanners, older external hard drives, and some audio interfaces. Pins arranged in 2×2 grid.
USB 3.0 / 3.1
USB Type-B 3.0 — 9 Pins
Top Section (USB 2.0)
1
2
3
4

Bottom Section (SuperSpeed)
5
6
7
8
9
Extended housing — Blue insert identifies USB 3.0
PinNameSectionFunction
1VBUSTop (USB 2.0)+5V Power
2D-Top (USB 2.0)Data Minus
3D+Top (USB 2.0)Data Plus
4GNDTop (USB 2.0)Ground
5SSRX-Bottom (SS)SuperSpeed Rx (-)
6SSRX+Bottom (SS)SuperSpeed Rx (+)
7GND_DRAINBottom (SS)Signal Drain
8SSTX-Bottom (SS)SuperSpeed Tx (-)
9SSTX+Bottom (SS)SuperSpeed Tx (+)
Legacy
Mini-USB (5-Pin) — Type B
1
2
3
4
5
VBUS
D-
D+
ID
GND
Trapezoid shape — Used on older cameras, MP3 players, GPS
PinNameWire ColorFunctionOTG Role
1VBUSRed+5V Power
2D-WhiteData Minus
3D+GreenData Plus
4IDYellow / NoneOTG IdentificationGND=Host, Float=Device
5GNDBlackGround
OTG Feature: Pin 4 (ID) determines host/device role. ID connected to GND → device acts as USB Host. ID left floating → device acts as peripheral. This enables direct camera-to-printer or phone-to-keyboard connections.
USB 2.0
Micro-USB — 5 Pins
1
2
3
4
5
VBUS
D-
D+
ID
GND
Asymmetric trapezoid — Once ubiquitous on Android phones
PinNameWire ColorFunctionNotes
1VBUSRed+5V PowerUp to 1.8A with BC 1.2
2D-WhiteData MinusDifferential signaling
3D+GreenData PlusDifferential signaling
4IDOTG ID / Mode detectGND=Host mode
5GNDBlackGroundReturn path
USB 3.0
Micro-USB 3.0 — 10 Pins
Main Row (USB 2.0 compatible)
1
2
3
4
5
Side Extension (SuperSpeed)
6
7
8
9
10
Wider connector — Side bulge for SS pins
PinNameGroupFunction
1VBUSMain+5V Power
2D-MainUSB 2.0 Data (-)
3D+MainUSB 2.0 Data (+)
4IDMainOTG ID
5GNDMainGround
6SSRX-Side SSSuperSpeed Rx (-)
7SSRX+Side SSSuperSpeed Rx (+)
8GND_DRAINSide SSSignal Drain
9SSTX-Side SSSuperSpeed Tx (-)
10SSTX+Side SSSuperSpeed Tx (+)
USB-C / USB4 / Thunderbolt
USB Type-C — 24 Pins (12×2)
Top Row (A1–A12)
A1
A2
A3
A4
A5
A6
A7
A8
A9
A10
A11
A12

Bottom Row (B1–B12) — Mirrored for reversibility
B1
B2
B3
B4
B5
B6
B7
B8
B9
B10
B11
B12
Reversible — Symmetric pinout enables both orientations
PinsNameFunctionKey Role
A1, B1, A12, B12GNDGround (×4)Return path & shielding
A4, A9, B4, B9VBUSPower (×4)Up to 20V/5A (100W) or 48V/5A (240W with EPR)
A6, B6D+USB 2.0 Data (+)Backward compatibility
A7, B7D-USB 2.0 Data (-)Backward compatibility
A5CC1Configuration Channel 1Orientation detect, PD negotiation
B5CC2Configuration Channel 2Orientation detect, PD negotiation
A2, A3TX1±SuperSpeed Transmit Lane 1USB 3.x / USB4 data
B2, B3TX2±SuperSpeed Transmit Lane 2USB 3.x / USB4 data
A10, A11RX2±SuperSpeed Receive Lane 2USB 3.x / USB4 data
B10, B11RX1±SuperSpeed Receive Lane 1USB 3.x / USB4 data
A8SBU1Sideband Use 1Alt Mode (DP, audio, etc.)
B8SBU2Sideband Use 2Alt Mode (DP, audio, etc.)
USB-C Highlights: Reversible plug, USB PD up to 240W, supports USB4 (40/80 Gbps), Thunderbolt 3/4/5, DisplayPort Alt Mode, and HDMI Alt Mode.
USB Version Comparison
USB 2.0
480 Mbps
High Speed
Max Power: 2.5W (5V/500mA)
Connector: Type-A/B/Mini/Micro
USB 3.2 Gen 1
5 Gbps
SuperSpeed
Max Power: 4.5W (5V/900mA)
Connector: Type-A/B/Micro/C
USB 3.2 Gen 2
10 Gbps
SuperSpeed+
Max Power: 100W (USB PD)
Primarily USB-C
USB4 / USB4 v2
40 / 80 Gbps
Thunderbolt Compatible
Max Power: 240W (USB PD EPR)
USB-C only
Standard USB Wire Color Code
SignalStandard ColorAlternative ColorsWire Gauge (AWG)Notes
VBUS (+5V)RedOrange20–28Thicker for high-current charging cables
D-WhiteYellow28–30Twisted pair with D+
D+GreenBlue28–30Twisted pair with D-
GNDBlackBrown20–28Often paired with VBUS
Shield/DrainBare/SilverGrayConnects to connector shell
ID (OTG)YellowN/C or Blue28–30Only in Mini/Micro USB
Important: Wire colors may vary by manufacturer. Always verify with a multimeter before splicing. Cheap or non-standard cables may use completely different color schemes.
Frequently Asked Questions

Standard USB wire colors follow a convention: Red = VBUS (+5V power), Black = GND (ground), White = D- (data minus), and Green = D+ (data plus). For Mini/Micro USB connectors, a Yellow wire may indicate the ID pin used for OTG mode detection. However, this is not a mandatory standard — many manufacturers use different color schemes, especially in non-certified cables. Always test with a continuity meter when repairing or splicing USB cables.

USB-C achieves reversibility through a symmetric 24-pin arrangement. The top row (A1–A12) and bottom row (B1–B12) are mirrored: for every signal on the top row, there's a corresponding signal on the bottom row in reverse order. When you flip the connector, the CC (Configuration Channel) pins detect the orientation and the host device routes signals accordingly. For USB 2.0 data (D+/D-), both rows have identical pins (A6/A7 and B6/B7), so either orientation works. For SuperSpeed lanes, the controller dynamically remaps TX/RX pairs based on the detected orientation.

The ID (Identification) pin is present on Mini-USB and Micro-USB connectors (Pin 4). It was introduced for USB On-The-Go (OTG) functionality. When the ID pin is connected to GND (through a specific resistor value in the cable), the device automatically switches to Host mode, allowing it to communicate with peripherals like keyboards, flash drives, or game controllers. When the ID pin is left floating (not connected), the device remains in Device/Peripheral mode. In USB-C, the CC pins have replaced the ID pin with more advanced orientation and power negotiation capabilities.

Yes, fully backward compatible. USB 3.0 Type-A connectors have the same 4 front pins as USB 2.0 (VBUS, D-, D+, GND), allowing them to work in USB 2.0 ports at USB 2.0 speeds (up to 480 Mbps). The additional 5 SuperSpeed pins in the back row are simply not used. The device will operate, just at reduced speed. The same applies to USB 3.0 Type-B and Micro-USB 3.0 — the base USB 2.0 pins ensure compatibility. However, a USB 3.0 Type-B plug will NOT fit into a USB 2.0 Type-B receptacle because the physical housing is larger.

USB Power Delivery (PD) is a protocol that allows up to 240W (48V @ 5A) of power over USB-C cables. PD negotiation occurs over the CC (Configuration Channel) pins (A5 and B5 on USB-C). The CC pins communicate between the source and sink to agree on voltage and current levels. USB PD supports multiple voltage levels: 5V, 9V, 15V, 20V (Standard Power Range, up to 100W) and 28V, 36V, 48V (Extended Power Range, up to 240W with certified EPR cables). The actual power is delivered through the VBUS pins (A4/A9/B4/B9), which are rated for higher current in USB-C cables.

If you find 5 wires inside a USB cable, the fifth wire is typically the shield/drain wire (bare copper or silver-colored). This wire connects the metal shells of both connectors together and helps reduce electromagnetic interference (EMI). It is not a signal-carrying wire — it's purely for shielding and should be connected to the connector's metal housing, not to any of the 4 signal pins. Some Mini/Micro USB cables may also include a fifth insulated wire for the ID pin.

USB-IF naming has been confusing. Here's the breakdown:
USB 3.0 = 5 Gbps (now called USB 3.2 Gen 1)
USB 3.1 = 10 Gbps (now called USB 3.2 Gen 2)
USB 3.2 = 20 Gbps (USB 3.2 Gen 2×2, uses both SuperSpeed lanes in USB-C)
USB4 = 20 Gbps (Gen 2×2) or 40 Gbps (Gen 3×2), based on Thunderbolt 3
USB4 v2 = up to 80 Gbps (Gen 4), uses PAM-3 signaling

All versions use USB-C connectors. USB4 is fully backward compatible with USB 3.2, USB 2.0, and Thunderbolt 3 devices.

Use a multimeter in continuity mode:
1. For USB Type-A plugs: Hold the connector with the USB logo facing up. Pins are numbered 1–4 from left to right (1=VBUS, 2=D-, 3=D+, 4=GND). The two outer pins (1 & 4) are longer for hot-plug protection.
2. Trace from a known good cable end or use a breakout board.
3. VBUS and GND pins are easy to identify: measure resistance between suspected VBUS and GND — there should be high resistance (not shorted).
4. For USB-C, use a USB-C breakout board with labeled test points — the 24-pin density makes manual probing extremely difficult.

Not always. Some charging-only cables omit the D+ and D- data lines entirely, containing only VBUS (red) and GND (black) wires. Others may short D+ and D- together at the device end to signal to the device that it's connected to a dedicated charger (this is part of the USB Battery Charging specification). While these cables charge fine, they cannot transfer data. If you need both charging and data, make sure the cable is labeled "data sync" or "charging + data." For USB-C, all pins are typically present even in charging cables due to the CC pin negotiation requirements.

SBU (Sideband Use) pins — SBU1 (A8) and SBU2 (B8) — are auxiliary signal pins in the USB-C connector. They are used in Alternate Modes for protocols beyond standard USB data:
DisplayPort Alt Mode: SBU pins carry the AUX channel for DP link training and EDID communication.
HDMI Alt Mode: Similar auxiliary signaling.
Audio Adapter Accessory Mode: SBU pins carry analog audio signals (mic and ground) when using a USB-C to 3.5mm adapter.
• In standard USB operation (non-Alt Mode), SBU pins are typically unused and left floating.
Pro Tip for DIY Wiring: When soldering USB connectors, always start with GND (pin 4), then VBUS (pin 1), and finally the data lines (D- and D+). Use heat-shrink tubing on each solder joint to prevent shorts. For USB 3.0/3.1 SuperSpeed lines, maintain equal trace lengths on each differential pair (SSRX± and SSTX±) and keep impedance at 90Ω differential for reliable 5+ Gbps operation.