Numbers
Random Bank Account Number Generator
Used by developers, writers, and creators worldwide.
A random bank account number generator is a must-have tool for fintech developers and QA engineers who need realistic financial test data without touching live customer records. This one produces fictitious UK sort code and account number pairs, US ABA routing numbers, IBAN-style strings, and generic 10- or 16-digit numbers — pick the format that matches your target system and set the count to generate up to hundreds of records at once. None of the output ties to a real bank, branch, or account holder, so it's safe to commit to repos, paste into API docs, and load into staging databases. It keeps test environments clean and helps satisfy GDPR and PCI-DSS requirements by ensuring no real financial data ever enters your pipeline.
Loading usage…
Free forever — no account required
How to use
- Choose your options above
- Click Generate
- Copy your result
Detailed instructions
- Set the count field to the number of account number records you need for your test data.
- Select the account format that matches your target system: UK sort code, US routing, IBAN-style, or generic.
- Click Generate to produce a fresh batch of fictitious account numbers in the chosen format.
- Copy the output directly into your test fixture, database seed file, or form validation script.
- Re-click Generate as many times as needed to produce additional unique batches without duplicating.
Use Cases
- •Seeding a Postgres staging database with 500 fake UK account and sort code pairs before a BACS payment integration test
- •Populating Figma payment form mockups with realistic-looking account numbers for stakeholder review
- •Generating fixture JSON for Cypress end-to-end tests that validate account number field length and character rules
- •Filling Postman environment variables with US routing and account numbers to test a multi-region payment API
- •Creating a GDPR-compliant demo dataset for a banking dashboard without using any real customer records
Tips
- →For UK testing, always use the UK format so sort codes appear in XX-XX-XX notation, matching what your validation regex expects.
- →When populating a demo database, mix multiple format types if your app supports international accounts — one batch per region keeps data realistic.
- →IBAN-style output works well for testing field length limits; real IBANs range from 15 to 34 characters depending on country.
- →Pair generated account numbers with a fake name generator and fake address generator to build complete, coherent customer test records.
- →If your system strips hyphens from sort codes before storing them, test both the raw output and a manually stripped version to catch formatting bugs.
- →Avoid using the same small set of generated numbers across all your test cases — generate a fresh batch each sprint so edge cases in your validation logic get exercised properly.
FAQ
are these bank account numbers real or will they pass validation
No — every number is randomly generated and has no link to any real bank, branch, or account holder. They are formatted to look structurally authentic, but they will not pass strict checksum checks like IBAN mod-97 or Luhn, and they will fail in any live payment network. Use them for UI, format, and integration testing only.
is it safe to put fake account numbers in public documentation or a GitHub repo
Yes, that's exactly what they're designed for. Because none of the output maps to a real account holder, including these in README files, API examples, or public demo environments carries no data breach risk. Just make sure you never swap in real account numbers — even once — for convenience.
what's the difference between a sort code and a routing number
A sort code is the 6-digit identifier in XX-XX-XX format used in UK banking to route payments to the correct bank and branch, always paired with an 8-digit account number. A routing number is the US equivalent — a 9-digit ABA number that identifies the financial institution. If you're testing an app that serves both markets, generate one batch per format so your fixtures match the correct regional schema.