A sort code is a six-digit number that identifies which bank or branch holds your account

In the UK and Ireland, a sort code is the routing number that tells the payment system which financial institution to send money to. It looks like this: 20-45-67, written with hyphens or sometimes as 204567 without them. Every bank and building society has sort codes, and many large banks have multiple codes for different branches or departments.

The sort code works alongside your account number—together they form the complete address for your account. Without the sort code, the payment system cannot find the right bank, even if the account number is correct. This is why both pieces of information are required for standing orders, direct debits, and transfers from outside your bank.

Sort codes are not secret. Banks print them on cheques, statements, and online banking portals. You can share your sort code freely; it is the account number that needs protection.

Key Takeaways

  • A sort code is a six-digit number that identifies your bank or branch and is required for any payment sent to your account from outside that bank.
  • Sort codes are printed on cheques and visible in your online banking, and you can share them without security risk.
  • The sort code plus account number together form the complete routing information for your account.
  • Different branches of the same bank may have different sort codes, particularly for large institutions.
  • If you use the wrong sort code, the payment may go to the wrong bank or be rejected entirely.

How sort codes are structured and what each part means

A sort code has six digits divided into three pairs. The first two digits identify the bank or building society. The second pair identifies the clearing house or processing centre. The final pair identifies the specific branch.

For example, Barclays uses sort codes beginning with 20, HSBC uses codes beginning with 40, and Lloyds uses codes beginning with 30. Within each bank, different branches have different final digits. A Barclays branch in London might be 20-45-67, while a different Barclays branch might be 20-45-68.

This structure matters because it tells the payment system exactly where to route your money. If you transpose digits or use an outdated code, the payment goes to the wrong place or fails to process.

Where to find your sort code

Your sort code appears in several places. The easiest is your cheque book—it is printed at the bottom left of every cheque, usually in the format XX-XX-XX. If you do not use cheques, log into your online banking and look for account details or account information. Most banks display the sort code next to your account number.

You can also call your bank's customer service line and ask for your sort code. Have your account number ready. Some banks print the sort code on statements, though this varies.

If you have moved branches or your bank has merged with another, your sort code may have changed. Always check your current statements or online banking rather than relying on an old cheque book.

Why sort codes matter for payments and transfers

When you set up a standing order or direct debit, you must provide both the sort code and account number of the receiving account. The sort code tells the payment system which bank to contact. Without it, the instruction cannot be processed.

For bank transfers, whether through your online banking or at a branch, you need the recipient's sort code and account number. Some payment apps now use Faster Payments or when ready Payments, which still require the sort code behind the scenes, though you may not see it—the app looks up the code automatically.

If you provide the wrong sort code, the payment may be rejected before it leaves your bank, or it may be sent to the wrong institution. Some banks have systems that check whether the sort code and account number match before allowing the transfer. Others do not, which is why accuracy matters.

Sort codes versus account numbers and other identifiers

A sort code is not the same as an account number. Your account number is typically 8 digits and identifies your specific account within a bank. The sort code identifies the bank or branch. Together, they form the complete routing information.

You may also hear about International Bank Account Numbers (IBANs) if you receive money from abroad. An IBAN includes the sort code and account number plus country and check digits, all in one string. For a UK account, the IBAN starts with GB, followed by two check digits, then the sort code and account number combined.

Some international transfers also require a SWIFT code (also called a BIC code), which identifies the bank globally rather than just the branch. This is different from a sort code and is used for payments between countries.

What happens if you use the wrong sort code

If you provide an incorrect sort code, the outcome depends on whether the code is valid and whether it matches the account number you provided. If the sort code does not exist, your bank may reject the payment before it is sent. If the sort code is valid but belongs to a different bank or branch, the payment may be sent there instead.

Some banks now use Confirmation of Payee (CoP), a system that checks whether the name on the receiving account matches the name you provided. If there is a mismatch, the payment is blocked or flagged. This catches some errors, but not all.

If money goes to the wrong account, you will need to contact your bank and ask them to trace the payment. Recovery can take weeks and is not always successful. This is why checking the sort code before sending large amounts is worth the extra minute.

Changes to sort codes and what to do if yours has changed

Sort codes can change when banks merge, when branches close, or when a bank reorganises its processing centres. If your bank has notified you of a change, update any standing orders or direct debits that use the old code. Your bank will usually tell you the new code and give you a important date to update.

If you have set up a standing order with an old sort code, it may fail to process. Contact your bank to update the instruction. For direct debits, the receiving organisation (your utility company, for example) may contact you to ask for the new details.

Check your statements and online banking regularly to confirm your sort code has not changed. If you are unsure whether your code is current, call your bank or check their website.

Frequently Asked Questions

Is it safe to give someone my sort code?

Yes. A sort code identifies your bank or branch, not your specific account. You cannot withdraw money or access an account with only a sort code. You need both the sort code and account number to send money to an account, and the account number is the sensitive piece. Share your sort code freely when setting up payments.

Can I find someone else's sort code?

Yes, if you know which bank they use. You can search online for a bank's sort codes by branch, or ask the person directly. Sort codes are public information. However, knowing someone's sort code does not tell you their account number, so you cannot send money to their account without asking them for both pieces of information.

What if I send money to the wrong sort code by mistake?

Contact your bank when ready and explain the error. They can attempt to trace the payment and recover the funds, but this is not may provide. The receiving bank may refuse to return the money if the account holder claims it was a legitimate transfer. The sooner you report the error, the better your chances of recovery.

Do I need a sort code for online payment apps?

Most payment apps handle sort codes behind the scenes. You enter the recipient's name and account number, and the app looks up the sort code automatically. However, the sort code is still being used in the background to route the payment to the correct bank.

Has the UK sort code system changed recently?

The sort code system itself has not changed, but the way payments are processed has. Faster Payments and when ready Payments now move money in seconds or minutes rather than days, but both still use sort codes to identify the receiving bank. The six-digit format remains the standard.