.jpg)
What is a sort code?
A sort code is a 6-digit number that identifies a specific bank and branch within the United Kingdom's domestic payment system. Used alongside an account number, a sort code tells the payment network exactly which institution should send or receive funds. Every bank account in the UK has one.
Sort codes are required for domestic sterling transfers, including those processed over Faster Payments, BACS, and CHAPS. For international transfers into UK accounts, sort codes are encoded within the account's IBAN (International Bank Account Number) alongside the account number.
What does a sort code look like?
A sort code is always six digits, written in three pairs separated by hyphens: XX-XX-XX. For example, 20-00-00 is a Barclays sort code.
Each pair of digits carries specific meaning:
- The first two digits identify the bank (and in some cases, the clearing network)
- The last four digits identify the specific branch
When combined with an 8-digit UK account number, the sort code and account number together uniquely identify a single bank account in the country.
How sort codes work in domestic payments
When a payer initiates a GBP transfer, the payment network uses the sort code to route funds to the correct institution. The process differs slightly depending on which payment rail is being used.
Faster Payments
Faster Payments is the UK's real-time interbank payment rail, processing the majority of consumer and business bank transfers. Payments settle instantly, 24/7. The sort code and account number are mandatory routing fields for every Faster Payments transaction.
In 2024, Faster Payments processed 5.09 billion transactions, up 13.1% on 2023, with a total value of £4.24 trillion. Full annual and quarterly statistics are published by Pay.UK at wearepay.uk/payment-statistics.
BACS
BACS (Bankers' Automated Clearing Services) processes bulk payments like payroll and direct debits. It also uses sort codes for routing, but operates on a 3-business-day processing cycle. BACS is operated by Pay.UK, the same body that oversees Faster Payments. You can read more about how bulk bank transfers work in our guide to electronic funds transfers.
CHAPS
CHAPS (Clearing House Automated Payment System) is the UK's high-value same-day payment rail, used primarily for property purchases, corporate treasury movements, and large financial transactions. CHAPS is operated by the Bank of England and also relies on sort codes for routing. There is no transaction value limit, but individual banks may apply their own limits.
Sort codes vs. IBANs: what's the difference?
For domestic UK transfers, only a sort code and account number are required. For international transfers into or out of the UK, the receiving bank will typically require an IBAN.
A UK IBAN is 22 characters long and includes:
- The country code (GB)
- A 2-digit check number
- A 4-character bank identifier code
- The 6-digit sort code
- The 8-digit account number
In other words, the sort code is embedded within the IBAN. Counterparties sending international payments to UK accounts do not need to know the sort code separately, only the IBAN and the bank's SWIFT/BIC code.
Sort codes in Ireland
Republic of Ireland bank accounts historically used sort codes in a similar format as part of the NSC (National Sort Code) system. However, Ireland is part of the SEPA zone and domestic euro payments now route using IBAN and BIC rather than sort codes. For GBP payments to Northern Irish banks (which use UK sort codes), the UK sort code system applies.
Why sort codes matter for fintechs building on GBP rails
Any fintech accepting or sending GBP payments programmatically needs to validate sort codes as part of payment processing. Incorrect sort codes cause payment failures or misdirected funds. Key considerations include:
- Sort code validation: Verify that a sort code exists and is active before initiating a transfer. The UK Finance Sort Code Checker provides an official lookup tool.
- Account number format: UK account numbers are always 8 digits. Some legacy accounts used 6- or 7-digit numbers, which are padded with leading zeros to reach 8 digits.
- Faster Payments eligibility: Not all sort codes are enabled for Faster Payments. Some smaller institutions only support BACS, meaning same-day settlement is not available for those accounts.
- CHAPS access: CHAPS is a direct participant model. Most fintechs access it indirectly through a sponsor bank rather than as direct members.
For fintechs building cross-border payment products that touch GBP rails, understanding the routing logic behind sort codes is foundational. Due supports GBP pay-ins and payouts for the UK via Faster Payments and BACS, alongside SEPA for euro settlements, through a single API integration.