UK Sort Code Finder Guide: Reading the Six Digits Correctly
If you have ever set up a payment, a direct debit, or a salary payment in the United Kingdom, you have met the sort code. It is a six-digit number, usually written in three pairs separated by hyphens, such as 20-12-34 in a sample format. Alongside the eight-digit account number, it tells the payment system which bank and which branch should receive the money. It looks simple, and in many ways it is, but the details matter: a single transposed digit can send a payment to the wrong branch, and a sort code on its own never proves that an account exists.
This guide explains what a sort code is, how to read it, how to check one, and what to do when a code does not behave as expected. It uses sample values only for illustration. A sample code in this guide is not a real branch code and should not be used for a real payment.
What a sort code is
A sort code identifies a bank branch, or more precisely a sorting office, within the UK payment system. The first two digits broadly identify the bank, and the remaining digits narrow it down to a particular branch or processing centre. That is why two accounts at the same bank can have different sort codes, and why an account that was opened at one branch keeps its sort code even if the holder later moves house.
The sort code works together with the account number. The account number, usually eight digits, identifies the individual account at that branch. Neither number is useful on its own for a payment: the sort code says where to go, and the account number says whose account it is once you get there. Some older accounts have shorter account numbers, in which case leading zeros are used to make up eight digits, but the principle is the same.
Sort codes are used for UK domestic payments such as Faster Payments, Bacs direct debits and direct credits, and CHAPS transfers. They are not the same as an IBAN, which is used for international payments, nor a SWIFT or BIC code, which identifies a bank internationally. A UK account has all of these identifiers for different purposes, and using the wrong one for a payment type is a common source of delays.
How to read the six digits
A sort code is always six digits, written as three pairs. For example, the sample format 20-12-34 has the pairs 20, 12, and 34. The hyphens are only there to make the number easier to read and to type; the payment system itself stores the six digits without hyphens. When you copy a sort code from a letter, a cheque, or a banking app, it is worth checking that you have six digits and not five or seven, because a missing digit is one of the most common errors.
The first pair gives a broad clue to the bank, but you should not rely on memory to identify a bank from its sort code. Banks merge, branches close, and codes are reused or reallocated over time. A UK Sort Code Finder looks the code up rather than guessing, which is the reliable approach. If a finder returns a bank name that does not match the bank named on the invoice or letter you received, stop and check with the sender before paying.
Cheques, where they are still used, print the sort code at the bottom alongside the account number and cheque number. Bank statements and banking apps usually show the sort code next to each account. Business invoices in the UK often print the supplier's sort code and account number in the payment details section. In every case, copy the digits exactly, including any leading zero. A code beginning with 0 is still six digits, and dropping the zero changes it completely.
A worked example: checking a sample code
Imagine you receive an invoice that lists a sort code in the sample format 20-12-34 and an account number. The worked check below uses that sample only to show the steps; it does not confirm any real branch.
Step one is format: count the digits. The sample has six digits, in three pairs, which passes the format test. Step two is consistency: does the bank name returned by a lookup match the bank named on the invoice? If the invoice says one bank and the lookup says another, something is wrong, and the payment should not proceed until the discrepancy is explained. Step three is the account number: it should be eight digits, with leading zeros preserved. Step four is a small test where possible: for a new payee, many people send a small amount first and confirm receipt before sending the full sum. That habit has saved many payments from going astray.
Notice what this check does not do. It does not prove that the account number exists at that branch, and it does not prove that the account belongs to the person or business named on the invoice. Payment systems check the format of the numbers, not the identity of the holder, except where a confirmation-of-payee service is in use. That service, offered by many UK banks, checks whether the name you enter matches the name on the account, and it is worth using whenever it is offered. If it reports a mismatch, do not ignore it.
Common problems and what they mean
A sort code that is not recognised at all usually means a typing error, an old code for a closed branch, or a code from a different country being used by mistake. Re-check the source document, and if the code still fails, ask the payee to confirm it in writing. Do not guess a nearby code.
A code that is recognised but belongs to a different bank than expected is a warning sign. It can be an innocent error, such as an invoice template that was not updated after a supplier changed banks, but it can also be a sign of a fraudulent invoice. Contact the supplier through a phone number you already trust, not a number printed on the suspicious invoice, and confirm the details before paying.
Closed branches are another wrinkle. When a branch closes, its sort code often continues to work for existing accounts, because the accounts are transferred to a processing centre. So a code that refers to a branch that no longer has a high-street presence is not necessarily wrong. The lookup result and the bank itself are the authorities here, not a map of open branches.
People sometimes confuse a sort code with a card number, a customer number, or a roll number. Building society accounts in particular sometimes use a roll number as an additional reference. If a payee asks for a roll number as well as the sort code and account number, include it exactly as given, because without it the payment may not reach the right account.
Sort codes, IBANs, and international payments
For a payment from outside the UK, the recipient will usually give you an IBAN instead of, or as well as, a sort code and account number. A UK IBAN is 22 characters long and begins with GB, followed by two check digits, a six-character bank identifier, and then the six-digit sort code and eight-digit account number embedded within it. That means a sort code you already know appears inside the IBAN, which is a useful cross-check.
The IBAN Validator can check the format and check digits of an IBAN, which catches many transcription errors. As with sort codes, a format check is not proof that the account exists or belongs to the named person. For international payments, also confirm the bank's SWIFT or BIC code and whether any intermediary bank details are needed, because an incomplete set of details is a common cause of delayed transfers.
Within the UK, you do not normally need an IBAN for a domestic transfer, and entering one into a domestic payment form can cause confusion. Use the identifier the payment form asks for, and no more.
Practical tips for everyday use
Keep a record of the sort codes for your regular payees, and check them when a supplier says their details have changed. A change of bank details is one of the classic tricks in invoice fraud, so treat any unexpected change as a reason to verify, not as a routine update. A genuine supplier will not mind being asked to confirm new details through a trusted channel.
When you type a sort code into a form, type it slowly and read it back digit by digit. Transposing two digits, for example typing 21 instead of 12 in the middle pair, produces a different code that may still pass a format check. Reading back is the simplest defence, and it costs only a few seconds.
If you are setting up a direct debit, remember that the sort code and account number are what the originator uses to collect the payment. Check the direct debit guarantee wording on the instruction: in the UK, you are entitled to a refund from your bank if an error is made in the payment of a direct debit, and you can cancel a direct debit at any time by contacting your bank. Keep the reference for each direct debit so that you can identify it on your statement.
For businesses, printing sort codes on invoices is standard practice, but double-check the template after any bank change or rebrand. An old sort code on a new invoice will generate queries, delayed payments, and extra work for everyone involved.
Disclaimer and limits
Bank-code tools check format only, not account validity. A sort code that is correctly formatted and recognised may still belong to a closed account, and a correctly formatted account number may not exist. Only the bank concerned can confirm whether an account is open and in whose name it stands. This guide is general information about the UK payment system, not financial advice, and payment details should always be confirmed with the bank or the payee where the amount matters. If you suspect fraud, contact your bank immediately and report it through the appropriate channels.
A sort code is a small number with a large job. Treat it with the same care you would give any payment detail: copy it exactly, check the bank name it returns, use confirmation of payee where available, and verify any change through a trusted channel. Those four habits will prevent almost all of the errors that sort codes cause, and they take less time than sorting out a payment that went to the wrong place. The Date Calculator and Percentage Calculator are useful companions when you are also working out payment dates and amounts, and the Transformer kVA Calculator Guide is a reminder that the same discipline of checking a number before acting on it applies well beyond banking.