CBU Generator & Validator for Argentina | BCRA Banking Codes

Generate and validate Argentinian CBU (Clave Bancaria Uniforme) bank codes. Free tool using official BCRA algorithms for developers, testers, and financial applications.

Argentinian CBU Generator & Validator

Generate a random but valid CBU for testing your applications and integrations.

Click the button above to generate a valid CBU

About CBU

The CBU (Clave Bancaria Uniforme) is a 22-digit code used in Argentina to identify bank accounts for electronic transfers and payments.

Each CBU contains information about the bank, branch, and account number, along with verification digits that ensure its validity.

CBU Structure

First Block (8 digits): Bank and Branch Code
XXXXXXXX
Second Block (14 digits): Account Number
XXXXXXXXXXXXXX
📚

Documentation

What is an Argentinian CBU and Why Validate It?

Working with Argentina's banking system means dealing with the CBU (Clave Bancaria Uniforme)—a 22-digit code that uniquely identifies every bank account in the country. If you've ever needed to test a payment integration, verify banking details before a transfer, or understand why a transaction failed, you know how critical it is to work with properly formatted CBUs.

This tool helps you generate structurally valid CBUs for testing environments and validate existing codes against the official format specified by Argentina's Central Bank (BCRA). When you're building financial applications or processing payments, catching format errors early saves hours of debugging and prevents failed transactions.

Understanding the CBU Format

The CBU (Clave Bancaria Uniforme) is Argentina's answer to international banking identifiers like IBAN or US routing numbers. Think of it as a comprehensive package that bundles the bank, branch, and account information into a single 22-digit code. The Central Bank of Argentina (BCRA) rolled out this system in November 2000 to standardize electronic transfers across the country's financial network.

CBU Structure and Format

Every valid CBU consists of exactly 22 digits divided into two main blocks:

  1. First Block (8 digits): Identifies the financial institution and branch

    • First 3 digits: Bank code assigned by the BCRA
    • Next 4 digits: Branch code within the bank
    • Last digit: Verification digit for the first block
  2. Second Block (14 digits): Identifies the specific account

    • First 13 digits: Account number (may include account type and other identifiers)
    • Last digit: Verification digit for the second block

The verification digits use a weighted modulo-10 algorithm that catches common typos—like transposed digits or single-digit errors—before any money moves. This safeguard has proven remarkably effective: most CBU entry errors get caught at the validation stage rather than resulting in failed transfers.

How to Generate a Test CBU

The generator creates random but structurally valid CBUs that pass all format checks. Here's what happens behind the scenes:

  1. Random digits fill the bank code, branch code, and account number sections
  2. The tool calculates both verification digits using the official BCRA algorithm
  3. You get a properly formatted 22-digit CBU ready for testing

When you'll find this useful:

  • Testing payment integrations: Need dozens of valid CBUs for your test suite? Generate them instantly without manual calculation.
  • QA and staging environments: Populate test databases with realistic banking data that won't accidentally match real accounts.
  • Learning the format: See how different CBUs are structured and understand the verification logic.
  • Documentation and demos: Create sample data that looks authentic without exposing real banking information.

Step-by-Step: Generating a CBU

  1. Navigate to the "Generator" tab of the tool
  2. Click the "Generate CBU" button
  3. A valid, random 22-digit CBU will appear in the display area
  4. Use the "Copy" button to copy the CBU to your clipboard for use in your applications

How to Validate an Argentinian CBU

The validator runs the same checks that Argentina's banking systems use to verify CBU integrity. What gets checked:

  1. Length verification: Confirms exactly 22 digits (a common mistake is copying with spaces or hyphens)
  2. Numeric-only content: Ensures no letters or special characters snuck in
  3. First block checksum: Validates the 8th digit against the first 7 digits
  4. Second block checksum: Validates the 22nd digit against digits 9-21

When validation fails, you'll see which specific check didn't pass. This is particularly helpful when debugging why a banking API rejected a CBU—often it's something simple like an extra space or transposed digit.

Step-by-Step: Validating a CBU

  1. Navigate to the "Validator" tab of the tool
  2. Enter the 22-digit CBU you want to validate
  3. Click the "Validate CBU" button
  4. Review the validation result:
    • Green indicator for valid CBUs
    • Red indicator with specific error messages for invalid CBUs

The CBU Verification Algorithm Explained

The BCRA uses a weighted modulo-10 checksum algorithm to calculate verification digits. If you're implementing CBU validation in your application, here's the exact logic:

First Block Verification

For the first block (first 8 digits), the verification digit is calculated as follows:

  1. Take the first 7 digits of the CBU
  2. Multiply each digit by its corresponding weight: [7, 1, 3, 9, 7, 1, 3]
  3. Sum the resulting products
  4. Calculate: 10 - (sum % 10)
  5. If the result is 10, the verification digit is 0; otherwise, it's the calculated value

