Validating 6-digit UK sort codes and NN-NN-NN formatting
A UK sort code is a 6-digit numeric identifier formatted in three pairs (NN-NN-NN) that routes domestic sterling payments between British banks and building societies. Under the Pay.UK Bacs Payment System Overview, Bacs Direct Credits and Direct Debits rely on these 6-digit routing codes to direct funds to the correct clearing institution.
Finance teams frequently receive sort codes typed with spaces (20 00 00), dots (20.00.00), or no separators (200000). Normalizing every entry into standard NN-NN-NN notation prevents import rejections in payroll software and supplier ledgers.
Stripping spaces, hyphens, and rejecting 00-00-00 placeholders
When you enter an input, the validator strips whitespace, dots, and hyphens and checks for exactly 6 numeric digits. Any entry with fewer or more than 6 digits, stray letters, or the reserved all-zero placeholder 000000 (00-00-00) fails immediately with a clear correction hint.
For cross-border sterling or euro settlements, domestic sort codes are embedded inside positions 9 through 14 of the 22-character UK IBAN under ISO 13616. You can validate 22-character GB IBANs using MOD 97-10 whenever a supplier provides an international account string.
Checking up to 1,000 sort codes in a private batch
Uploading vendor payroll spreadsheets to public lookup websites exposes sensitive employee and supplier banking records. This checker processes up to 1,000 lines and up to 50,000 characters locally in browser memory with 0 bytes and 0 KB sent over the network.
Recognizing major UK clearing banks and fintech sort code ranges
The first two digits of a UK sort code historically identify the clearing institution, while modern digital banks and e-money institutions hold specific 6-digit allocations. Under the Pay.UK Faster Payment System Overview, participating sort codes settle near-real-time GBP transfers around the clock.
If you are checking international wire routing alongside domestic UK clearing, pair your sort code check with a swift bic checker to confirm the 8- or 11-character ISO 9362 bank code. Note that some 2-digit prefixes are shared or reallocated over time, so bank labels represent common clearing associations rather than guaranteed branch ownership.
| Sort code prefix or range | Normalized example | Recognized UK clearing bank or institution | Matching rule used |
|---|---|---|---|
04-00-03, 04-00-04 |
04-00-04 |
Monzo Bank | Exact 6-digit range |
04-00-75 |
04-00-75 |
Revolut | Exact 6-digit range |
60-83-71 |
60-83-71 |
Starling Bank | Exact 6-digit range |
23-14-70 |
23-14-70 |
Wise Payments | Exact 6-digit range |
20-xx-xx |
20-00-00 |
Barclays Bank UK | 2-digit prefix (20) |
30-xx-xx |
30-00-00 |
Lloyds Bank | 2-digit prefix (30) |
40-xx-xx |
40-00-00 |
HSBC UK | 2-digit prefix (40) |
50–57, 60-xx-xx |
60-00-00 |
NatWest | 2-digit prefixes (50–60) |
Do UK sort codes have a check digit or prove account reachability?
No, a 6-digit UK sort code has no standalone mathematical check digit, and a valid 6-digit format does not prove that a bank branch is active or reachable. According to Pay.UK Overlay Services and Directory Standards, live account verification relies on industry directories and combined sort-code-plus-account-number modulus tables.
Format validation vs Pay.UK account-pair modulus checking
Unlike a 10-digit tax ID or 16-digit card number, you cannot detect a single swapped digit in a standalone sort code using Luhn or Modulo-11 math. Real UK payment validation pairs the 6-digit sort code with the 8-digit account number and runs Mod 10, Mod 11, or Double Alternate weight checks.
When to verify live Faster Payments and Bacs EISCD status
Closed building society sort codes, specialized internal suspense codes, and non-clearing ranges can still match ^\d{6}$. Before initiating a high-value B2B payment, confirm live Faster Payments or Bacs reachability and Confirmation of Payee (CoP) name matching inside your online banking portal.
When reconciling cleared UK bank transactions into accounting software, you can prepare bank statement to qbo records locally without uploading client data in the same browser session.
Exporting vendor payment audits to CSV and Excel safely
Accounts payable teams often clean up messy ERP vendor master lists before a quarterly audit or Bacs file run. Every batch check summarizes total Passed and Failed counts so you can isolate malformed entries in one click.
Filtering Passed and Failed rows and exporting spreadsheets
Click Failed to inspect missing digits or 00-00-00 placeholders, or click Passed to review normalized NN-NN-NN codes. Use Download results (CSV) for a UTF-8 BOM file with formula-injection protection, or Download Excel (.xlsx) to generate a formatted workbook in a background Web Worker. Each row includes the raw input, normalized sort code, pass/fail status, and bank prefix note.
If you are migrating cleaned payment ledgers into Intuit accounting tools, the CSV to QBO converter helps format transaction columns locally before you import bank feeds.
Tip: Use Copy formatted for invoice payment instructions (
20-00-00) and Copy compact (200000) when pasting into banking APIs or legacy Bacs upload templates that reject hyphens.
Operational scope for UK payroll and supplier onboarding
This validator verifies 6-digit structure, rejects all-zero test codes, and identifies major UK clearing prefixes offline for operational convenience. It does not perform Pay.UK modulus weight checks, Confirmation of Payee name matching, or live EISCD directory queries, and does not constitute financial or banking compliance advice. Always confirm live account details with your bank or a qualified accountant before releasing high-value transfers.