People search a bare sort code because they have been given one and want to know whose it is before they use it. The honest structure of the answer is that six digits identify an institution through an allocated range, that this index does not republish the commercial directory which maps ranges to names, and that there are two free routes to the name which are stronger than any lookup anyway.
One code can serve an entire bank
Sort codes were designed when a code meant a branch, and a great deal has changed since. Banks consolidated clearing so that one code can serve a region or a whole institution, and the banks that arrived without a branch network were issued a single code for every customer they have. So a code like this one may well be shared by every account at an institution, which is why looking for the branch behind it is usually the wrong question. What makes an account unique is the account number.
What the digits carry, structurally
Six digits, conventionally printed as three pairs. The leading pair sits inside a range allocated to an institution, and the remaining digits identify a clearing point within it where such a distinction still exists. There is no check digit anywhere in a sort code, so the arithmetic that lets you test a US routing number has no UK equivalent. The check in the UK system sits on the account number instead, and the rule to apply is selected by the sort code range.
Why the name is not published here
The register that maps every UK sort code to an institution and a clearing address is a commercial dataset maintained for the industry and licensed for redistribution. This index is built the other way round: it reads the banks' own published pages, quotes what each bank states about its own identifiers, records the date and hashes the page text so a later change can be spotted. Where a bank publishes nothing about an identifier, the entry says so rather than filling the gap.
The two confirmations that work
Ask the person who gave you the code which bank it is, then find that bank's own help pages and check that the details agree. Then add the payee in your own banking app and let the name check run, which asks the receiving bank whether the name you typed matches the account. That second step is the only routine check that reaches the institution holding the money, and it happens before the payment moves rather than after.
Questions people ask about sort code 040004
Can one sort code cover a whole bank?
Yes. Several UK banks, particularly those without branch networks, issue a single sort code to every customer, and the account number is what distinguishes accounts.
Does a sort code have a check digit?
No. Unlike a US routing number, a sort code carries no self validating digit. The arithmetic check in the UK sits on the account number.
Why will this site not name the bank?
Because the code to institution register is a licensed commercial product. This index publishes what banks state about themselves, quoted and dated.
What is the safest check before paying?
Add the payee in your banking app so the name check runs, and telephone the payee on a number you already had if the details are new or have changed.