Australian BSB & Account Number Generator / Validator
Generate a random fake BSB and account number for testing, or validate a real BSB and check its bank. Free, instant, runs in your browser.
For testing and development only. Generated BSBs use real bank-code prefixes with a random branch number, and account numbers are entirely random digits. Neither is a real, active bank account — do not use them for real payments or transfers.
BSB Number
—
Account Number
—
Sample Australian BSBs
012-003
ANZ
062-001
Commonwealth Bank
082-001
NAB
032-001
Westpac
192-001
Suncorp
About BSB numbers BSBs are real bank branch codes assigned by the Australian Payments Network (APN). The 6-digit code is split as XXX-XXX: the first two digits identify the bank, and the next four identify the branch. There is no mathematical check digit — validation relies on the bank code registry.
How to use it
- 1Click Generate to produce a random fake BSB (using a real bank-code prefix) and a random fake account number, formatted for Australian payment forms.
- 2Copy the BSB and account number with one click and drop them into a test form or QA fixture.
- 3Switch to the Validate tab and enter any BSB — formatted as XXX-XXX or a plain 6-digit string — to check its format and bank.
- 4Click Validate to check the format and look up the bank code from the first two digits.
- 5Use the sample BSBs on the right to see how validation works for ANZ, Commonwealth Bank, NAB, and other major banks.
Common use cases
- Generate a fake BSB and account number pair to fill in an Australian payment form during UI or integration testing.
- Populate a test database with realistic-looking bank details without using a real customer's information.
- Validate a BSB entered on a payment form before submitting a bank transfer.
- Check whether a BSB a customer provided belongs to a known Australian bank.
- Identify which bank owns a BSB for reconciliation or payment routing.
- Integrate BSB validation into an Australian payroll or payments application.
- Demonstrate the BSB format and bank code structure to developers new to Australian banking.
Frequently asked questions
- What is a BSB number?
- A BSB (Bank State Branch) number is a 6-digit code used in the Australian banking system to identify a specific bank and branch. It is required, along with the account number, for domestic bank transfers via BECS (Bulk Electronic Clearing System). The format is XXX-XXX: the first two digits identify the financial institution, and the remaining four identify the branch.
- Can I generate a fake BSB and account number for testing?
- Yes. The Generate tab produces a random BSB using a real bank-code prefix (so it looks realistic) with a random branch number, plus a randomly generated account number. Neither is linked to a real bank account — they're meant for filling in test forms, QA fixtures, or demos without using real customer data.
- How is a BSB validated?
- There is no mathematical check digit for BSBs — validation relies on checking that the number is exactly 6 digits and that the first two digits correspond to a known bank code in the Australian Payments Network (APN) registry. This tool checks those two conditions.
- What does the BSB tell me about the bank?
- The first two digits identify the financial institution (e.g. 01 = ANZ, 03 = Westpac, 06 = Commonwealth Bank, 08 = NAB). The next four digits identify the specific branch, but branch-level directory data is not publicly available — only the bank code is validated here.
- Is my BSB or account number sent to a server?
- No. Both generation and validation happen entirely in your browser using a local lookup table of known bank codes and the browser's random number generator. Nothing is uploaded or stored.
- Why does validation pass but the BSB is still rejected by my bank?
- This tool checks the format and bank code prefix only. A BSB that passes format validation may still be invalid if the branch no longer exists or the specific 4-digit branch code was never assigned. For authoritative lookups, use the BSB directory provided by your financial institution or the APN.
Try next
Australian Tax File Number (TFN) Validator
Validate Australian Tax File Numbers (TFN) — checks format and the official check-digit algorithm. No TFN generation to protect against misuse. Runs entirely in your browser.
Australian ABN Generator & Validator
Generate a random test ABN or validate any Australian Business Number (ABN) using the official weighted checksum algorithm. Perfect for testing and development — runs entirely in your browser.
New Zealand Bank Account Number Validator
Validate New Zealand bank account numbers — checks the BB-BBBB-AAAAAAA-SS format, bank code, and overall structure.