Home SWIFT/BIC code United Kingdom
United Kingdom SWIFT/BIC code validator
How the SWIFT/BIC code format works
- Format
- 8 or 11-character bank identifier code, country code GB in positions 5-6
- Example
- BARCGB22
Things to watch for
- Structure: 4-letter bank code + GB (country) + 2-character location code, plus an optional 3-character branch code
- An 8-character code (or one ending XXX) refers to the bank's head office, usually in London
- No checksum digit — this is a format check only; it confirms positions 5-6 read GB, not that the bank or branch actually exists
^[A-Z]{4}GB[A-Z0-9]{2}([A-Z0-9]{3})?$A UK SWIFT/BIC code identifies a specific bank — separate from the sort code and account number used domestically, and separate from the IBAN a UK account also carries for international transfers. Every UK-chartered bank’s BIC has GB fixed in positions 5-6, right after the 4-letter bank code, so a validator can confirm the country segment without needing a separate lookup table. Most major UK clearing banks anchor their head-office BIC in London, even though the 2-character location code itself is an arbitrary SWIFT-assigned pair rather than a literal abbreviation of the city.
Major UK bank BIC prefixes
| Bank | BIC | Location |
|---|---|---|
| Barclays | BARCGB22 | London |
| HSBC UK | HBUKGB4B | Birmingham/London |
| Lloyds Bank | LOYDGB2L | London |
| NatWest | NWBKGB2L | London |
How this validator works
The check verifies the code is 8 or 11 characters, that the first 4 characters are letters, that characters 5-6 read GB, and that the location and optional branch segments only use letters and digits — all of it running in your browser, with nothing typed here ever leaving your device.
What a pass doesn’t tell you
Passing this check means the string is shaped like a real UK BIC, not that BARC, HBUK, or any other prefix still belongs to an active bank, or that the specific branch suffix is current. SWIFT/BIC codes carry no checksum, so a plausible-looking but invented code passes just as easily as a genuine one.
Scope: format validation only. A UK domestic transfer typically needs the 6-digit sort code and account number instead — the BIC mainly matters for international SWIFT payments and IBAN pairing.
SWIFT/BIC code FAQ
What's the SWIFT code format for a UK bank?
A UK BIC is 8 or 11 characters: a 4-letter bank code, then GB fixed at positions 5-6, a 2-character location code, and an optional 3-character branch code — for example BARCGB22 for Barclays' London head office.
How do I read a UK BIC?
In HBUKGB4B, HBUK identifies HSBC UK, GB is the country, and 4B is the location code assigned to that entity — a reminder that UK location codes don't spell out 'London' the way a postcode would; they're just SWIFT-assigned characters.
Does an 8-character code work for a UK bank?
Yes — an 8-character BIC and its 11-character form with XXX appended both route to the same head office; both are valid for SEPA and SWIFT payment instructions.