BankCheck
HomeIBANRouting NumberSort CodeGuides
Home
IBAN
Routing Number
Sort Code
Guides

BankCheck

Validate any bank number instantly. Free and 100% client-side.

Your data never leaves the browser

Formats

IBAN40+ countriesRouting NumberUnited StatesSort CodeUK & Ireland

Info

GuidesCompareAlternativesAboutPrivacy PolicyTerms of UseAPI Docs

BankCheck checks whether a number could be valid based on format, length, and checksum rules. It does not verify that an account exists or confirm who it belongs to. Always confirm account details with your bank before making a payment.

© 2026 BankCheck

What Is a Sort Code?

7 min read|Updated March 11, 2026

A sort code is a 6-digit number used by banks in the United Kingdom and Ireland to identify specific bank branches for domestic payments. It serves a similar purpose to routing numbers in the United States — it tells the payment system which bank and branch should receive the funds. Sort codes are a foundational element of the UK banking infrastructure and have been in use for decades, underpinning every domestic bank transfer, Direct Debit, standing order, and salary payment processed through the British financial system.

History of the Sort Code

Sort codes were introduced in the 1960s as part of a broader effort to automate the UK banking system. Before their introduction, clearing cheques was a labour-intensive manual process. Bank clerks had to physically sort paper cheques by hand, routing them to the correct branch — a process that could take several days. In 1968, the Bankers' Automated Clearing Services (BACS) was established to bring electronic processing to the UK payments landscape. BACS needed a standardised numerical system to identify banks and branches, and the 6-digit sort code was born.

The pre-decimal era of British banking relied heavily on manual ledger entries and paper-based clearing. When decimalisation occurred in 1971, the banking industry accelerated its adoption of computer systems. The sort code system dovetailed neatly with this modernisation, providing a compact, machine-readable identifier for every bank branch in the country. Over the following decades, sort codes became embedded in every UK payment system, from the original BACS network through to the Pay.UK systems that operate today.

Sort Code Structure

A sort code is written as three pairs of digits separated by hyphens:

20-00-00
  • 20 — Bank identifier (Barclays)
  • 00 — Regional area code
  • 00 — Specific branch (head office in this case)

The first two digits typically identify the bank. For example, sort codes starting with 20 belong to Barclays, those starting with 60 belong to NatWest, and those starting with 09 belong to Santander UK. The remaining four digits narrow down to the specific branch or processing centre. This hierarchical structure means that a single glance at the first pair of digits can tell you which bank the sort code belongs to, while the full 6-digit code pinpoints the exact branch.

The format is always XX-XX-XX when displayed to customers, though payment systems process it as a continuous 6-digit string without hyphens. Whether you enter it with or without hyphens, our sort code validator will accept both formats and validate it correctly.

Major UK Bank Sort Code Ranges

While the full sort code directory contains thousands of entries, knowing the common bank prefixes is useful for quickly identifying which institution a sort code belongs to. Here are the most widely-recognised ranges:

PrefixBankNotes
20-xx-xxBarclaysOne of the largest UK branch networks
30-xx-xxLloyds BankAlso covers some Halifax accounts
40-xx-xxHSBCUK's largest international bank
60-xx-xxNatWestPart of NatWest Group (formerly RBS)
09-xx-xxSantander UKFormerly Abbey National / Alliance & Leicester
83-xx-xxRoyal Bank of ScotlandNatWest Group, primarily Scottish branches
80-xx-xxBank of ScotlandPart of Lloyds Banking Group

Note that these ranges are approximate guides. Over the years, bank mergers and acquisitions have led to some overlap. For example, Halifax (now part of Lloyds Banking Group) may use sort codes in ranges different from the standard Lloyds 30-xx-xx prefix. Always use a sort code lookup tool to confirm the exact bank and branch.

UK Payment Systems Explained

Sort codes are central to every major UK payment system. Understanding how each system uses them helps clarify why the sort code is so important. These systems are now overseen by Pay.UK, the operator of the UK's retail interbank payment systems.

Faster Payments

Launched in 2008, Faster Payments enables near-instant bank transfers between UK accounts. When you send a Faster Payment, the system uses the recipient's sort code to route the transaction to the correct bank. Most transfers complete within seconds, and the system operates 24 hours a day, 365 days a year. The sort code and account number pair is the minimum information required to send a Faster Payment.

Bacs (Direct Debit & Direct Credit)

Bacs is the workhorse of UK payments. It handles Direct Debits (for bill payments, subscriptions, and memberships) and Direct Credits (for salaries, pensions, and benefit payments). When your employer pays your salary, they submit a Bacs file containing your sort code and account number. Bacs payments take three working days to clear: day one for submission, day two for processing, and day three for settlement. In 2023, Bacs processed over 4.5 billion payments.

CHAPS

The Clearing House Automated Payment System (CHAPS) handles high-value, same-day payments. It is commonly used for property purchases, large business transactions, and other time-critical transfers. CHAPS is operated by the Bank of England and uses sort codes to route payments just like Faster Payments and Bacs. Because CHAPS provides irrevocable, same-day settlement, it is the preferred method for high-value transactions where certainty of payment is essential.

How Sort Codes Are Used

You need a sort code together with an account number for any domestic UK payment, including:

  • Faster Payments (instant bank transfers)
  • Bacs Direct Debits (bills, subscriptions)
  • Bacs Direct Credits (salary payments)
  • Standing orders
  • CHAPS (high-value same-day transfers)

For international transfers to and from the UK, the sort code is embedded within the IBAN. A UK IBAN contains the sort code and account number after the country code, check digits, and bank identifier. If you need to understand how sort codes relate to other bank identifiers, see our guide on sort code vs routing number vs IBAN.

