FEBRABAN Bank Code Validator
Validate a Brazilian bank code in the FEBRABAN standard (3 digits, e.g. 001 Banco do Brasil, 341 Itaú). Useful for bank slips, transfers and account records.
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
Brazilian Boleto Decoder (Typeable Line & Barcode)
Decodes Brazilian boleto slips: converts the typeable line into the 44-digit barcode, checks every digit and extracts bank, due date and amount.
France Postal Validator
Validate the format of a French postal code (5 digits). Useful for forms, e-commerce and international shipping to customers in France.
Germany Postal Validator
Validate the format of a German postal code (PLZ, 5 digits). Useful for forms, e-commerce and international shipping to customers in Germany.
Brazilian CBO Code Validator
Validate codes from the Brazilian Classification of Occupations (CBO 2002) with 6 digits, checking major-group/subgroup/family structure.
IATA Airport Code Validator
Validate 3-letter IATA airport code and resolve name (top ~50 airports).
CBO Format Validator
Validate the format of a Brazilian CBO code (Classification of Occupations, 6 digits). Useful for HR, payroll, eSocial and employee registration.