RJ45 Wiring Color Code Guide

Pin-by-pin wire colors for T568A and T568B Ethernet standards. Includes straight-through vs crossover reference and the 10/100 Mbps pin function table.

Pin 1 is on the left when viewing the connector from the front (contacts facing you, clip pointing down). T568B is the most common scheme for patch cables in North America; T568A is preferred in residential and government installations per TIA/EIA-568.

Pin Function Reference

For 10BASE-T and 100BASE-TX Ethernet, only pins 1, 2, 3, and 6 are used. Pins 4, 5, 7, 8 are reserved (or used for PoE power pairs). 1000BASE-T (Gigabit) uses all four pairs in both directions.

Pin Function (10/100) T568A Wire T568B Wire Pair
1 TX+  Transmit + White / Green White / Orange 2
2 TX−  Transmit − Green Orange 2
3 RX+  Receive + White / Orange White / Green 3
4 — (unused / PoE +) Blue Blue 1
5 — (unused / PoE +) White / Blue White / Blue 1
6 RX−  Receive − Orange Green 3
7 — (unused / PoE −) White / Brown White / Brown 4
8 — (unused / PoE −) Brown Brown 4

Straight-Through vs Crossover

A cable's ends determine its type. Most modern Ethernet interfaces have Auto-MDIX, which makes crossover cables largely obsolete, but they remain essential for direct device-to-device links on legacy hardware.

Straight-Through Cable

Both ends use the same standard (T568B–T568B or T568A–T568A). Used to connect different device classes.

End A: 1↔1, 2↔2, 3↔3, 6↔6
End B: identical mapping

Use: PC ↔ switch, router ↔ switch, PC ↔ wall jack

Crossover Cable

One end is T568A, the other is T568B. The TX and RX pairs are swapped so two devices of the same class can talk directly.

End A (T568A): TX on 1/2, RX on 3/6
End B (T568B): TX on 3/6, RX on 1/2

Use: PC ↔ PC, switch ↔ switch, router ↔ router

Auto-MDIX (IEEE 802.3ab) automatically detects the required cable type and swaps TX/RX internally. All Gigabit and newer interfaces support it, so a straight-through T568B cable works for almost every modern link.

How to Use the RJ45 Wiring Guide

  1. Choose a standard: The guide shows both T568A and T568B wiring standards side by side. Hover over any pin to see the wire color and function.
  2. Review the pin-by-pin comparison: The comparison table shows the exact wire color for each pin position (1 through 8) in both standards.
  3. Understand pin functions: Each pin has a specific function — TX+ (transmit positive), TX- (transmit negative), RX+ (receive positive), and RX- (receive negative) — which are critical for proper network communication.
  4. Follow the wiring consistently: Use the same standard on both ends of a straight-through cable. Mixing standards creates a crossover cable.

Understanding RJ45 Wiring Standards

RJ45 connectors are the standard connectors used for Ethernet networking, following the 8P8C (8 Position 8 Contact) specification. The two wiring standards — T568A and T568B — define the order in which the eight individual wires inside a twisted-pair cable are connected to the eight pins of the RJ45 connector. Both standards are defined by the TIA/EIA-568 telecommunications standard and are electrically identical; the only difference is the assignment of the orange and green wire pairs to pins.

The eight wires in a Cat5e or Cat6 cable are organized into four twisted pairs: orange, green, blue, and brown. Each pair consists of a solid-colored wire and a white wire with a colored stripe. Twisting the pairs reduces electromagnetic interference and crosstalk between adjacent wires. For 10BASE-T and 100BASE-TX Ethernet, only pins 1, 2, 3, and 6 are actually used for data — the orange and green pairs. Gigabit Ethernet (1000BASE-T) uses all four pairs and all eight wires for simultaneous bi-directional communication.

T568B is the most common standard in the United States and Europe, particularly in commercial installations and pre-made patch cables. T568A is more common in government installations and some residential wiring. The most important rule is consistency: use the same standard on both ends of a straight-through cable. If you use T568A on one end and T568B on the other, you create a crossover cable, which was historically used for connecting two computers directly but is now rarely needed thanks to Auto-MDIX technology in modern network interfaces.

Frequently Asked Questions

What is the difference between T568A and T568B?
The only difference is the assignment of the orange and green pairs. In T568B, pins 1 and 2 carry the orange pair (white-orange / orange) and pins 3 and 6 carry the green pair. In T568A, those two pairs are swapped: green goes on 1/2 and orange on 3/6. The blue and brown pairs are wired identically in both standards.
Which standard should I use?
T568B is the most common choice for commercial patch cables in the United States and is what most pre-made cables use. T568A is required for U.S. government contracts and is preferred in residential wiring. The key rule: both ends of a straight-through cable must use the same standard. Mixing them on one cable makes a crossover cable.
Why are the wires on pins 3 and 6 not adjacent?
Pins 3 and 6 carry one differential pair (the green pair in T568B). They are split across the connector so that pair 2 (blue, pins 4/5) sits physically between them. This layout preserves backwards compatibility with older one-pair and two-pair telephone wiring on the same 8P8C connector.
Do I need a crossover cable anymore?
Usually no. Auto-MDIX, introduced with 1000BASE-T (Gigabit Ethernet), automatically detects cable type and swaps transmit and receive internally. Nearly every modern NIC, switch, and router supports it, so a straight-through T568B cable works for direct PC-to-PC links. Crossover cables are still useful for older 10/100 hardware or console/management ports.
What does "white/orange" actually look like?
Each twisted pair shares a color. One wire is solid (or mostly solid) — e.g. solid orange — and its partner is predominantly white with an orange stripe. The striped wire is shown in tables as "White / Orange" or sometimes "W-O" / "W/Or". In the diagrams above, striped wires are shown with a hatch pattern over the white base.
Is RJ45 the same as 8P8C?
Strictly speaking, RJ45 refers to a specific registered-jack wiring scheme (RJ45S) from the old Bell System. The physical connector used for Ethernet is technically an 8P8C (8-position, 8-contact) modular plug. The terms are used interchangeably in everyday networking, and this page follows that convention.
Which standard should I use, T568A or T568B?
T568B is the most common choice for commercial networks and pre-made patch cables in the US and Europe. T568A is often required for government contracts and preferred in some residential installations. The most important rule is consistency: pick one standard and use it throughout your installation.
What happens if I mix T568A and T568B?
Mixing standards on opposite ends of a cable creates a crossover cable. Historically, crossover cables were used for direct computer-to-computer or switch-to-switch connections. Modern Gigabit devices support Auto-MDIX, which automatically detects and adjusts the connection, so a crossover cable will usually still work.
Do T568A and T568B apply to Cat6 and Cat6a cables?
Yes. T568A and T568B apply to Cat5e, Cat6, Cat6a, Cat7, and Cat8 cables. The pin wiring is identical across all categories. The difference between categories lies in cable construction, shielding, and bandwidth capacity, not in the pin arrangement.

Related Tools