CNAPS Bank Code Parser
How to Use
Introduction
A CNAPS code is the 12-digit number that identifies a receiving branch for interbank transfers, and finance teams check it against branch names daily. The digits are structured rather than random: three digits of bank code, four of city code, four of branch sequence and one check digit. The first three reveal the bank, the middle four point at a city, the next four order branches inside that city, and the last digit is the check. This tool does two jobs: split a 12-digit code into those four segments and name the bank, and turn a branch list you already hold into a local, searchable lookup, parsed entirely in the browser. Even without a national branch database, your own reconciliation sheet becomes a query page. This release adds: A new batch mode extracts every twelve-digit code from pasted text, de-duplicates them and splits each into bank, city, branch sequence and check digit with a CSV export, while a fifteen-bank prefix table fills the code on click. 1.2.0 升级:Parse 12-digit CNAPS codes in bulk with bank table, deduplication, distribution, invalid-line details and CSV.
What it does
- Splits a 12-digit code into bank, city, branch sequence and check digit using the 3-4-4-1 layout, labelling each segment; Ships a 3-digit code table for 15 major banks including ICBC, ABC, BOC, CCB, BoCom, CITIC, CEB, Hua Xia, Minsheng, Guangfa, Ping An, CMB, Industrial, SPDB and PSBC.
- Parses automatically once twelve digits are present, with no extra button press, and lets you pick a bank code before filling the remaining nine digits; Accepts a pasted branch list for local search, extracting each line's 12-digit code and keeping the branch name after it, filtering by code or name.
- Shows at most 100 matching rows with a total count so a long list never stalls the page; Copies the parsed segments together with the current search results as multi-line text for reconciliation sheets or colleagues.
- Each batch row shows the bank name and the four segments, and lines without a code are counted separately; The CSV carries six columns: the full code, bank code, bank name, city code, branch sequence and check digit.
- The prefix table is ordered by bank code and keeps the last nine digits of whatever you already typed; Batch results add bank distribution bars and invalid-line details (no code/duplicate).
- Copy the batch or click any row to load it into single-code parsing.
How to use
- Paste the 12-digit code into the first field and the page immediately splits it into four segments with the bank name.
- If you only know the bank, pick its code from the dropdown to fill the first three digits, then complete the city and branch digits.
- Paste your branch list into the large textarea, one code plus name per line, and the codes are extracted automatically.
- Type a code prefix, a full code or a branch name keyword in the search box and the list filters as you type.
- Copy Result takes the parsed segments plus the current matches, and Reset clears both the inputs and the list.
Notes
- ScopeBuilt in are only the 3-digit codes of 15 major banks and the 12-digit layout rule, not the national database of forty thousand branches.
- AccuracyCity and branch digits are allocated by the payment system; this tool splits the digits but does not name the city or verify the check-digit algorithm.
- InputCodes must be twelve digits with spaces stripped; shorter input is not parsed, and longer input is cut to the first twelve with a warning.
- LimitsFuzzy nationwide branch search by bank name, and reverse lookup of address or phone, need a live code source and are out of scope.
- OutputCopy produces plain text: segment fields on separate lines and matches as code plus tab plus name.
- The local list lives only in this page and clears on refresh, so keep the original spreadsheet for reuse.
- City digits differ per city within the same bank, so always verify the full twelve digits the payer supplies rather than inferring from the first three.
- The sample 102100000001 is a format demonstration; real transfers must use the code supplied by the receiving bank.
- Only twelve consecutive digits are recognised, so codes with spaces or dashes are split first, and the tool does not verify the branch online.
- Distribution covers only the pasted valid codes, not all branches; existence is not verified online.