
RJ45 wiring: colour codes and steps
RJ45 wiring comes down to eight thin wires in the right order. The colour code decides whether the connection works at all; the termination decides whether it still works in a year. This is how it is done, and where it usually goes wrong.
What RJ45 means
RJ45 is the everyday name for the eight-pin connector on a network cable, strictly an 8P8C modular connector. The cable behind it is twisted pair: four pairs of copper wires, twisted around each other to keep interference out. RJ45 wiring is the job of putting those eight wires in the right position, either in a plug on a loose cable or in a wall socket or patch panel where the cable is installed permanently.
The RJ45 wiring diagram
The four pairs are orange, green, blue and brown, each with a white partner. Two standards set the order: T568A and T568B. Either works, as long as both ends of a cable follow the same one. In an existing building, use the standard that is already installed, so nobody later finds two schemes mixed in one patch panel.
| Pin | T568B | T568A |
|---|---|---|
| 1 | white-orange | white-green |
| 2 | orange | green |
| 3 | white-green | white-orange |
| 4 | blue | blue |
| 5 | white-blue | white-blue |
| 6 | green | orange |
| 7 | white-brown | white-brown |
| 8 | brown | brown |
- Pin 1 Hold the plug with the contacts facing you, the clip at the back and the cable pointing down; pin 1 is then on the left.
- Twist Untwist the pairs no further than needed, at most about 13 mm. Every extra centimetre costs performance.
- Straight or crossover The same standard at both ends gives a straight-through cable. A on one end and B on the other gives a crossover, which modern equipment no longer needs because it detects the pairs itself.
- Solid or stranded Installed runs to sockets use solid-core cable, patch leads use stranded. Plugs are made for one or the other, so check which you have.
How to wire RJ45
On a plug or in a socket, the colour order is the same.
Strip
Remove a few centimetres of sheath without nicking the wires, and cut away the rip cord or the cross separator.
Order and trim
Lay the wires in the order of the standard, cut them straight and push them to the end of the plug, with the sheath held inside the plug. In a socket, press each wire into its colour-coded slot with a punch-down tool.
Crimp and test
Crimp the plug and test the cable. A cable that “works” can still run at a lower speed than it should; only a tester shows what it really does.
Which cable to wire
For gigabit to the desk, Cat5e is enough. For a new installation, runs to wifi access points or anything faster than gigabit, Cat6 or Cat6a is the usual choice, and the plugs and sockets have to match the category. The differences are set out in Cat5e vs Cat6 and Cat6 vs Cat6a.
Where our work stops
RJ45 wiring for one cable at home is a job you can do yourself. An office is a different matter: there we lay the data cabling and fit the equipment, with every point tested and a report per port, because an untested cable is a fault waiting to happen. Building work such as new containment through walls or extra electrical circuits is done by a building contractor or electrician. How testing works is explained in Network cable testing, and how a whole installation fits together in Cabling and the server rack.
What it connects to
These pages cover the neighbouring part of the same environment.
Questions we get about this
The ones that come up most, answered briefly.
What is the RJ45 colour code?
Under T568B: white-orange, orange, white-green, blue, white-blue, green, white-brown, brown. T568A swaps the orange and green pairs. Use the same standard at both ends of the cable.
T568A or T568B?
Both work, as long as both ends follow the same one. In an existing building, follow the standard already installed, so that nobody meets two schemes mixed together later.
Why does my homemade network cable not work?
Usually a wire that does not reach the end of the plug, two wires swapped, a plug made for the other cable type, or pairs untwisted too far. A cable tester shows which wire is the problem.
Do you install cabling in business premises?
Yes. We lay data cabling, fit the sockets and patch panels and test every link, with a report per port. Building work such as containment through walls or electrical circuits is done by a building contractor or electrician.
Curious what we would take over?
In a thirty-minute conversation we go through your current IT landscape and tell you honestly whether managed IT suits your situation.
Practical IT knowledge in your inbox
New guides on management, security and the workplace, written by the people doing the work. No sales talk, and you can unsubscribe in one click.