Sort Codes and IBANs — How They Relate

The UK adopted the International Bank Account Number (IBAN) standard to facilitate cross-border payments within Europe and beyond. A UK IBAN is 22 characters long and follows this structure:

GB29 NWBK 6016 1331 9268 19
  • GB — Country code (Great Britain)
  • 29 — Check digits
  • NWBK — Bank identifier code (NatWest)
  • 601613 — Sort code (60-16-13)
  • 31926819 — Account number

This means that if you know your UK IBAN, you can extract your sort code from characters 9 through 14 (positions after the 4-character bank code). Conversely, if you know your sort code and account number, your bank can construct your IBAN. This relationship is particularly important when receiving international payments, as senders outside the UK will need your IBAN rather than just your sort code and account number. To learn how to locate your sort code, see our guide on how to find your sort code.

Digital Banks and Sort Codes

The rise of digital-only banks in the UK — such as Monzo, Starling Bank, and Revolut — has raised questions about whether sort codes are still necessary. The answer is a clear yes. Despite operating without physical branches, these challenger banks still participate in the same UK payment systems (Faster Payments, Bacs, and CHAPS) and therefore require sort codes.

Digital banks typically have a smaller number of sort codes compared to traditional high-street banks with hundreds of branches. Monzo, for example, uses sort codes in the 04-00-04 range, while Starling Bank uses 60-83-71 (issued through its partnership with NatWest's clearing system). Revolut UK accounts use sort codes provided through their banking licence arrangements. In all cases, the sort code functions identically to those used by traditional banks — it routes payments through the UK clearing systems to the correct institution.

Sort Code vs Routing Number vs IBAN

These three formats serve similar purposes in different regions:

FormatRegionLength
Sort CodeUK & Ireland6 digits
Routing NumberUnited States9 digits
IBAN80+ countries15–34 characters

For a detailed comparison of how these systems differ and when to use each one, read our complete guide on sort code vs routing number vs IBAN.

Sort Codes in Ireland vs the UK

The Republic of Ireland historically used the same sort code system as the United Kingdom, a legacy of the pre-independence shared banking infrastructure. Irish sort codes followed the same 6-digit format and were used in the same way for domestic payments. However, since Ireland's adoption of the euro and the Single Euro Payments Area (SEPA), the country has transitioned to using IBANs and BIC codes for all payments. Irish banks no longer issue new sort codes, and domestic payments in Ireland now use IBAN as the primary account identifier.

That said, some legacy Irish sort codes still appear in older banking records and documents. If you encounter an Irish sort code, it will follow the same format as a UK sort code but will not be part of the UK clearing system. Northern Ireland, as part of the United Kingdom, continues to use sort codes through the standard UK payment systems.

Common Mistakes with Sort Codes

Errors with sort codes can cause payments to fail or, worse, to be sent to the wrong account. Here are the most common mistakes people make:

  • Confusing the sort code with the account number. The sort code identifies the bank and branch; the account number identifies your specific account. You need both to complete a payment. The sort code is always 6 digits, while UK account numbers are typically 8 digits.
  • Using the wrong format. Sort codes should be entered as XX-XX-XX or XXXXXX. Entering them with spaces, slashes, or other separators may cause payment forms to reject the input.
  • Transposing digits. Swapping two digits (e.g., entering 20-54-12 instead of 20-45-12) will route the payment to a completely different branch or cause it to fail. Always double-check each digit.
  • Using an outdated sort code. When bank branches merge or close, their sort codes may be redirected or deactivated. If you are using a sort code from old paperwork, verify it is still active.
  • Providing a sort code for international transfers. When sending money to a UK account from abroad, you need the full IBAN (which contains the sort code) rather than just the sort code on its own.

Frequently Asked Questions

Is a sort code the same as a routing number?
No. A sort code is used in the UK and Ireland and has 6 digits. A routing number (also called an ABA routing transit number) is used in the United States and has 9 digits. Both serve the same fundamental purpose — identifying a bank for payment routing — but they belong to entirely different clearing systems and cannot be used interchangeably. For a full comparison, see our guide on sort code vs routing number vs IBAN.
Do all UK banks have sort codes?
Yes. Every bank and building society that participates in the UK payment systems has at least one sort code. This includes traditional high-street banks, building societies, digital-only banks (such as Monzo and Starling), and e-money institutions that hold UK banking licences. Sort codes are assigned and managed through the Pay.UK industry sort code directory.
Can two banks share a sort code?
No. Each sort code is unique and is assigned to a single bank and branch (or processing centre). However, a single bank may have hundreds or even thousands of sort codes across its branch network. When banks merge, the acquired bank's sort codes are typically redirected to the new parent institution, but they remain unique identifiers.
Does my sort code change if my branch closes?
Usually not. When a bank branch closes, the sort code associated with that branch is typically redirected to another branch or a central processing centre. Your account details — including your sort code and account number — generally remain unchanged. However, it is always worth checking with your bank if you are notified of a branch closure, as there are rare cases where accounts may be migrated to a new sort code.
Do digital banks have sort codes?
Yes. Digital-only banks like Monzo, Starling Bank, and Revolut all issue sort codes to their customers. Even though these banks do not have physical branches, they still participate in UK payment clearing systems (Faster Payments, Bacs, CHAPS) and need sort codes to receive and send payments. You can find your sort code in your banking app under account details.

Validate a Sort Code

Use our sort code validator to check whether a sort code is valid and see which bank and branch it belongs to. The tool verifies the format and looks up the bank details instantly. If you need to find your own sort code first, check our step-by-step guide on how to find your sort code.

Related Guides

How to Find Your Sort Code

7 min read

IBAN vs SWIFT Code: What’s the Difference?

8 min read

Back to all guides.