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.
| Pin | Signal | Wire color | TIA pair | 10/100BASE-TX | Description |
|---|---|---|---|---|---|
| 1 | BI_DA+ | White/orange | 2 | TX+ | Pair A, positive (Differential pair) |
| 2 | BI_DA- | Orange | 2 | TX- | Pair A, negative (Differential pair) |
| 3 | BI_DB+ | White/green | 3 | RX+ | Pair B, positive (Differential pair) |
| 4 | BI_DC+ | Blue | 1 | - | Pair C, positive (Differential pair) |
| 5 | BI_DC- | White/blue | 1 | - | Pair C, negative (Differential pair) |
| 6 | BI_DB- | Green | 3 | RX- | Pair B, negative (Differential pair) |
| 7 | BI_DD+ | White/brown | 4 | - | Pair D, positive (Differential pair) |
| 8 | BI_DD- | Brown | 4 | - | 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.
| Pin | Signal | Wire color | TIA pair | 10/100BASE-TX | Description |
|---|---|---|---|---|---|
| 1 | BI_DA+ | White/green | 3 | TX+ | Pair A, positive (Differential pair) |
| 2 | BI_DA- | Green | 3 | TX- | Pair A, negative (Differential pair) |
| 3 | BI_DB+ | White/orange | 2 | RX+ | Pair B, positive (Differential pair) |
| 4 | BI_DC+ | Blue | 1 | - | Pair C, positive (Differential pair) |
| 5 | BI_DC- | White/blue | 1 | - | Pair C, negative (Differential pair) |
| 6 | BI_DB- | Orange | 2 | RX- | Pair B, negative (Differential pair) |
| 7 | BI_DD+ | White/brown | 4 | - | Pair D, positive (Differential pair) |
| 8 | BI_DD- | Brown | 4 | - | 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.
| Pin | Signal | T568A | T568B | 10/100BASE-TX | PoE | Description |
|---|---|---|---|---|---|---|
| 1 | BI_DA+ | White/green | White/orange | TX+ | Alt. A | Pair A, positive (Differential pair) |
| 2 | BI_DA- | Green | Orange | TX- | Alt. A | Pair A, negative (Differential pair) |
| 3 | BI_DB+ | White/orange | White/green | RX+ | Alt. A | Pair B, positive (Differential pair) |
| 4 | BI_DC+ | Blue | Blue | - | Alt. B (+) | Pair C, positive (Differential pair) |
| 5 | BI_DC- | White/blue | White/blue | - | Alt. B (+) | Pair C, negative (Differential pair) |
| 6 | BI_DB- | Orange | Green | RX- | Alt. A | Pair B, negative (Differential pair) |
| 7 | BI_DD+ | White/brown | White/brown | - | Alt. B (-) | Pair D, positive (Differential pair) |
| 8 | BI_DD- | Brown | Brown | - | Alt. B (-) | Pair D, negative (Differential pair) |
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.
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.
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.
- Strip the jacket to the length the plug maker specifies, without nicking the wire insulation.
- 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.
- Untwist the pairs only as far as needed and lay the 8 wires flat in T568B (or T568A) order, from white/orange to brown.
- 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.
- Check the color order through the plug, then crimp.
- 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.
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.
- ANSI/TIA-568.2-D, Balanced Twisted-Pair Telecommunications Cabling (paid or members-only document)
- Fluke Networks, Terminating a Category 6, 5e and 5 connector (quotes ANSI/TIA-568-C.0: pair twist within 13 mm of the termination)
- IEEE 802.3, clauses 14 (10BASE-T), 25 (100BASE-TX), 40 (1000BASE-T), 33 and 145 (PoE)
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.
- RJ11, RJ14 and RJ12 pinout (6P2C, 6P4C, 6P6C)
- M12 D-coded and X-coded pinout for industrial Ethernet
- Differential pair impedance calculator (100 Ω)
- Electromagnetic compatibility: shielding and chassis ground
- Hardware and circuit board design
Other pinouts
- USB-C
- USB-A, USB-B, Mini and Micro
- M12 industrial
- DB9 (DE-9)
- JTAG and SWD
- HDMI
- Raspberry Pi GPIO
- M.2 (keys M, B and E)
- SD and microSD card
- PCI Express card edge
- SATA
- DDR4 DIMM and SO-DIMM
- DDR5 DIMM and SO-DIMM
- OBD2 (OBD-II, J1962)
- ESP32, S3, C3 and C6
- Bosch ECUs EDC15P+, EDC16C34, MD1CS006
- RJ11, RJ14, RJ12 (6P6C)
- VGA (DE-15) and DVI
- RS-485 (Modbus)
- Arduino Uno, Nano and Mega
- Raspberry Pi Pico
- PC power: ATX, PCIe, fan