Skip to main content
Beta We're in open beta - lock in lifetime access to today's feature set for just £99.99.

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 56
123 456
12 3456
1234 56
123456
12 34 56

Separator Types Handled

12-34-56
12.34.56
12/34/56
12:34:56
12;34;56
12,34,56
12|34|56
12_34_56

Labels & Prefixes Removed

Sort Code: 12-34-56
SC: 123456
Bank: 12-34-56
12-34-56 (sort code)
SC - 123456
UK 12-34-56
Barclays 12-34-56
HSBC: 12-34-56

Wrapping Characters

"12-34-56"
'123456'
*12-34-56
#123456
12-34-56
'12-34-56

Special Cases Handled

Excel Scientific Notation:
1.23456E+512-34-56
Leading Zeros:
01234512-34-56
Extra Leading Zeros:
00-12-34-5612-34-56
With Account Number:
12-34-56 / 1234567812-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!

Back to Validation Rules