HomeWire home network lab
Set Up & Get Online

Ethernet Wiring Diagram: How to Wire an RJ45 Plug and Wall Socket

By the HomeWire team Updated 2026 Tested in real UK homes

An ethernet wiring diagram comes down to one thing: getting the eight coloured wires into the right order and keeping both ends of the cable consistent. Whether you are crimping an RJ45 plug onto a patch lead or punching wires into a keystone wall socket, the colour sequence is the same, and there are only two standards to choose from. Get the order right and both ends matching, and the cable just works. Get one wire out of place, or mix the two standards, and you get a dead connection or a much slower one. This guide gives you the colour order for both standards and the steps for a plug and a socket.

The single most important rule, before anything else: pick one standard and use it on both ends of the cable. That is what turns eight loose wires into a working link.

The two standards: T568A and T568B

There are two wiring standards, T568A and T568B. They are electrically identical, so neither is faster than the other; the only difference is which colours sit on which pins. You just need to choose one and stick to it throughout your home.

T568B is the more common choice in most installations. Its wire order, pin 1 to pin 8, is:

  1. White/Orange
  2. Orange
  3. White/Green
  4. Blue
  5. White/Blue
  6. Green
  7. White/Brown
  8. Brown

T568A swaps the orange and green pairs. Its order, pin 1 to pin 8, is:

  1. White/Green
  2. Green
  3. White/Orange
  4. Blue
  5. White/Blue
  6. Orange
  7. White/Brown
  8. Brown

If you are wiring a whole house, T568B is a sensible default simply because it is the one most kit and most guides assume. What matters far more is that every socket, plug and patch lead in your home uses the same one.

The rule you must not break

Never terminate one end of a cable with T568A and the other with T568B. Doing that accidentally creates a crossover cable, which will not work as a normal straight-through connection between a device and a router or switch. Modern gear can sometimes auto-correct it, but you should never rely on that. Straight-through, same standard on both ends, every time. This one mistake causes more “the cable doesn’t work” problems than anything else.

How to wire an RJ45 plug (crimp connector)

For making a patch lead or terminating a run into a plug:

  1. Strip the jacket. Remove about 25mm (1 inch) of the outer sheath without nicking the inner conductors.
  2. Untwist and sort. Separate the four twisted pairs and arrange the eight wires flat in your chosen order, T568B or T568A from above.
  3. Flatten and trim. Straighten the wires, hold them flat and side by side, then cut them square to about 12mm (0.5 inch). They need to be short enough that the outer jacket seats inside the connector while the wires reach the gold contacts at the front.
  4. Insert. Slide all eight wires fully into the RJ45 plug, keeping them in order, with the clip facing away from you and pin 1 on the left. Check through the clear plastic that each wire reaches the end.
  5. Crimp. Push the plug into the crimp tool and squeeze firmly. This drives the contacts into the wires and locks the jacket in place.

How to wire a keystone wall socket

A wall socket (keystone jack) uses punch-down slots rather than a crimp, and it is often easier for beginners because the colour code is printed on the jack itself.

  1. Strip about 25mm of jacket and untwist the pairs only as far as you need to.
  2. Match the colours to the labels. Every keystone jack has a colour guide printed on it, usually with both a T568A and a T568B row. Lay each wire into the slot matching your chosen standard.
  3. Punch down. Use a punch-down tool to press each wire into its slot; the tool seats the wire and trims the excess in one action. If you do not have one, some tool-less jacks close over the wires instead.
  4. Clip the jack into the faceplate and you are done.

Keep untwisting to a minimum at both ends. The twists in the pairs are what reject interference, so leaving them intact right up to the connector keeps speeds high, which matters on longer runs. For choosing the cable itself, see our guide to Cat 6 ethernet cable, and if you are planning routes around the house, running ethernet cable through the house covers the wider job.

Test before you close the wall