Second Block Verification

For the second block (last 14 digits), the verification digit is calculated as follows:

  1. Take the first 13 digits of the second block
  2. Multiply each digit by its corresponding weight: [3, 9, 7, 1, 3, 9, 7, 1, 3, 9, 7, 1, 3]
  3. Sum the resulting products
  4. Calculate: 10 - (sum % 10)
  5. If the result is 10, the verification digit is 0; otherwise, it's the calculated value

CBU Validation Code Examples

Here's how to implement CBU validation in your application. These examples follow the official BCRA specification and will work with production banking data:

1// JavaScript: Calculate CBU check digit
2function calculateCheckDigit(number, weights) {
3  if (number.length !== weights.length) {
4    throw new Error('Number length must match weights length');
5  }
6  
7  let sum = 0;
8  for (let i = 0; i < number.length; i++) {
9    sum += parseInt(number[i]) * weights[i];
10  }
11  
12  const remainder = sum % 10;
13  return remainder === 0 ? 0 : 10 - remainder;
14}
15
16// Validate first block of CBU
17function validateFirstBlock(block) {
18  if (block.length !== 8 || !/^\d{8}$/.test(block)) {
19    return false;
20  }
21  
22  const number = block.substring(0, 7);
23  const checkDigit = parseInt(block[7]);
24  const weights = [7, 1, 3, 9, 7, 1, 3];
25  
26  return checkDigit === calculateCheckDigit(number, weights);
27}
28

Real-World Use Cases for CBU Validation

Testing Payment Integrations

When building fintech applications or e-commerce platforms that process Argentine payments, you need valid CBUs for your test environment. A common scenario: your staging environment requires 50 test accounts with valid CBUs for load testing. Manually calculating check digits for each would take hours. The generator handles this in seconds, giving you properly formatted test data that behaves like production CBUs without the risk of accidentally using real account numbers.

Pro tip: Keep a set of generated CBUs in your test fixtures. This ensures consistent test data across your team and makes debugging easier when tests fail.

Preventing Transaction Errors

Here's what typically happens: a client provides their CBU for a wire transfer, but they've accidentally included spaces or transposed two digits. If you process the transfer without validation, the bank rejects it—but only after a delay, and you've already recorded the transaction intent in your system. Now you're dealing with reconciliation headaches.

Validating the CBU format before submission catches these errors immediately. The validator won't tell you if the account exists or belongs to the right person (that requires banking API access), but it will confirm the structure is correct according to BCRA standards.

Understanding Banking Integration Requirements

For developers new to Argentina's financial system, this tool provides hands-on learning. You can see exactly how the check digits work, understand why certain numbers are invalid, and experiment with edge cases before writing production code.

Common mistake: Assuming CBU validation is the same as IBAN validation. While both use check digits, the algorithms differ completely. Testing with this tool helps you understand the specific requirements of Argentine banking codes.

Form Validation in Banking UIs

When designing input forms that accept CBUs, you need to test how the system handles various error states. What happens when a user pastes a CBU with spaces? What error message appears when the check digit is wrong? This tool helps you test these scenarios and design better user feedback.

Related Banking Validation Tools

Depending on your requirements, you might also need these complementary tools:

  • CUIT/CUIL Validator: Validates Argentine tax identification numbers—essential when you need both banking and tax ID verification
  • CVU Validator: Similar to CBU but for digital wallets (Mercado Pago, Ualá, etc.) using the same 22-digit format
  • IBAN Validator: For cross-border payments involving European or other international accounts
  • Banking API Services: For production systems that need to verify account ownership and balance checks, not just format validation

Important limitation: This tool only validates the format and check digits. It cannot confirm whether a CBU corresponds to an active bank account or verify the account holder's identity. For those checks, you'll need integration with Argentina's banking APIs or payment processors.

How Argentina's Banking System Adopted the CBU

Before November 2000, sending money between Argentine banks was surprisingly complicated. Each financial institution used its own account numbering system—some with 10 digits, others with 15, and no standardized way to identify which bank or branch held an account. Interbank transfers required manual verification and often took days to process.

The BCRA introduced the CBU to solve this fragmentation. By mandating a single 22-digit format across all financial institutions, Argentina aligned with international standards like Europe's IBAN system. The embedded check digits were particularly clever: they catch most data entry errors automatically, reducing failed transfers and the associated costs of investigating and reversing transactions.

What's interesting: The CBU format has barely changed in over 20 years. While banking technology has evolved dramatically—mobile apps, instant transfers, digital wallets—the underlying CBU structure remains the same. This stability speaks to how well the original design anticipated future needs.

Today, Argentines use CBUs for virtually every electronic financial transaction: payroll deposits, bill payments, tax filings, government benefits, and e-commerce. The format has proven so effective that when digital wallets emerged (like Mercado Pago), regulators adopted the same structure for CVUs (Clave Virtual Uniforme) rather than inventing something new.

