DevTools Logo

UK Sort Code & Account Generator

UK Sort Code & Account Generator

Generate UK 6-digit sort codes (XX-XX-XX) and 8-digit BACS account numbers — synthetic mock data only

Runs in your browser

For Development & Testing Purposes Only - Synthetic Mock Data

Settings

1 value

Generates 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).

Legal Disclaimer: Generated data is for software testing and validation purposes only (e.g. verifying input masks, form validation, or database seeding). It is randomly generated and not taken from any real record, but a random value can coincidentally match a real, issued number, so never use it in real applications, payments, KYC or official forms. Using it to impersonate real people or for any fraudulent activity is illegal.

    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

    1. Pick a UK clearing bank

      Choose any clearing bank or a specific bank prefix such as Barclays, HSBC, or Monzo.

    2. Generate or validate

      Generate paired sort code + account strings, or validate an existing pair in the Validate tab.

    3. Export for seeding

      Download up to 500 synthetic UK bank records in JSON, CSV, or SQL.

    UK BACS bank format

    FieldFormat
    Sort Code6 digits formatted as XX-XX-XX (non-zero)
    Account Number8 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.