Hacker News new | ask | show | jobs
by ralferoo 17 days ago
Especially in the UK, bank sort codes are typically presented to the user as e.g. 04-00-04 by every banking app or website, but whenever you have to enter them (e.g. to pay someone else) they usually require you to not enter the dashes. Some of the most annoying sites limit the input to 6 characters but don't strip out the dashes, so you'd end up with 04-00- and then it complains.

And then there are the ones that implement it as 6 separate boxes, and these are the only fields in the form that auto advance to the next field on input and also often break delete if you want to undo the previous digit.

3 comments

Hey, Monzo's Sort code, the first one to my knowledge to start with a zero. I spent six months unable to pay my council tax bill because their stupid system was treating the sort code as an integer and therefore dropping the leading zero, on the backend, before
Hey, Monzo's Sort code, the first one to my knowledge to start with a zero. I spent six months unable to pay my council tax bill because their stupid system was treating the sort code as an integer and therefore dropping the leading zero, on the backend, before validating that it had six digits. At one point they asked me if I'd be willing to sign up for a different bank.
Not sure about whether it's the first to have a leading zero or not. Certainly the -04 at the end suggests it was one of the first in the 04- block, but then again most banks have multiple sort codes, so who knows.

I'm not really sure how these get allocated, but looking through some of my payment recipients, Revolut is also lowish in this block with 04-00-67, but also with leading zeros, Santander has 09-01-32 and 09-01-33, co-op has 08-92-99, Nationwide has 07-01-16, 07-08-06, 07-19-86.

That looks to me almost like potentially a bank can get a sort code block as large as just the first 2 digits, e.g. Nationwide which has been around for a long time and all seem to start 07-. But that doesn't explain then why Monzo and Revolut are both in the 04-00- block.

EDIT: it seems that sort codes are assigned by pay.uk [1] and Wikipedia has a surprising amount of information [2]. Most interestingly, originally banks were 2 digits long, and so each bank had their own 2 digit prefix, and the single digit banks had a zero appended, so e.g. NatWest was originally Westminster (6) and became 60-. There's a whole load of 04- sort codes for "Utility Banks" [3] and Monzo seems to have been the second such bank (BFC is before it, but 04-00-01 is unlisted, so maybe Monzo was the third).

[1] https://www.wearepay.uk/what-we-do/payment-systems/access-to...

[2] https://en.wikipedia.org/wiki/Sort_code

[3] https://en.wikipedia.org/wiki/Sort_code#04_codes

This is a common frustration in Australia with the ABN (business numbers), they are 11 digits but commonly shown with spaces, including on the ABN registry. However many sites have the 11 character limit.
And of course you often cannot paste a 6-digit number into these fields. You have to type all 6 digits by hand.