Once both ends are terminated, test the cable before you tidy up or plaster anything over. A cheap cable tester lights up pins 1 to 8 in sequence at both ends and instantly shows a miswire, a reversed pair or a broken conductor. If you do not have a tester, plugging the lead into a device and confirming a full-speed link is a rough check. For the official colour and pinout definitions, Fluke Networks sets out the T568A and T568B standards in detail. If a finished cable connects but has no internet, our guide to ethernet connected but no internet covers what to check next.

Frequently asked questions

What is the correct order of wires for an ethernet cable? Use one of two standards. T568B runs white/orange, orange, white/green, blue, white/blue, green, white/brown, brown from pin 1 to 8. T568A swaps the orange and green pairs. Both perform identically; the essential rule is to use the same standard on both ends of the cable.

Should I use T568A or T568B? Either works, as they are electrically identical. T568B is the more common default and the one most equipment and guides assume, so it is a safe choice for a home. The only firm requirement is consistency: use the same standard on every plug, socket and lead in your network.

What happens if I wire each end differently? If you terminate one end with T568A and the other with T568B, you create a crossover cable rather than a standard straight-through one. It will usually fail to connect a device to a router or switch normally. Always match the standard at both ends.

Do UK ethernet sockets use the same colour code? Yes. The T568A and T568B colour standards are used worldwide, including in UK homes, for both RJ45 plugs and keystone wall sockets. The colour code printed on a UK keystone jack will show the same two rows, and you simply follow the one you have chosen.

Do I need special tools to wire ethernet? For an RJ45 plug you need a crimp tool and connectors. For a keystone wall socket you need a punch-down tool, though some tool-less jacks avoid this. A wire stripper helps, and an inexpensive cable tester is well worth having to confirm the termination before you rely on the run.

// more from HomeWire
Why Is My Wi-Fi So Slow? 12 Fixes That Actually Work (UK)
Fix It: Wi-Fi & Network Troubleshooting

Why Is My Wi-Fi So Slow? 12 Fixes That Actually Work (UK)

Why is my Wi-Fi so slow? 12 tested UK fixes, from router placement and 5GHz to channel changes and your Ofcom minimum-speed rights.

Wi-Fi Keeps Dropping or Disconnecting? Step-by-Step Fix
Fix It: Wi-Fi & Network Troubleshooting

Wi-Fi Keeps Dropping or Disconnecting? Step-by-Step Fix

If your wifi keeps dropping, work through these UK fixes in order: restart the router, change the channel, split the bands and check for a line fault.

Ethernet Connected But No Internet? How to Fix It
Fix It: Wi-Fi & Network Troubleshooting

Ethernet Connected But No Internet? How to Fix It

Ethernet connected but no internet? Work through these ordered UK fixes, from a quick router reboot to DHCP, DNS and driver repairs that get you back online.

How to Log Into Your Router at 192.168.1.1 (UK Routers)
Set Up & Get Online

How to Log Into Your Router at 192.168.1.1 (UK Routers)

A step-by-step 192.168.1.1 router login guide for UK routers, plus the correct IP for BT, Sky, Virgin, TalkTalk, EE and Plusnet hubs.

How to Change Your Wi-Fi Channel to Stop Interference
Set Up & Get Online

How to Change Your Wi-Fi Channel to Stop Interference

How to change your Wi-Fi channel to stop interference: best 2.4GHz and 5GHz channels, plus steps for BT, Sky, Virgin and TalkTalk routers.

Mesh Wi-Fi vs Extender vs Powerline: Which Beats Dead Spots?
Gear: Mesh, Extenders & Adapters

Mesh Wi-Fi vs Extender vs Powerline: Which Beats Dead Spots?

Mesh vs extender vs powerline compared for UK homes: which one actually fixes Wi-Fi dead spots, with real speeds, costs and setup tips.

Wi-Fi Channel Finder
Tools

Wi-Fi Channel Finder

