Test Bank Account Generator

Generate fictional bank accounts with valid check digits for the main Brazilian banks — for software testing only.

For software testing only. The data generated here is random and does not belong to any real person or company. Using it for fraud or in bad faith is a crime.

How to use

  1. Choose a bank from the list — Banco do Brasil, Itaú, Bradesco, Caixa or Santander.
  2. Click "Generate" to create a random branch and account number with valid check digits for that bank.
  3. Use the generated data in your test environment. It is fictional and must not be used on real systems.

About this tool

Brazilian banks compute check digits for branch and account numbers using algorithms that are public and documented. Banco do Brasil uses modulo 11, Itaú uses modulo 10 for the branch and a special algorithm for the account, Bradesco uses modulo 11 with a P instead of 10, Caixa and Santander use modulo 11. This generator applies the correct algorithm for each bank to produce numbers that pass any properly implemented validation, which is exactly what a developer needs to test banking integrations, payment flows and account registration forms.

Every number produced here is random. It is not looked up anywhere, it is not linked to any real account, and there is no way to know whether a generated sequence happens to belong to someone. The check digit guarantees only that the math is correct — the number format matches what the bank expects, and nothing more.

Everything runs in your browser using the Web Crypto API for randomness. The generated data is never uploaded, stored or logged. The tool exists for software testing, and the disclaimer at the top of the page says so for a reason: using generated financial data on real systems may constitute fraud.

The formula

Modulo 11: multiply digits by descending weights, sum, remainder = sum mod 11; if remainder < 2 then DV = 0, else DV = 11 − remainder. Modulo 10: multiply digits alternately by 2 and 1 (right to left), sum digits of products, DV = (10 − sum mod 10) mod 10.

Frequently asked questions

Are the generated accounts real?

No. They are random numbers that pass the check-digit algorithm. They are not linked to any real bank account.

Can I use them on real banking systems?

No. Using generated financial data on real systems may constitute fraud. The tool is for software testing only.

Why only five banks?

Because these five publish well-documented check-digit algorithms. Other banks use variations that are harder to verify. The five covered here represent the vast majority of test scenarios.

Does the data leave my browser?

No. Generation runs in JavaScript on your device. Nothing is uploaded or stored.

What is the P in the Bradesco check digit?

When the modulo 11 remainder is 10, Bradesco uses the letter P instead of a digit. This is specific to Bradesco and is part of their published algorithm.

Related tools

Long links? Shorten them for free

Vai.la turns any URL into a short link with click statistics, QR Code and your own biolink.

Vai.la is not responsible for how the tools are used or for decisions made based on their results.