The sort code is a six-digit number usually formatted as three pairs of numbers (xx-xx-xx). The sort code identifies both the bank and the branch where the account is held.