Skip to main content

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:

PositionFieldLengthMeaning & RuleExample
1 to 3Bank Entity Code3 digitsOfficial institution code assigned by BCRP and ASBANC002
4 to 6Branch Code3 digitsBranch office locator serial123
7 to 18Account Number12 digitsUnique checking or savings account serial000123456789
19 & 20Control Digits (CD1 & CD2)2 digitsDual 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. 1. CD1: Multiply first 9 digits by factors [3, 7, 1, 3, 7, 1, 3, 7, 1].
  2. 2. Reduce each product modulo 10 and compute the total sum.
  3. 3. CD1 = (10 - (Sum % 10)) % 10; compare with the 19th digit.
  4. 4. CD2: Multiply the remaining 9 account digits by factors [3, 7, 1, 3, 7, 1, 3, 7, 1].
  5. 5. Compute CD2 and compare with the 20th digit.
  6. 6. Conforms if both control digits match.

Frequently Asked Questions