USB Cable Color Codes Brief Guide
In our everyday lives, color codes help us understand things quickly. Think about traffic lights—red means stop, and green means go. USB cables use different-colored wires for a similar reason: each wire has a specific job.
Have you ever opened a USB cable and wondered why it contains red, black, white, green, or even blue wires? These colors can help identify power, data, and ground connections. However, USB wire colors are not guaranteed to be the same in every cable, especially in USB-C cables and cables made by different manufacturers.
In this guide, we’ll explore USB cable color codes, understand the purpose of each wire, and learn how to identify them safely.
Understanding USB Cables
USB stands for Universal Serial Bus. USB cables are widely used to connect electronic devices, transfer data, and supply power.
You can find USB cables in mobile phone chargers, cameras, printers, keyboards, external storage devices, and many other electronics.
Depending on the USB version and cable design, a cable may contain different numbers of wires. A basic USB 2.0 cable commonly has four main conductors, while some charging-only cables use fewer conductors. More advanced USB cables, including USB-C, may contain additional wires, shielding, and specialized connections.
Each wire has a specific function, but the color alone should not be treated as proof of its purpose.
USB Cable Color Codes at a Glance
For a traditional 2.0 USB cable color codes are:
| Wire Color | Common Function |
|---|---|
| Red | +5V power (VBUS) |
| Black | Ground (GND) |
| White | Data negative (D−) |
| Green | Data positive (D+) |
These are the standard common colors for traditional USB 2.0 cables, but manufacturers may use different colors or cable constructions.
Some cables also contain a bare drain wire or metallic shielding. These are associated with shielding and grounding arrangements and should not automatically be treated as ordinary power or data wires.
Three-Wire USB Cable color codes

A three-wire USB cable is often designed for charging-only applications or simplified connections.
A cable with three conductors may contain:
- Positive Power Wire (+5V): Supplies power to the connected device. Red is commonly used, but other colors may appear.
- Ground Wire (GND): Provides the return path for electrical current. Black is common in standard USB wiring.
- Third Wire: Its function depends on the cable design. It may be used for a charging identification signal, a specialized connection, or another purpose.
A three-wire cable does not follow one universal color arrangement. Some charging-only cables may contain just power and ground, while others include an additional conductor for device-specific functions.
Important: Do not assume that a white, gray, or green wire is a ground wire simply because it appears in a three-wire cable.
Four-Wire USB Cable color codes

Most basic USB 2.0 data cables use four main conductors. These wires provide both power and data communication.
![Four-wire USB cable illustration]
The common USB 2.0 color arrangement is:
- Red – +5V Power (VBUS): Supplies power to the connected device.
- Black – Ground (GND): Completes the power circuit and provides the electrical return.
- White – Data Negative (D−): Carries one side of the USB data signal.
- Green – Data Positive (D+): Carries the other side of the USB data signal.
The white and green wires work together as a differential data pair. They are not ordinary positive and negative power wires.
This arrangement is commonly found in basic USB 2.0 cables, including many USB-A-to-micro-USB and USB-A-to-USB-B cables.
Five-Wire USB Cable

