T568A vs T568B: RJ45 Color Codes, Pinouts and Crossover Cables

By editor 6 min read
RJ45 plugs wired to T568A and T568B color codes side by side

T568A and T568B are the two standard color codes for terminating Ethernet cable in RJ45 (8P8C) connectors. The only difference is that the orange and green pairs are swapped: T568B runs white/orange, orange, white/green, blue, white/blue, green, white/brown, brown on pins 1–8, while T568A starts with white/green, green and swaps the orange pair onto pins 3 and 6. Both perform identically. A cable with the same standard on both ends is a straight-through cable; T568A on one end and T568B on the other makes a crossover cable for 10/100 Mb/s Ethernet.

2 pairs
swap: orange and green
Pins 1, 2, 3, 6
change color
Same
electrical performance
A ↔ B
crossover cable
T568A and T568B RJ45 color codesT568A pins 1 to 8: white/green, green, white/orange, blue, white/blue, orange, white/brown, brown. T568B pins 1 to 8: white/orange, orange, white/green, blue, white/blue, green, white/brown, brown. Only the green and orange pairs on pins 1, 2, 3 and 6 change places.T568A and T568B pinouts: only the orange and green pairs swapT568Aclip facing away, pins 1 → 8 left to right12345678T568Bclip facing away, pins 1 → 8 left to right12345678pins 1, 2, 3, 6changepins 4, 5, 7, 8stay the samePin 1 is on the left when you look at the plug’s contacts with the latch (clip) facing away from you.IndustrialBasicsindustrialbasics.com
Figure 1: Color codes from the Wikipedia ANSI/TIA-568 article. Both are straight-through standards; only the colors on pins 1, 2, 3 and 6 differ.

T568A vs T568B Pinout Table

PinT568A colorT568A pairT568B colorT568B pair10/100 Mb/s use
1white/green3white/orange2used
2green3orange2used
3white/orange2white/green3used
4blue1blue1not used
5white/blue1white/blue1not used
6orange2green3used
7white/brown4white/brown4not used
8brown4brown4not used
Pinouts from the Wikipedia ANSI/TIA-568 article. Pair colors: 1 blue, 2 orange, 3 green, 4 brown. Gigabit (1000BASE-T) uses all four pairs.

Wikipedia explains that ANSI/TIA-568 defines how to connect eight-conductor 100-ohm balanced twisted-pair cable, such as Category 5, to 8P8C modular connectors, and that “the difference between the T568A and T568B pinouts is that pairs 2 and 3 (orange and green) are exchanged.” Each pair has one solid-color wire and one white wire with a stripe of that color.

Which Standard Should You Use?

Wikipedia notes that TIA-568 recommends T568A for horizontal cables, that it is compatible with one- and two-pair USOC telephone pinouts, and that the US government requires it in federal contracts. T568B is allowed where needed to match existing 8-pin cabling, because it matches the older AT&T 258A (Systimax) pattern that was the most widely installed in the 1990s. Wikipedia adds that many organizations still use T568B out of inertia.

  • Match the existing site. If the building or machine is wired T568B, keep using T568B.
  • Follow the spec. Federal and some institutional jobs call for T568A.
  • Be consistent at both ends. Wikipedia notes cables of either type work in the same installation if each cable has the same pinout on both ends.

Straight-Through vs Crossover Cables

Straight-through and crossover Ethernet cablesA straight-through cable has the same standard on both ends, connecting each pin to the same pin. A crossover cable has T568A on one end and T568B on the other, swapping the orange and green pairs. Auto-MDI-X ports remove the need for crossover cables.Straight-through vs crossoverStraight-through (patch) cableT568B ↔ T568B or T568A ↔ T568APin 1 to pin 1 … pin 8 to pin 8. Use for almost everything.Crossover cable (10/100 Mb/s)T568A ↔ T568BSwaps pairs 2 and 3 so transmit meets receive. Rarely needed today.Auto-MDI-X ports switch internally, so a straight cable works between most modern devices.IndustrialBasicsindustrialbasics.com
Figure 2: Wikipedia: a T568A-to-T568B cable is a crossover for 10BASE-T and 100BASE-TX, which use pairs 2 and 3; Auto-MDI-X detects and corrects the need automatically.

