Skip to content
AESTECHNO
AESTECHNO
Contact
Pinout

RJ45 pinout and wiring diagram: T568B and T568A color code

In T568B, the RJ45 wire order from pin 1 to 8 is: white/orange, orange, white/green, blue, white/blue, green, white/brown, brown. T568A swaps the orange and green pairs: white/green, green, white/orange, blue, white/blue, orange, white/brown, brown. 10/100BASE-TX uses pins 1-2 and 3-6; 1000BASE-T uses all four pairs.

By Hugues Orgitello · Updated ·

T568B color code: wire order, pins 1 to 8

Wire order per ANSI/TIA-568 for the T568B standard. In the drawing, a striped wire is a white circle ringed in its color.

RJ45 Ethernet · T568B color code: wire order, pins 1 to 8. Plug seen from the contact side, latch at the back, tip pointing up.
Plug seen from the contact side, latch at the back, tip pointing up
Pin Signal Wire colorTIA pair10/100BASE-TX Description
1 BI_DA+ White/orange2TX+ Pair A, positive (Differential pair)
2 BI_DA- Orange2TX- Pair A, negative (Differential pair)
3 BI_DB+ White/green3RX+ Pair B, positive (Differential pair)
4 BI_DC+ Blue1- Pair C, positive (Differential pair)
5 BI_DC- White/blue1- Pair C, negative (Differential pair)
6 BI_DB- Green3RX- Pair B, negative (Differential pair)
7 BI_DD+ White/brown4- Pair D, positive (Differential pair)
8 BI_DD- Brown4- Pair D, negative (Differential pair)

T568A color code: wire order, pins 1 to 8

Wire order per ANSI/TIA-568 for the T568A standard. In the drawing, a striped wire is a white circle ringed in its color.

RJ45 Ethernet · T568A color code: wire order, pins 1 to 8. Plug seen from the contact side, latch at the back, tip pointing up.
Plug seen from the contact side, latch at the back, tip pointing up
Pin Signal Wire colorTIA pair10/100BASE-TX Description
1 BI_DA+ White/green3TX+ Pair A, positive (Differential pair)
2 BI_DA- Green3TX- Pair A, negative (Differential pair)
3 BI_DB+ White/orange2RX+ Pair B, positive (Differential pair)
4 BI_DC+ Blue1- Pair C, positive (Differential pair)
5 BI_DC- White/blue1- Pair C, negative (Differential pair)
6 BI_DB- Orange2RX- Pair B, negative (Differential pair)
7 BI_DD+ White/brown4- Pair D, positive (Differential pair)
8 BI_DD- Brown4- Pair D, negative (Differential pair)

RJ45, 8 contacts: Gigabit, 10/100 and PoE signals by pin

1000BASE-T signal names per IEEE 802.3; 10/100BASE-TX in its own column, station side (MDI). Wire colors per ANSI/TIA-568.

RJ45 Ethernet · RJ45, 8 contacts: Gigabit, 10/100 and PoE signals by pin. Plug seen from the contact side, latch at the back, tip pointing up.
Plug seen from the contact side, latch at the back, tip pointing up
Pin Signal T568AT568B10/100BASE-TXPoE Description
1 BI_DA+ White/greenWhite/orangeTX+Alt. A Pair A, positive (Differential pair)
2 BI_DA- GreenOrangeTX-Alt. A Pair A, negative (Differential pair)
3 BI_DB+ White/orangeWhite/greenRX+Alt. A Pair B, positive (Differential pair)
4 BI_DC+ BlueBlue-Alt. B (+) Pair C, positive (Differential pair)
5 BI_DC- White/blueWhite/blue-Alt. B (+) Pair C, negative (Differential pair)
6 BI_DB- OrangeGreenRX-Alt. A Pair B, negative (Differential pair)
7 BI_DD+ White/brownWhite/brown-Alt. B (-) Pair D, positive (Differential pair)
8 BI_DD- BrownBrown-Alt. B (-) Pair D, negative (Differential pair)
An interface to design?

An Ethernet port to integrate with or without PoE, magnetics to choose, an immunity test failing on the network cable? We design and measure these interfaces.

Our hardware design expertise · Get the checklist

RJ45 wiring diagram: straight-through and crossover cable

An Ethernet cable reads wire by wire: each conductor keeps its color from end to end, and the standard used at each end decides which pin it lands on. With the same standard at both ends, the white/orange wire leaves pin 1 and arrives on pin 1: that is a straight-through cable, the one almost every network uses.

With T568B at one end and T568A at the other, the same white/orange wire lands on pin 3, where T568A puts white/orange. Pins 1-2 (transmit in 10/100BASE-TX) meet pins 3-6 (receive) at the far end: that is the 10/100BASE-TX crossover cable. On Gigabit, Auto-MDIX interfaces handle the crossing themselves, so a straight cable is enough. The drawings below are computed from the color tables on this page, so they cannot contradict them.

RJ45 wiring diagram, T568B straight-through cable. Pin 1 White/orange > 1, 2 Orange > 2, 3 White/green > 3, 4 Blue > 4, 5 White/blue > 5, 6 Green > 6, 7 White/brown > 7, 8 Brown > 8.
Straight-through cable: the same standard at both ends, every wire lands on the same pin (here T568B on both sides).
RJ45 wiring diagram, T568B to T568A crossover cable. Pin 1 White/orange > 3, 2 Orange > 6, 3 White/green > 1, 4 Blue > 4, 5 White/blue > 5, 6 Green > 2, 7 White/brown > 7, 8 Brown > 8.
10/100 crossover cable: T568B at one end, T568A at the other. The orange and green pairs cross (1 to 3, 2 to 6); the blue and brown pairs stay straight.