Some USB cables contain more than four conductors. A fifth wire may be present in certain specialized cables, printer cables, charging cables, or device-specific connections.
The additional wire does not have one universal function or color.
Depending on the cable, it may be used for:
- Device identification or charging detection
- A specialized signal connection
- An additional ground or shield-related connection
- A manufacturer-specific function
In some USB 2.0 micro-USB connections, an identification (ID) pin is used to distinguish certain device roles. However, the exact wiring depends on the connector and application.
Never connect a fifth wire based only on its color. Check the connector pinout, cable documentation, or use a suitable meter to identify the connection.
USB-C Cable Color Codes
USB Type-C is different from older USB connectors.
USB-C cables may support power delivery, USB data, video, or other features. Their internal wiring can be considerably more complex than the four-wire arrangement used in basic USB 2.0 cables.
A USB-C cable may contain:
- Power and ground conductors
- USB 2.0 data wires
- High-speed data pairs
- Configuration Channel (CC) connections
- Shielding and drain wires
- Additional conductors for supported features
The internal wire colors are not a universal guide to these functions.
For example, a USB-C cable may use red and black wires for power and ground, but the remaining wires cannot safely be identified using a simple color chart.
USB-C wiring must be identified using the connector pinout and cable specifications—not color alone.
USB Charging Cable vs. Data Cable
USB cables are commonly described as charging cables or data cables, but the difference is not always as simple as it sounds.
Charging-only cables
These cables are designed primarily to supply power. Some contain only power and ground conductors, while others include additional charging-related connections.
They may charge a device without supporting USB data transfer.
Data-transfer cables
Data cables support communication between connected devices.
Many USB data cables also carry power, so they can charge a device while transferring data.
However, not every cable supports the same charging current, data speed, or USB features.
If your phone charges but does not connect to a computer, the cable may be charging-only, damaged, or incompatible with the required data connection.
USB Cable Color Codes vs. USB Port Color Codes
USB cable colors and USB port colors describe two different things.
USB cable colors
These refer to the individual wires inside the cable.
They may help identify power, ground, data, or other connections when the cable follows a known wiring convention.
USB port colors
These refer to the color of the plastic insert inside a USB port.
Port colors are sometimes used to indicate USB generation or features, but they are not universally standardized across all manufacturers.
For example:
- Black: Often associated with USB 2.0 ports.
- Blue: Often associated with USB 3.x ports.
- Teal or other colors: May be used by manufacturers for particular USB versions or features.
These are common conventions, not guaranteed rules. Always check the device specifications to determine the actual USB version and supported capabilities.
How to Identify USB Wires Safely
If you need to repair or reuse a USB cable, follow these steps:
- Disconnect the cable: Never work on a cable while it is connected to a powered device.
- Inspect the connector: Identify the USB connector type and look up its pinout.
- Check the cable documentation: Manufacturer information is more reliable than a general color chart.
- Use a multimeter: With the cable disconnected, continuity testing can help trace wires to connector pins.
- Check for shielding: A bare drain wire or metal braid may be part of the cable’s shielding arrangement.
- Avoid guessing: Do not connect wires based only on their colors.
- Insulate and test carefully: Ensure repaired conductors cannot short together before reconnecting the cable.
For USB-C and USB Power Delivery cables, use the appropriate specifications and test equipment. These cables may support higher voltages and currents than basic USB connections.
Frequently Asked Questions
Are USB cable wire colors the same for every cable?
No. Red, black, white, and green are common in traditional USB 2.0 wiring, but other cables may use different colors or additional conductors.
Is red always the positive wire?
Red commonly represents the +5V power wire in basic USB cables. However, color alone is not enough to verify a connection, particularly in custom or USB-C cables.
Is black always ground?
Black is commonly used for ground in traditional USB 2.0 cables. Other cable designs may use different colors, so verify the connector pinout before connecting wires.
Can a USB cable charge a device but fail to transfer data?
Yes. A charging-only cable may not contain the required data connections. A damaged data wire or incompatible cable can also cause this problem.
Do USB-C cables use the same color codes as regular USB cables?
Not necessarily. USB-C cables have more complex wiring and may contain additional conductors for data, power delivery, and other supported features.
Can I use a USB wire color chart to repair a cable?
A color chart can be a starting point for basic USB 2.0 cables, but it should not be the only reference. Confirm the connector pinout and verify the wires before making connections.
Final Thoughts
USB cable color codes make it easier to understand the basic functions of power, ground, and data wires. In traditional USB 2.0 cables, red commonly represents +5V power, black represents ground, white represents D−, and green represents D+.
But remember: wire colors can vary, and USB-C cables are more complex.
Always check the connector pinout and cable specifications before repairing, modifying, or connecting wires.
The next time you open a USB cable, you’ll have a better understanding of what its wires may do—and how to identify them safely.
Connect smart, check the pinout, and never rely on color alone!




Do you have any video of that? I’d want tto find out more details. http://Boyarka-Inform.com/
no, if i get any i will provide