Peru CCI Generator
Generate Peruvian Código de Cuenta Interbancario (CCI) numbers online.
Waiting for generation...
About the Peru CCI
The CCI is the standard 20-digit interbank account identifier mandatory in Peru for routing payments between different financial institutions.
This tool generates and validates Peruvian CCIs, computing the internal control keys applying standard Modulo 10 weighted sum algorithms.
Anatomy & Structure of Interbank Account Code (CCI)
The Peruvian CCI comprises 20 digits organized into 4 functional segments:
| Position | Field | Length | Meaning & Rule | Example |
|---|---|---|---|---|
| 1 to 3 | Bank Entity Code | 3 digits | Official institution code assigned by BCRP and ASBANC | 002 |
| 4 to 6 | Branch Code | 3 digits | Branch office locator serial | 123 |
| 7 to 18 | Account Number | 12 digits | Unique checking or savings account serial | 000123456789 |
| 19 & 20 | Control Digits (CD1 & CD2) | 2 digits | Dual Modulo 10 checksums using cyclic factors [3, 7, 1, 3, 7, 1, 3, 7, 1] | 45 |
Peruvian CCI Validation Algorithm (BCRP Weighted Modulo 10)
BCRP and ASBANC calculate two control digits via cyclic Modulo 10 with weights [3, 7, 1, 3, 7, 1, 3, 7, 1]:
CD = (10 - (Σ ((d[i] × [3, 7, 1, 3, 7, 1, 3, 7, 1][i]) % 10) % 10)) % 10
- 1. CD1: Multiply first 9 digits by factors [3, 7, 1, 3, 7, 1, 3, 7, 1].
- 2. Reduce each product modulo 10 and compute the total sum.
- 3. CD1 = (10 - (Sum % 10)) % 10; compare with the 19th digit.
- 4. CD2: Multiply the remaining 9 account digits by factors [3, 7, 1, 3, 7, 1, 3, 7, 1].
- 5. Compute CD2 and compare with the 20th digit.
- 6. Conforms if both control digits match.