Best Wi-Fi channel finder for UK homes: read your phone's Wi-Fi scan and get the least-crowded 2.4GHz, 5GHz and 6GHz channel to switch to.

Broadband Speed Calculator: How Much Do You Actually Need?
Tools

Broadband Speed Calculator: How Much Do You Actually Need?

Free broadband speed calculator: tell us your household and we work out how much broadband speed you need, in Mbps, for the UK.

Mesh Node Planner
Tools

Mesh Node Planner

Free UK mesh node planner: answer how many mesh nodes do I need for your home's size, floors and walls, with a printable placement plan.

How to Fix Wi-Fi Dead Spots at Home: 9 Proven Fixes
Fix It: Wi-Fi & Network Troubleshooting

How to Fix Wi-Fi Dead Spots at Home: 9 Proven Fixes

Fix Wi-Fi dead spots at home with 9 proven steps, free fixes first: router placement, band, channel, mesh, wired backhaul and UK ISP kit explained.

Best Mesh Wi-Fi Systems UK 2026: Tested and Compared
Gear

Best Mesh Wi-Fi Systems UK 2026: Tested and Compared

The best mesh Wi-Fi systems for UK homes in 2026, ranked by coverage, value and backhaul. Wi-Fi 6, 6E and 7 picks for brick and stone walls.

How to Reset Your Router Without Losing Your Settings
Set Up & Get Online

How to Reset Your Router Without Losing Your Settings

Restart fixes most problems and keeps every setting. Factory reset wipes the lot. UK hub-by-hub steps for BT, Virgin, Sky and EE, plus what to save first.

What Is a Good Ping for Gaming and How to Lower It
Speed & Coverage

What Is a Good Ping for Gaming and How to Lower It

A good gaming ping is under 30ms for competitive play, under 50ms casual. Here is how to lower it: go wired, pick a near server, and fix Wi-Fi and QoS.

BT, Sky, Virgin and EE Router Default Passwords Explained
Set Up & Get Online

BT, Sky, Virgin and EE Router Default Passwords Explained

There is no master password for BT, Sky, Virgin or EE hubs. Where each default actually lives, Wi-Fi vs admin passwords, and what a reset restores.

Why Your Broadband Slows Down in the Evening (and What to Do)
Fix It: Wi-Fi & Network Troubleshooting

Why Your Broadband Slows Down in the Evening (and What to Do)

Broadband slow in the evening? Here's why UK speeds dip around 9pm, how to test if it's your line or Wi-Fi, and what actually fixes it.

2.4GHz vs 5GHz vs 6GHz: Which Band Should You Use and When
Speed & Coverage

2.4GHz vs 5GHz vs 6GHz: Which Band Should You Use and When

Which Wi-Fi band to join, when, for UK homes. A use-case table, the physics, Ofcom rules, plus 6GHz, WiFi 6E/7 and merge-vs-split SSID advice.

How to Run an Ethernet Cable Through Your House Tidily
Set Up & Get Online

How to Run an Ethernet Cable Through Your House Tidily

A practical UK guide to running Ethernet cable through your house tidily: planning routes, choosing cable, wall and floor runs, terminating and safety.

Long Ethernet Cable: Which Length and Category to Buy
Gear: Mesh, Extenders & Adapters

Long Ethernet Cable: Which Length and Category to Buy

Buying a long Ethernet cable for a UK home? Which length and category to pick, why length barely affects speed, and outdoor and in-wall rules.

What Is Broadband? A Plain-English Guide for UK Households
Set Up & Get Online

What Is Broadband? A Plain-English Guide for UK Households

What is broadband, in plain English: the UK types explained, real speeds vs the headline numbers, and what the 2027 copper switch-off means for you.

Smart Wi-Fi: What It Means and Why Your Next Router Needs It
Speed & Coverage

Smart Wi-Fi: What It Means and Why Your Next Router Needs It