Both standards are “straight through”: pin 1 connects to pin 1 and so on. Wikipedia explains that a cable with T568A on one end and T568B on the other is a crossover cable for 10BASE-T and 100BASE-TX, because those standards use only pairs 2 and 3, exactly the pairs that differ. Crossovers were needed to connect two computers or two switches directly. Today, Auto-MDI-X ports detect whether a crossover is needed and switch internally, so a straight cable works almost everywhere.

What Cable Do I Have? (End-to-End Checker)

How to Terminate an RJ45 Plug

  1. Strip about 1 in of the outer jacket without nicking the conductors.
  2. Untwist the pairs only as far as needed and arrange the wires in T568A or T568B order.
  3. Trim the wires straight so about ½ in protrudes from the jacket.
  4. Insert into the plug with the clip facing away; check every wire reaches the end and the colors are in order.
  5. Crimp firmly, then test with a cable tester for continuity, shorts, split pairs and miswires.
Installation tip: Keep the twists as close to the termination as possible. Untwisting pairs too far degrades crosstalk performance, especially on Cat 6 and above.

Ethernet Cabling in Industrial Settings

PLCs, HMIs, drives and remote I/O on EtherNet/IP, Modbus TCP and PROFINET use the same 8P8C pinouts. Industrial installations add concerns of their own: separation from power cable, shielded cable where noise is high, and connectors rated for vibration and washdown. For serial alternatives that still connect many field devices, see RS-232 vs RS-485; for configuring HMI communications, HMI communication drivers.

The wiring standard does not change the speed: see 1000BASE-T vs 100BASE-TX for which pairs each Ethernet speed actually uses.

Frequently Asked Questions

What is the difference between T568A and T568B?

The orange and green pairs are swapped. T568A puts white/green and green on pins 1 and 2 and white/orange and orange on pins 3 and 6; T568B does the opposite. Pins 4, 5, 7 and 8 (blue and brown) are the same in both.

Is T568A or T568B better?

Electrically they perform the same. Wikipedia notes TIA-568 recommends T568A for horizontal cabling and it is required in US federal contracts, while T568B (inherited from AT&T 258A) remains widely used. Pick one and use it consistently.

What is the T568B color code?

Pins 1–8: white/orange, orange, white/green, blue, white/blue, green, white/brown, brown.

What is the T568A color code?

Pins 1–8: white/green, green, white/orange, blue, white/blue, orange, white/brown, brown.

Can I mix T568A and T568B?

Not within one cable unless you want a crossover. Wikipedia notes cables of either type can be used in the same installation if each cable has the same pinout on both ends.

What is a crossover cable?

A cable with T568A on one end and T568B on the other. For 10BASE-T and 100BASE-TX, which use pairs 2 and 3, this connects transmit to receive between two like devices.

Do I still need crossover cables?

Rarely. Auto-MDI-X ports detect whether a crossover is needed and switch internally, so straight cables work between most modern devices.

Which pins does Ethernet use?

10BASE-T and 100BASE-TX use pins 1, 2, 3 and 6 (two pairs). 1000BASE-T and faster use all four pairs.

Is RJ45 the right name?

Wikipedia notes that the 8P8C modular connector is often incorrectly called RJ45; RJ45 originally referred to a specific telephone wiring arrangement. In everyday use, “RJ45” means the Ethernet 8P8C plug.

Which way is pin 1 on an RJ45 plug?

With the contacts facing you and the latch (clip) facing away, pin 1 is on the left.

Sources and Further Reading

About the author

editor

Leave a Comment