Frequently Asked Questions

What is the difference between a CBU and a CVU?

CBUs identify traditional bank accounts, while CVUs (Clave Virtual Uniforme) identify digital wallet accounts from fintech providers like Mercado Pago, Ualá, or Brubank. The format is identical—22 digits with the same validation algorithm—which makes sense because they're interoperable. You can transfer money from a CBU to a CVU and vice versa just like any other bank transfer. The first three digits reveal whether you're looking at a traditional bank or a digital wallet provider.

Can I find out the bank name from a CBU?

Yes. The first three digits are the bank identifier assigned by the BCRA. For example, codes starting with "011" belong to Banco NaciĂłn, while "017" indicates BBVA Argentina. The BCRA publishes an official registry of these codes, which banking applications typically reference to display the bank name automatically when you enter a CBU.

Is a CBU the same as an account number?

Not quite. Your account number is buried inside the CBU, but the CBU packages it with additional routing information. Think of it like the difference between a street address and GPS coordinates—both identify a location, but one includes more context. The CBU bundles your bank code, branch code, account number, and two verification digits into a single transferable string.

How secure is it to share my CBU?

Your CBU is designed to be shared—that's the whole point. Recipients need it to deposit money into your account. Unlike passwords or PINs, a CBU only allows incoming transfers, not withdrawals. That said, treat it like any financial information: share it with people or companies you trust, and be cautious about posting it publicly online. Some people prefer giving out their CBU selectively rather than publishing it openly.

Can a CBU expire or change?

Your CBU stays with you as long as the account remains open. The only time it changes is if you close that account and open a new one, or in rare cases when banks merge or restructure their numbering systems. Even then, banks typically maintain the old CBU for a transition period to avoid disrupting recurring payments.

How do I find my own CBU?

Check your bank's mobile app—it's usually in the account details section. Most Argentine banks also display it prominently in online banking, print it on monthly statements, and some even include it on the back of debit cards. If you can't locate it, any bank representative can provide it immediately; it's not considered sensitive information like a PIN.

Can foreigners have a CBU in Argentina?

Yes. Opening a bank account in Argentina as a foreigner gives you a CBU just like any other account holder. Requirements vary by institution—some banks only require a passport, while others ask for proof of residency or a CDI (tax identification number). Digital wallets (CVU) are often easier for foreigners to access than traditional bank accounts.

What happens if I make a transfer to an invalid CBU?

Modern banking systems perform format validation before submitting the transfer. If the check digits don't match or the length is wrong, you'll get an immediate error—the transfer never leaves your account. This is why front-end validation is so valuable; it catches typos before they cause problems.

The trickier situation is when a CBU passes format validation but doesn't match an active account. The transfer gets submitted to the interbank network, then bounces back hours or days later. You've already recorded it as "sent" in your accounting, and now you need to reconcile the return. This is why some applications also check CBUs against bank databases before allowing transfers, though that requires paid API access.

Can I have multiple CBUs?

Absolutely. Each account generates its own CBU. If you have a checking account and a savings account at the same bank, you'll have two distinct CBUs. Different accounts at different banks? More CBUs. Each one uniquely identifies a specific account at a specific branch of a specific institution.

Is the CBU system used outside of Argentina?

No, CBUs are Argentina-specific. Every country has its own system: Europe uses IBAN, the US uses routing numbers plus account numbers, Australia uses BSB codes, and so on. When sending money internationally, you'll typically need the recipient's SWIFT code plus their local account identifier—which in Argentina's case would be the CBU.

References and Official Documentation

For authoritative information about Argentina's banking standards:

  1. Central Bank of Argentina (BCRA) - Financial System Regulations - Official BCRA documentation on payment system standards and banking regulations

  2. Law No. 25,345 - "Prevention of Tax Evasion and Modernization of Payments" (November 2000) - The legislation that established Argentina's electronic payment systems framework

  3. BCRA Communication "A" Series - Technical circulars defining CBU implementation requirements for financial institutions

  4. Interbanking S.A. - The organization that operates Argentina's interbank electronic payment network and maintains CBU routing tables

These sources provide the technical specifications used to implement this validator and are regularly updated by Argentine financial authorities.

Ready to Validate or Generate CBUs?

Whether you're building a payment integration, testing a fintech application, or learning about Argentina's banking system, understanding CBU validation is essential. This tool implements the exact same checksum algorithms that Argentine banks use, so you can catch format errors before they cause transaction failures.

Remember: format validation is just the first step. A properly formatted CBU doesn't guarantee the account exists or that you have the right recipient. For production systems handling real money, combine format validation with additional verification through banking APIs or payment processors.

The tool requires no registration or installation—just open it and start validating or generating CBUs according to official BCRA standards.

đź”—

Related Tools

Discover more tools that might be useful for your workflow