How to Find the Sort Code in an IBAN
To find the sort code within a United Kingdom or Irish IBAN, identify the six digits located from the 9th to the 14th character of the string. For example, in a UK IBAN (which contains 22 characters), the first four characters are the...
To find the sort code within a United Kingdom or Irish IBAN, identify the six digits located from the 9th to the 14th character of the string. For example, in a UK IBAN (which contains 22 characters), the first four characters are the country code and check digits, the next four are the bank identifier, followed immediately by the six-digit sort code.
Contents
The International Bank Account Number (IBAN) is a standardized international system developed to identify bank accounts across national borders while minimizing the risk of transcription errors. While the IBAN is a singular, long string of alphanumeric characters, it is actually a composite of several specific pieces of financial information. For users in the UK and Ireland, the most critical "hidden" component is the sort code. Understanding how to extract this code is essential for setting up domestic transfers, managing Direct Debits, or verifying payment details in 2026’s increasingly digital financial landscape.
Understanding the Structure of an IBAN
Before pinpointing the exact location of a sort code, it is helpful to understand why the IBAN is structured the way it is. The International Organization for Standardization (ISO) established the ISO 13616 standard to ensure that every bank account in the world (within participating countries) has a unique identifier that can be validated automatically by software.
An IBAN can contain up to 34 characters, though the length varies by country. Regardless of the total length, the beginning of every IBAN follows a strict four-character prefix:
- Country Code (2 letters): Identifies the nation where the account is held (e.g., GB for the United Kingdom, IE for Ireland, FR for France).
- Check Digits (2 numbers): These are calculated using a redundancy check (MOD-97) to verify the integrity of the entire IBAN. If a single digit is mistyped, the check digits will not match, and the transaction will be flagged as an error.
The remaining part of the IBAN is known as the BBAN (Basic Bank Account Number). The format of the BBAN is determined by each individual country’s central bank or national banking association, which is why the sort code appears in different "slots" depending on the country of origin.
Step-by-Step: Extracting the Sort Code from a UK IBAN
In the United Kingdom, an IBAN is always 22 characters long. The sort code is a six-digit number used to identify the specific branch of a bank. When formatted for international use within an IBAN, the sort code is embedded directly into the BBAN.
The UK IBAN Template
To find your sort code, break the 22-character string into the following segments:
- Positions 1–2: Country Code (GB)
- Positions 3–4: Check Digits (e.g., 29)
- Positions 5–8: Bank Identifier (4 letters, often derived from the bank's BIC/SWIFT code, such as "BARC" for Barclays or "MIDL" for HSBC)
- Positions 9–14: The Sort Code (6 digits)
- Positions 15–22: The Account Number (8 digits)
Example: If your IBAN is GB29 ABCD 102030 12345678:
- Skip the first 8 characters (GB29ABCD).
- The next 6 digits are 102030.
- This is your sort code, typically written as 10-20-30.
Extracting the Sort Code from an Irish (IE) IBAN
Ireland follows a structure very similar to the UK, also utilizing a 22-character IBAN. The sort code in Ireland is often referred to as the National Sort Code (NSC).
The Irish IBAN Template
- Positions 1–2: Country Code (IE)
- Positions 3–4: Check Digits
- Positions 5–8: Bank Identifier (4 letters)
- Positions 9–14: The Sort Code (6 digits)
- Positions 15–22: The Account Number (8 digits)
Just as with the UK version, you ignore the first eight characters to reach the six-digit sort code. It is important to note that while the format is the same, the bank identifiers (positions 5-8) will reflect Irish institutions, such as "BOFI" for Bank of Ireland or "AIBK" for Allied Irish Banks.
Regional Variations of Bank Codes in IBANs
While "sort code" is a term specific to the British Isles, other countries include their national bank identifiers in similar positions within the IBAN. If you are looking for the equivalent of a sort code in other European nations, refer to the table below.
| Country | IBAN Length | Bank Code Position | Local Term for Code |
|---|---|---|---|
| United Kingdom | 22 | 9–14 | Sort Code |
| Ireland | 22 | 9–14 | National Sort Code (NSC) |
| Germany | 22 | 5–12 | Bankleitzahl (BLZ) |
| France | 27 | 5–9 | Code Banque |
| Italy | 27 | 6–10 (ABI) / 11–15 (CAB) | Codice ABI / CAB |
| Spain | 24 | 5–8 (Bank) / 9–12 (Branch) | Código Cuenta Cliente |
In 2026, many automated systems handle these extractions for you, but manual verification remains a vital skill for preventing payment misdirection, especially when dealing with older payroll systems or manual international wire transfers.
Why Do You Need to Find the Sort Code?
You might wonder why you need to "find" the sort code if you already have the IBAN. After all, the IBAN is designed to replace the need for separate sort codes and account numbers in international banking. However, several scenarios in 2026 still require the isolated sort code:
1. Domestic Payments (Faster Payments)
Within the UK, the Faster Payments Service often requires the 6-digit sort code and 8-digit account number separately rather than the full IBAN. If a sender only has your IBAN, they must extract the sort code to process the payment through domestic channels, which are often cheaper or faster than international ones.
2. Setting Up Direct Debits
Most Direct Debit mandates in the UK and Ireland still use the traditional sort code and account number format. When filling out digital forms, the system may not accept an IBAN and will instead ask for the specific branch identifier.
3. Verification and Security
With the rise of Authorized Push Payment (APP) fraud, many banks in 2026 utilize Confirmation of Payee (CoP) services. Verifying that the sort code extracted from an IBAN matches the intended bank branch provides an extra layer of security before authorizing a high-value transfer.
Common Mistakes When Identifying Sort Codes
When manually extracting data from an IBAN string, it is easy to make errors that can lead to rejected payments or, in worst-case scenarios, funds being sent to the wrong destination.
- Miscounting Positions: The most common error is starting the count from the wrong character. Always remember that the first four characters are the country code and check digits. Many people forget to count the 4-letter bank identifier (positions 5-8) before reaching the sort code.
- Confusing the BIC with the Bank Identifier: The 4-letter code in positions 5-8 of a UK IBAN is often related to the bank’s BIC (Bank Identifier Code) or SWIFT code, but it is not the same thing. Do not use these letters as part of your sort code; the sort code consists only of digits.
- Ignoring Spaces: IBANs are often printed in groups of four (e.g., GB29 ABCD 1020 30...). When extracting the sort code, ignore the spaces and focus on the character positions. In the grouped format, the sort code usually starts at the beginning of the third block and carries over into the fourth.
- Assuming All IBANs are the Same: If you are looking at a French IBAN (FR) and try to extract digits from positions 9-14, you will get the wrong information. The "sort code" equivalent in France (Code Guichet) starts at position 10 and is only 5 digits long.
Tools for IBAN Validation
If you are unsure about the sort code you have extracted, you should use an official validation tool. Most major banks, including Barclays, HSBC, and Lloyds, provide IBAN checkers on their websites. Additionally, the Financial Conduct Authority (FCA) recommends using verified services that adhere to the SWIFT directory to ensure the data is current.
In 2026, most mobile banking apps include an "IBAN Scanner" feature. By using your phone's camera to scan a printed IBAN, the app's OCR (Optical Character Recognition) technology will automatically parse the string and display the associated sort code, account number, and bank name for your review.
Frequently Asked Questions
Is the sort code always 6 digits?
In the UK and Ireland, yes, the sort code is always a 6-digit number. If you extract more or fewer digits from your IBAN, you have likely miscounted the positions. In other countries, the equivalent bank code may vary in length (e.g., Germany's BLZ is 8 digits).
Can I find the sort code in an IBAN from the USA?
No. The United States does not use the IBAN system for domestic transfers. Instead, they use ABA Routing Numbers. While US banks can receive international wires via SWIFT, they do not have IBANs in the same format as European banks, and therefore, there is no "sort code" embedded in a US account identifier.
Does every bank have a unique 4-letter code in the IBAN?
Yes. Each bank is assigned a specific 4-letter mnemonic that occupies positions 5 through 8 in a UK or Irish IBAN. For instance, NatWest typically uses "NWBK," and Santander uses "ABBY" (reflecting its history with Abbey National). This code helps the clearing system route the payment to the correct institution before the sort code narrows it down to the specific branch.
What happens if I use the wrong sort code but the right account number?
In 2026, most banking systems use modulus checking to see if an account number is valid for a specific sort code. If you provide a sort code that does not "mathematically" pair with the account number, the transaction will usually be rejected immediately. However, if the combination happens to be a valid account for someone else, the money could be sent to the wrong person. Always double-check your extraction.
Is it safe to share my IBAN and sort code?
Sharing your IBAN and sort code is generally safe for the purpose of receiving payments. These details allow someone to send you money or set up a Direct Debit (which is covered by the Direct Debit Guarantee). However, they should not be shared publicly, and they are never sufficient on their own for someone to access your account or withdraw funds without authorization.
Practical Recommendation
When you need to find the sort code in an IBAN, the most reliable method is to count to the 9th character and take the following six digits. To ensure 100% accuracy, cross-reference this extracted number with your bank's mobile app or a physical bank statement, where the sort code is usually listed clearly in its 2-2-2 format (e.g., 10-20-30). If you are processing a high-value international payment, use an online IBAN validator to confirm that the code correctly identifies the intended bank branch before finalizing the transaction.