Ethernet wiring diagram for Cat5e and Cat6
If you need to wire an RJ45 plug or wall jack from Cat5e or Cat6, use either T568A or T568B and keep the same standard on both ends of a straight-through cable. For most home and small-office work, T568B is the common choice, but T568A is just as valid if you use it consistently. The pin order is fixed: pin 1 through pin 8 always follow the color pattern for the standard you choose.
Start with the pinout you actually need
Before you start
- Cat5e or Cat6 cable
- An RJ45 plug, keystone jack, or patch panel, depending on the job
- A crimp tool for plugs, or a punch-down tool for jacks and patch panels
- A cable tester for the finished run
For normal Ethernet runs, you usually want a straight-through cable: the same wiring standard on both ends. The two standards you’ll see are T568A and T568B. They both carry Ethernet just fine. What matters is consistency.
Use this color order for T568A, looking at the plug or jack with the contacts facing you and the clip on a plug away from you:
- White/green
- Green
- White/orange
- Blue
- White/blue
- Orange
- White/brown
- Brown
Use this color order for T568B:
- White/orange
- Orange
- White/green
- Blue
- White/blue
- Green
- White/brown
- Brown
If you are wiring a typical patch cord, wall jack, or patch panel, pick one standard and stick with it for the whole run. In most homes and offices, T568B is the common default, but the real rule is not the letter you choose. The real rule is that both ends of a straight cable match. If one end is A and the other is B, that can still work in some setups, but only if you meant to build a crossover cable. For everyday Ethernet, don’t do that by accident.
What the ethernet wiring diagram is showing you
An Ethernet wiring diagram is a map from pin numbers to wire colors. It is not something you need to read by guesswork. It tells you where each conductor lands on the connector.
RJ45 has 8 positions, numbered 1 through 8. On a plug, if you hold the clip away from you and look into the front with the gold contacts facing you, pin 1 is on the left and pin 8 is on the right. On a jack or punch-down block, the numbers are usually printed next to the terminals, which makes the job easier.
The four twisted pairs in the cable are:
- blue and white/blue
- orange and white/orange
- green and white/green
- brown and white/brown
Ethernet relies on those pairs being kept together. That is why a good diagram is more than a color chart. It also shows which conductors stay paired and which pins they land on. If you are unsure, stop and check the numbering on the plug or jack before crimping or punching anything down. Most bad terminations start with a connector viewed from the wrong side.
Wiring a standard straight-through cable
A straight-through cable means both ends use the same standard. For a patch cord, that usually means RJ45 plug on one end and RJ45 plug on the other, both wired T568A or both wired T568B. For most people, T568B on both ends is the simplest choice.
- Strip only enough jacket to reach the termination, not a long section of bare pairs.
- Keep each twisted pair together until the last moment.
- Arrange the wires in the exact color order for your chosen standard.
- Flatten the wires side by side so they line up cleanly.
- Trim the ends evenly before inserting them into the plug.
- Push the wires fully into the RJ45 plug so each conductor reaches the front.
- Confirm the jacket reaches into the plug’s strain-relief area before crimping.
- Crimp the plug with the proper tool.
Do the same standard on the other end. If you started with T568B, finish with T568B. If you started with T568A, finish with T568A. That gives you a straight-through cable.
A wall jack or patch cord is not the place to improvise. If you mix the order by eye instead of following the pinout, the cable may still look neat but fail under test or negotiate at a lower speed than expected.
Wiring a wall jack or patch panel
A keystone jack or patch panel uses the same pinout as an RJ45 plug. The difference is that you usually punch each conductor into labeled slots instead of sliding them into a plug and crimping.
Start by choosing T568A or T568B for the whole job. Most jacks and patch panels print both color codes right on the housing. Use one or the other, not a mix of the two. If you are matching an existing installation, copy the standard already in use so every run in the system stays consistent.
When you punch down the cable:
- Remove only as much jacket as needed to reach the terminals.
- Keep the pairs twisted up to the punch-down point.
- Lay each conductor into the slot marked for your chosen standard.
- Punch each wire firmly into place with the correct tool.
- Trim any excess cleanly if the tool does not do it for you.
- Reassemble the jack or panel so the cable is supported and not pulling on the terminations.
The key difference from a plug is that a jack gives you more room to preserve the twist right to the termination. That usually makes for a cleaner result. The same pinout still applies, though: pin 1 through pin 8 must match the chosen standard exactly. If the jack supports both A and B, use one printed column only and ignore the other.
The mistakes that break the connection
Most bad Ethernet cables fail for boring reasons, not mysterious ones. The most common mistake is mixing up the pair order. For example, if you swap orange and green conductors, the cable may still fit and even appear to be terminated correctly, but the pairs are no longer where Ethernet expects them.
Another common problem is split pairs. That happens when the right individual colors land on the right pins, but the conductors are taken from the wrong pairs. The cable can look fine and still perform badly because the signal pairing is wrong. A simple continuity test may not catch every performance problem if the pin-to-pin order looks correct but the pair structure is broken.
Do not untwist the cable more than necessary. The twist is part of the design. If you straighten the pairs too far back from the plug or jack, the connection becomes more prone to noise and crosstalk.
Also avoid these mistakes:
- Using T568A on one end and an unintended wiring scheme on the other
- Cutting the jacket back too far, leaving the conductors unsupported
- Not seating the wires fully into the plug or punch-down terminals
- Crimping a plug before checking the pin order
- Assuming a cable is good because the outer jacket looks neat
If the run does not link, check the pinout first, then the pair order, then the physical termination quality. That order saves time.
How to test the cable before you trust it
Test the cable after termination, before you install it permanently. A basic cable tester is enough for most DIY work.
Connect one end to the main unit and the other end to the remote unit, then run the test. A good result usually means each pin maps to the right pin on the far end, in order.
If the tester shows a pass, the cable is wired correctly at a basic level. If it shows an open, one conductor is not connected. That usually means a wire missed the terminal, a plug was not crimped well, or a punch-down did not bite through the insulation.
If it shows a short, two conductors are touching each other somewhere. That can happen if stray strands are left exposed or if the jacket is stripped too far.
If it shows a miswire, one or more conductors landed on the wrong pins. Go back and compare your termination to the T568A or T568B diagram you chose.
For a wall jack or patch panel, test from end to end after both terminations are complete. For a patch cord, test the finished cord before you put it into service. If you have access to a tester that also checks pair order, use it. That gives you a better chance of catching split pairs that simple continuity alone may miss.
When a different cable type is the better choice
Most of the time, a straight-through Cat5e or Cat6 cable is what you want. A crossover cable is only needed for some older gear that cannot auto-negotiate correctly. Many modern devices do not need one at all.
Power over Ethernet can still use the same T568A or T568B pinout. The important part is a clean termination and cable rated for the job. If you are running power-hungry devices, choose cable and connectors that suit the load and keep the terminations tidy.
If you are working with older switches, unusual industrial gear, or legacy voice/data setups, the standard diagram may not tell the whole story. In those cases, check the device documentation before you assume a normal Ethernet pinout is enough.
For a typical home router, switch, access point, PC, camera, or patch panel, though, the simple answer still holds: use one standard, wire both ends the same, and test it before you rely on it.
Conclusion
Once you know the pin order, Ethernet wiring is mostly a matter of staying organized. Pick T568A or T568B, keep the same standard on both ends of a straight run, preserve the twists as far as you can, and test the finished cable before installing it. If the cable passes testing, you can trust it for a wall jack, patch panel, or patch cord. If it fails, compare the wiring against the pinout first; that catches most problems quickly.
Frequently Asked Questions
Can I mix T568A and T568B in the same building?
Yes. The important part is consistency within each cable run. The same cable should use one standard on both ends unless you intentionally need a crossover cable.
Is T568B better than T568A?
Neither is better for Ethernet performance. T568B is common in many places, but T568A is just as valid if you use it consistently.
Can a cable still work if the colors look right but the pairs are split?
It might link, but it can perform badly or fail under load. Split pairs are a common hidden problem, which is why pair order and testing both matter.