Bank Sort Code Format Support
We clean UK bank sort codes from many different input formats. See what we support below.
Supported Format Variations
Spacing Variations
12 34 56123 45612 34561234 56123456 12 34 56Separator Types Handled
12-34-5612.34.5612/34/5612:34:5612;34;5612,34,5612|34|5612_34_56Labels & Prefixes Removed
Sort Code: 12-34-56SC: 123456Bank: 12-34-5612-34-56 (sort code)SC - 123456UK 12-34-56Barclays 12-34-56HSBC: 12-34-56Wrapping Characters
"12-34-56"'123456'*12-34-56#123456 12-34-56 '12-34-56Special Cases Handled
Excel Scientific Notation:
1.23456E+5 → 12-34-56
Leading Zeros:
012345 → 12-34-56
Extra Leading Zeros:
00-12-34-56 → 12-34-56
With Account Number:
12-34-56 / 12345678 → 12-34-56
Output Format
All sort codes are formatted consistently as:
12-34-56
Two digits, hyphen, two digits, hyphen, two digits.
Have a Format We Don't Support?
If you have sort code data in a format we don't currently handle, please contact us with examples and we'll add support!