FEBRABAN Bank Code Validator
Validate FEBRABAN bank code (3 digits 001-999).
Brazilian bank code (COMPE): the 3 digits that identify a bank
The Brazilian bank code is a 3-digit number (the COMPE code) that identifies a financial institution inside the national payment system — 341 Itaú, 001 Banco do Brasil, 237 Bradesco, 104 Caixa, 033 Santander, 260 Nubank. Maintained under the Banco Central / FEBRABAN framework, it's the code printed on boletos, checks and TED/DOC transfers. This tool checks the 3-digit format.
There's a subtle distinction worth knowing: the COMPE code is the classic 3-digit number for paper clearing (checks/boletos), while the ISPB is an 8-digit code that uniquely identifies the institution in the SPB (used by PIX and TED). Most people mean the 3-digit COMPE when they say "bank code".
Well-known codes
- 001 Banco do Brasil · 104 Caixa Econômica Federal · 237 Bradesco.
- 341 Itaú Unibanco · 033 Santander · 399 HSBC (historical).
- 260 Nubank · 077 Inter · 336 C6 · 290 PagBank.
- Leading zeros matter:
001≠1— always treat it as a 3-character string.
Where it matters
- Boletos & TED/DOC: the 3-digit code prefixes the account routing.
- Account forms: bank + agência + conta is the canonical Brazilian account triple.
- Reconciliation: matching payments to institutions by COMPE code.
- Mock data / testing: validating the 3-digit field before a bank lookup.
Common pitfalls
- COMPE ≠ ISPB: PIX and the DICT key off the 8-digit ISPB, not the 3-digit COMPE.
- Store as a string: an integer drops the leading zero and corrupts
001,033,077. - Format ≠ exists: any three digits pass the regex; not all
000–999are assigned banks. - Fintechs reuse a partner's code: some apps operate under another institution's COMPE.
FAQ
Is the bank code the same as the ISPB? No — the 3-digit COMPE is for clearing (boletos/TED); the 8-digit ISPB uniquely identifies the institution and is used by PIX.
Why does Banco do Brasil show as 001? COMPE codes are three digits with leading zeros; 001 is its assigned code.
Does the code have a check digit? No — it's a 3-digit lookup value, validated by format and the official bank list.
Related Tools
CPF Validator
Validate Brazilian CPF numbers instantly using the official algorithm. Useful for testing document validation in applications. No data sent to servers.
Batch CPF Validator
Validate a list of CPFs (one per line) and see which are valid and which are not. No data sent to servers.
Batch CNPJ Validator
Validate a list of CNPJs (one per line) with a summary of valid, invalid and total. No data sent to servers.