What smart Wi-Fi actually means: band steering, mesh roaming, app control and device priority explained in plain English, and whether you really need it.

BT WiFi Hotspot: How to Use It When You're Away From Home
Speed & Coverage

BT WiFi Hotspot: How to Use It When You're Away From Home

How a BT Wi-Fi hotspot works, how to connect with your BT ID or the app, the BTWifi-with-Fon network, and how it now ties into EE Wi-Fi.

Cat 6 Ethernet Cable: What to Know Before You Buy
Gear: Mesh, Extenders & Adapters

Cat 6 Ethernet Cable: What to Know Before You Buy

A plain-English Cat 6 Ethernet cable guide for UK homes: how it compares to Cat5e and Cat6a, real speed limits, shielding, and which cable to actually buy.

Outdoor Wi-Fi Extender Guide: Garden, Garage and Outbuildings
Speed & Coverage

Outdoor Wi-Fi Extender Guide: Garden, Garage and Outbuildings

An outdoor wifi extender can push your network to the garden, garage or outbuilding. How they work, IP ratings, PoE, and how to choose the right one.

Gear: Mesh, Extenders & Adapters

HDMI Extender Guide: Send an HDMI Signal Over Long Distances

An HDMI extender sends video and audio far beyond a normal cable's limit. How the main types work, their real distances, and how to choose the right one.

Gear: Mesh, Extenders & Adapters

PoE Switch Explained: Power Over Ethernet for Home and Small Office

A PoE switch explained in plain English: how Power over Ethernet works, the PoE, PoE+ and PoE++ standards, what it powers, and whether you need one at home.

Gear: Mesh, Extenders & Adapters

Gigabit and 2.5Gb Network Switches: Is the Upgrade Worth It?

A plain guide to gigabit and 2.5Gb network switches for the home: what a switch does, when 2.5GbE is worth it, managed vs unmanaged, and which type to buy.

Gear: Mesh, Extenders & Adapters

VoIP Adapter Explained: Keep Your Landline When You Switch to Fibre

A VoIP adapter lets you keep your old landline phone on full fibre. Here is how an ATA works, when you need one, and the power-cut catch to plan for.

Set Up & Get Online

Wi-Fi Repeater Setup: Extend a Wireless Network Room by Room

A plain-English wireless Wi-Fi repeater setup guide: WPS and manual methods, where to place it, same or separate SSID, and fixes when it slows your speed.

Fix It: Wi-Fi & Network Troubleshooting

BT Router Flashing Purple or Pink? Meaning and How to Fix It

A BT router flashing purple or pink means no broadband connection. Here is what each BT Hub light colour means and the exact steps to get back online.

Home Wi-Fi News: June 2026
News

Home Wi-Fi News: June 2026

Wi-Fi 8 chipsets break cover, Lightning Fibre rolls out Wi-Fi 7 routers, and Community Fibre cuts 1Gbps with a Wi-Fi 7 router to £20 a month.

Home Wi-Fi News: June 2026
News

Home Wi-Fi News: June 2026

UK leads Europe on Wi-Fi 6 and 7 take-up, Openreach trials a fuller FTTP install, O2 Broadband may return, and the fastest UK ISPs for H1 2026 are named.

Home Wi-Fi News: June 2026
News

Home Wi-Fi News: June 2026

A speed-test study finds 18% of UK homes below 10Mbps, two altnets widen full fibre choice, and Brillband makes a Wi-Fi 7 router standard from 1 July.

News

UK Broadband News: July 2026

An Openreach fault froze ISP ordering systems, altnets launch Broadband Independents' Day, and an MP tables a bill to ban mid-contract price rises.

// stay on the network

Fix one dead zone a week.

Plain-English fixes for British homes: router settings worth changing, mesh kit that actually works, and the speed-test results that matter. One email, no jargon, unsubscribe anytime.

● No spam. Roughly fortnightly. UK-focused.