PINOUT · TOOL

USB Connector Pinout

USB-A / Micro-B / Mini-B / Type-C — pins and standard wire colors at a glance.

Basic No backend · 100% client-side

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.

1 VBUS +5 V power Red
2 D− Data minus White
3 D+ Data plus Green
4 GND Ground Black

MEANS Red=5V and black=GND are power; white=D− and green=D+ are data. For charging only, connect just the first two.

Next

You might also need

How to

How to use the USB pinout reference

Pick a connector, view its pins.

  1. 01

    Pick the connector type

    USB-A, Micro-B, Mini-B, or Type-C — switch with the buttons above.

  2. 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.

  3. 03

    Power only needs 2 wires

    For power only (no data), connect VBUS and GND; to communicate, also wire D+/D−.

Reference

USB 2.0 standard wire colors

Nearly every standard USB cable uses this color scheme.

Wire colorSignalFunction
RedVBUS+5 V power
WhiteD−Data negative
GreenD+Data positive
BlackGNDGround

USB 2.0 specification standard wire colors.

FAQ

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±.

Data Provenance

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.

⚡ Powered by Circflow