BIC Code Structure Explained (ISO 9362)
A BIC code is structured as an 8 or 11 character alphanumeric code divided into four key segments: the bank code, the ISO country code, the location code, and the optional branch code.
Segment-by-Segment Character Breakdown
Under the ISO 9362 standard, the layout of a BIC code is mathematically parsed as follows: 1. **Institution Code (Chars 1-4):** Four alphabetic characters representing the bank (e.g., `DEUT` for Deutsche Bank). This identifies the primary financial institution globally. 2. **Country Code (Chars 5-6):** Two letters representing the ISO 3166-1 country code (e.g., `DE` for Germany). This routes the transaction to the correct national clearing jurisdiction. 3. **Location Code (Chars 7-8):** Two characters (letters or digits) representing the city or region (e.g., `FF` for Frankfurt). A '1' in the eighth position indicates a passive participant not connected to the live SWIFT network. 4. **Branch Code (Chars 9-11):** Three optional alphanumeric characters identifying a specific branch or logical terminal (e.g., `XXX` for the primary head office). This allows banks to target specific departments or physical offices. Understanding this breakdown is vital for developing parsing software, as it allows validation scripts to quickly analyze input data and catch syntax errors before the transaction is dispatched to settlement systems. By verifying each block individually, systems can prevent routing errors at the source. The institution code is the primary key in SWIFT's directory. It is assigned during the bank's registration process and remains unique across the entire global database. If a bank operates under multiple brands, SWIFT may assign separate institution codes for each entity, allowing for clear distinction in clearing queues and transaction logs.
Structural Integrity and Parsing Logic
Routing systems parse BICs in sequence to validate their format. If a code fails the format mask (e.g., has numbers in the country code segment or contains invalid symbols), the validation system flags it immediately. This structured layout ensures that payments can be directed and routed to local payment clearance networks instantly. For example, when a wire enters a clearing gateway, the system splits the code into its constituent segments to verify compliance. If the country code does not match the beneficiary's declared country, the transaction is routed to a compliance queue for manual review, demonstrating the importance of precise structural formatting. Many automated validation APIs check the country code characters against the ISO list of country codes, ensuring that the country segment actually exists. This logic prevents routing systems from attempting to process transfers with invalid or fabricated country identifiers. Furthermore, checking the location code helps verify if the targeted bank branch has direct clearing capabilities, lowering the error rate for commercial liquidity management. The parsing logic is standardized across major operating packages, ensuring that financial applications can interpret the routing codes consistently regardless of the programming language used. The country code segment follows the ISO 3166-1 alpha-2 standard. This two-letter code is utilized by routing engines to verify the country of operation. If the country code does not match the bank's physical address, the payment system flags the wire for compliance review, ensuring that cross-border payments comply with national clearing guidelines and sanction protocols.
The Meaning of Passive BICs in the Structure
A critical detail in the location code segment is the distinction between active and passive participants. If the eighth character of the BIC is a number (specifically '1'), the code represents a passive participant. Passive BICs are listed in the directory for identification and reporting but cannot execute or receive direct messages over the SWIFT network. They rely on active parent institutions to clear their transactions, which is an important operational risk factor for corporate treasuries when setting up correspondent banking templates. When a system detects a passive BIC, it must lookup the active parent code to initiate the actual transfer, otherwise the wire will fail to route. Developers must design validation tables that handle these passive markers, ensuring that compliance checks are performed on both the passive entity and its clearing parent bank. This structure allows smaller regional banks to offer international services without investing in expensive network infrastructures, illustrating the modularity of the ISO 9362 standard. By routing through established intermediaries, passive participants can leverage the security of larger clearing hubs while maintaining their local customer relationships. The location code segment (characters 7-8) identifies the regional clearing center. SWIFT assigns these codes based on the city's volume of financial traffic. If the location code is alphanumeric, it indicates a specific city hub, whereas numeric codes are reserved for regional hubs. This categorization allows routing engines to balance transaction loads across the network, preventing bottlenecks during peak hours.
Related topics
BIC8 vs BIC11 Branch Codes: What is the Difference?
Discover the differences between 8-character BIC8 and 11-character BIC11 codes, and how branch identifiers affect payment routing.
ISO 9362 Standard: SWIFT Code Format Guidelines
Read our technical overview of the ISO 9362 standard. Understand the formatting, maintenance, and registry rules that govern BICs.
Frequently asked questions
- What do characters 7 and 8 in a SWIFT code mean?
- Characters 7 and 8 represent the location code, showing where the bank headquarters is situated. If character 8 is a '1', it indicates a passive participant BIC not active on the live messaging network, requiring a parent bank to settle. It helps route payments to the correct local clearing hub.
- Is the branch code in a BIC mandatory?
- No. The 3-character branch code (positions 9-11) is optional. If omitted, the code is treated as an 8-character BIC8 representing the primary head office of the institution, routing to their central clearing pool. However, using the 11-character format is preferred for clarity and targeting specific offices.
- Can characters 5 and 6 be numbers?
- No. Under the ISO 9362 standard, characters 5 and 6 must be alphabetic letters matching the ISO 3166-1 country code. Any digit in these positions violates the format mask and will trigger a transaction failure. System parsers flag this error instantly, preventing erroneous entries.
- What is the purpose of the first 4 characters?
- The first 4 characters are the bank code, uniquely identifying the financial institution. This segment is assigned by SWIFT during registration and remains unique across the entire global database. It forms the base of the routing address, allowing systems to look up the bank name.
Sources & references
- ISO 9362:2022 — Banking telecom messages (BIC) standard
- SWIFTRef Online Directory Gateway regulator