How to crimp an RJ45 plug, step by step

One badly crimped plug is enough to drop a Gigabit link to 100 Mbit/s or make it fail certification. Two ANSI/TIA-568 rules do most of the work: remove only as much jacket as needed, and keep the pairs twisted to within 13 mm (0.5 in) of the termination point.

  1. Strip the jacket to the length the plug maker specifies, without nicking the wire insulation.
  2. Hold the plug with the contacts facing you, latch at the back, tip pointing up: pin 1 is on the left, as in the T568B table drawing.
  3. Untwist the pairs only as far as needed and lay the 8 wires flat in T568B (or T568A) order, from white/orange to brown.
  4. Cut the wires square, then push them all the way in: every conductor must touch the front wall, and the jacket must sit under the strain relief.
  5. Check the color order through the plug, then crimp.
  6. Test continuity and wire order with a cable tester; an installed link is qualified with a certification tester.

Wall jack and keystone: wiring the female side

A female RJ45 jack is not crimped: the wires are punched down into insulation-displacement contacts (IDC) usually with a punch-down tool. Each contact usually carries a color mark for scheme A and for scheme B; follow the one used at the other end, and keep the pairs twisted as close to the contact as you can here too.

Mated pins carry the same number: pin 1 of the plug mates with pin 1 of the jack. Any straight patch cord (A-A or B-B) therefore keeps the link straight: the scheme only has to match at the two ends of the same cable. Cat 6 is wired in the same order as Cat 5e: the category changes the cable and the connectors, not the colors.

T568A vs T568B: what is the difference, which one to use?

Electrically, they are equivalent: only the colors of pairs 2 and 3 swap places. What matters is using the same standard at both ends of a straight cable. A cable with T568A at one end and T568B at the other is a crossover cable.

Crossover cables used to connect two devices of the same type (two PCs, two switches). Modern interfaces do Auto-MDIX and swap transmit and receive themselves, so a straight cable almost always works. Almost every 1000BASE-T PHY implements it.

PoE: which pairs carry power?

IEEE 802.3af and 802.3at (PoE and PoE+) deliver power over two pairs. In alternative A, the voltage rides in common mode on data pairs 1-2 and 3-6. In alternative B, it uses pairs 4-5 (positive) and 7-8 (negative), which 10/100BASE-TX leaves unused. A powered device (PD) must accept both, and both polarities, hence the diode or active bridge at its input.

IEEE 802.3bt (PoE++) adds four-pair power: optional for Type 3 (60 W at the source), mandatory for Type 4 (90 W at the source, 71.3 W available at the device). The polarities in the table are those of 802.3af and 802.3at; 802.3bt allows either polarity on alternative B.

On the board: magnetics, termination and shield

The PHY never connects straight to the RJ45: an isolation transformer (the “magnetics”) sits in between, often built into the connector (RJ45 MagJack). The cable-side center taps go through the so-called Bob Smith termination, a 75 Ω resistor per pair into a shared high-voltage capacitor to chassis.

Each pair is routed at 100 Ω differential. The RJ45 shielded shell goes to chassis ground, and the digital ground plane stays out from under the cable side of the magnetics: that is the isolation barrier.

Frequently asked questions

FAQ

How do you tell if an RJ45 cable is A or B?
Hold the plug with the contacts facing you, latch at the back, tip pointing up, and read the wire on pin 1, on the left. White/orange means T568B. White/green means T568A. If the two plugs of one cable differ, it is a crossover cable.
Is Cat 6 wiring different from Cat 5e?
No, the color order is the same in T568A and T568B. Cat 6 needs Cat 6 plugs and jacks. The untwist limit is the same 13 mm per ANSI/TIA-568, but Fluke Networks recommends aiming for no untwist on Cat 6.
What is the T568B color order?
From pin 1 to pin 8: white/orange, orange, white/green, blue, white/blue, green, white/brown, brown. The orange pair sits on pins 1-2, green on pins 3 and 6, blue on 4-5 and brown on 7-8. Green is therefore split around the blue pair: that is by design, not a crimping mistake.
What is the difference between T568A and T568B?
Only the orange and green pairs swap: in T568A, green is on pins 1-2 and orange on 3-6; in T568B, it is the other way round. Performance is identical. You just need the same standard at both ends of a straight cable.
Which pins does 100 Mbit/s Ethernet use?
10BASE-T and 100BASE-TX use only two pairs: pins 1 and 2 to transmit, 3 and 6 to receive, station side. Pins 4, 5, 7 and 8 stay free, which leaves room for PoE alternative B.
Does Gigabit Ethernet need all 8 wires?
Yes. 1000BASE-T transmits and receives at the same time on all four pairs. A two-pair cable, or one broken pair, drops the link to 100 Mbit/s when both interfaces allow it.
Do you still need crossover cables?
Rarely. Auto-MDIX interfaces detect the wiring and swap transmit and receive by themselves. A crossover cable only matters with old 10/100 equipment without Auto-MDIX connected peer to peer.
Sources

Tables built from these documents and cross-checked against manufacturer datasheets. Always check the datasheet of the connector you actually use: some manufacturers number differently.

Further reading

Other pinouts