UK Sort Code & Account Generator
Generate UK 6-digit sort codes (XX-XX-XX) and 8-digit BACS account numbers — synthetic mock data only
For Development & Testing Purposes Only - Synthetic Mock Data
Settings
1 valueGenerates one value with a valid checksum. Use Bulk for up to 500 records, or press ⌘/Ctrl+Enter for a fresh one.
Generated value
No value yet
Set options, then press Generate.
Generated values are valid in shape but randomized (Test Data).
About this tool
The UK Sort Code & Account Generator creates synthetic 6-digit UK sort codes (XX-XX-XX) paired with 8-digit BACS / Faster Payments account numbers. You can filter by major UK clearing bank prefixes including HSBC (40-xx-xx), Barclays (20-xx-xx), Lloyds (30-xx-xx), NatWest (60-xx-xx), Monzo (04-00-04), and Starling (60-83-71).
Built for UK payroll, Open Banking, and Direct Debit form QA, it also validates sort code and 6–8 digit account number formatting locally without sending financial data to any server.
How to use this tool
Pick a UK clearing bank
Choose any clearing bank or a specific bank prefix such as Barclays, HSBC, or Monzo.
Generate or validate
Generate paired sort code + account strings, or validate an existing pair in the Validate tab.
Export for seeding
Download up to 500 synthetic UK bank records in JSON, CSV, or SQL.
UK BACS bank format
| Field | Format |
|---|---|
| Sort Code | 6 digits formatted as XX-XX-XX (non-zero) |
| Account Number | 8 digits (6–8 digits accepted by validator) |
Synthetic test pairs only; does not query UK Vocalink modulus tables or live accounts.
Frequently asked questions
Are generated UK sort codes and account numbers real?
No. They are synthetic 6-digit sort codes and 8-digit account numbers for BACS, Faster Payments, and Open Banking QA.
Can I filter by UK bank prefix?
Yes. You can pick HSBC (40), Barclays (20), Lloyds (30), NatWest (60), Monzo (04-00-04), or Starling (60-83-71).
Does this check Vocalink modulus tables?
No. It validates format and length locally without querying Vocalink tables or external banking APIs.
Related tools
IBAN Generator
Generate checksum-valid mock IBANs for 75+ countries.
SEPA IBAN Generator
Generate SEPA-eligible IBAN and BIC pairs with ISO 7064 Mod 97-10 checks.
ABA Routing Number Generator
Generate 9-digit US ABA routing numbers with weighted Mod-10 checks.
ABA Routing Number Validator
Validate 9-digit US ABA routing numbers with 3-7-1 Mod-10 breakdown.
SWIFT / BIC Generator
Generate ISO 9362 mock SWIFT/BIC codes (8 or 11 characters).