The short answer
An Ethernet LAN cable has eight wires, grouped into four twisted pairs. Each wire has a color, and the colors follow one of two published wiring standards, T568A or T568B. If you’re asking what color wires for internet cables use, the answer is one of those two codes. The color of the plastic jacket on the outside doesn’t tell you the wiring, and a standard cable needs the same code at both ends.
In the network stack, the cable is the physical layer. For how that fits with the layers above it, see “What is L1, L2, L3, and L4 in networking?”
The eight wire colors
Pins are numbered 1 to 8. With the plug’s gold contacts facing you and the latch pointing down, pin 1 is on the left.
| Pin | T568A | T568B |
|---|---|---|
| 1 | White/green | White/orange |
| 2 | Green | Orange |
| 3 | White/orange | White/green |
| 4 | Blue | Blue |
| 5 | White/blue | White/blue |
| 6 | Orange | Green |
| 7 | White/brown | White/brown |
| 8 | Brown | Brown |
The wires form four pairs: pins 1 and 2, pins 3 and 6, pins 4 and 5, and pins 7 and 8. Each pair is twisted inside the cable, which helps reduce interference between the pairs. The pair on pins 3 and 6 skips over the pair on pins 4 and 5, so it can look out of order when you read down the plug.
T568A and T568B
The two standards differ only in the orange and green pairs. The blue and brown pairs sit in the same place in both.
T568B is the more common choice in homes and offices in the United States. T568A works just as well. Either one is fine for a single cable, as long as both ends of a straight-through cable use the same one. Keeping one standard across a building makes later repairs and additions easier.
Straight-through and crossover cables
A straight-through cable uses the same standard at both ends. It’s the usual cable for connecting a computer to a router, switch, or wall jack.
A crossover cable uses T568A at one end and T568B at the other. It swaps the pairs used for sending and receiving. Older devices needed crossover cables to connect two computers directly, or two switches to each other. Most modern devices sense the wiring and adjust for it, so crossover cables are rarely needed today.
If you don’t have a cable on hand, you can still get online without one. See “How to connect to internet without LAN cable?”
Does the jacket color matter?
Not for the wiring. Ethernet jackets come in blue, gray, yellow, red, and other colors, and there isn’t a universal meaning for any of them. People often use jacket colors to tell cables apart, such as one color for the office and another for the living room. Check the wire order inside the plug, not the jacket.
Crimping an Ethernet plug
If you are making your own cable, these steps cover the basics:
- Cut the cable to length, allowing some slack at each end.
- Strip about 1 inch (2.5 cm) of the outer jacket, taking care not to nick the insulation on the wires inside.
- Untwist the pairs only as far as the plug needs. Longer untwisted sections can increase interference.
- Arrange the wires in the order for your chosen standard, flat and side by side.
- Trim the ends so all eight are even and flat, with each wire reaching the end of the plug.
- Push the wires into the plug in the same order, and check the order again. Push the jacket far enough that the plug’s strain relief grips it.
- Crimp the plug with a crimping tool, then test the cable before you use it.
Testing the cable
A basic cable tester has two units, one for each end, and each has eight lights. You plug both ends in and the tester sends a signal down each wire. The lights should match the expected pattern on both units. A wrong order, an open wire, or a short shows up as a mismatch.
Test the cable again after it’s installed, since a cable can be damaged when it’s pulled through walls or ceilings.
Coax and phone-line cables are wired differently
Cable internet usually arrives on coaxial cable, which has a center conductor and a metal shield rather than eight colored wires. DSL usually runs over a phone line with smaller RJ11 plugs, and those don’t follow the Ethernet wire order. Fiber connections use optical fiber, which doesn’t use copper wire colors at all.
Different connection types are covered in “Types of network connections used to access the internet.” If you can’t tell which of these cables you have, see “What is my LAN cable?”
Common mistakes
- Using different codes at the two ends of a straight-through cable, which can cause a connection to fail or run slowly.
- Untwisting the pairs too far before the plug.
- Using the jacket color as a guide to the wire order.
- Plugging the modem’s cable into a LAN port. Which port is right is covered in “Does internet cable go in LAN or WAN?”
- Skipping the test. A cable that looks right can still have one wire out of place.