BIC/SWIFT Validator
Validate BIC/SWIFT codes
A BIC (Bank Identifier Code), commonly called SWIFT code, is an 8 or 11-character code that uniquely identifies a bank worldwide. It's required for international wire transfers.
What is a BIC?
A BIC (Bank Identifier Code) is a globally standardized code that uniquely identifies a financial institution. Defined under ISO 9362, the BIC system is managed by SWIFT (Society for Worldwide Interbank Financial Telecommunication), which is why BICs are commonly referred to as SWIFT codes.
Every bank, credit union, or financial institution that participates in the SWIFT network is assigned a unique BIC. This code acts as the institution’s “address” on the network, enabling automated routing of international payments, securities transactions, and trade finance messages.
When you initiate an international wire transfer, you provide the recipient’s IBAN (account identifier) and the recipient bank’s BIC (institution identifier). Together, these two codes ensure that funds are routed to the correct bank and credited to the correct account anywhere in the world.
BIC Structure
A BIC is either 8 or 11 characters long, composed of four segments that encode specific information about the institution:
| Segment | Position | Length | Content | Example |
|---|---|---|---|---|
| Bank code | 1-4 | 4 letters | Identifies the institution | BNPA |
| Country code | 5-6 | 2 letters | ISO 3166-1 alpha-2 country | FR |
| Location code | 7-8 | 2 alphanumeric | City or region identifier | PP |
| Branch code | 9-11 | 3 alphanumeric | Specific branch (optional) | XXX |
The bank code is always four letters and is typically an abbreviation of the institution’s name (BNPA for BNP Paribas, DEUT for Deutsche Bank, CHAS for Chase). The country code follows the ISO 3166-1 standard (FR for France, DE for Germany, US for the United States). The location code usually indicates the city (PP for Paris, FF for Frankfurt, 33 for New York). The branch code narrows identification to a specific office; if omitted or set to XXX, the code refers to the institution’s head office.
BIC8 vs BIC11
BICs come in two lengths, and the distinction is simple:
- BIC8 (8 characters): Contains only the bank code, country code, and location code. The branch code is omitted, implying the head office.
- BIC11 (11 characters): Includes all four segments. When the branch code is
XXX, it explicitly designates the head office.
In practice, BNPAFRPP and BNPAFRPPXXX are equivalent — both identify BNP Paribas head office in Paris. However, a BIC11 with a branch code other than XXX identifies a specific branch. For example, BNPAFRPPMAR would identify a BNP Paribas branch in Marseille.
Most payment systems and SWIFT messages accept both formats. When you enter a BIC8, the system internally treats it as a BIC11 by appending XXX. However, some older systems or specific message formats may require the full 11-character version, so it is safest to include the branch code when known.
Well-Known BIC Codes
| BIC | Institution | Country | Location |
|---|---|---|---|
BNPAFRPP | BNP Paribas | France | Paris |
DEUTDEFF | Deutsche Bank | Germany | Frankfurt |
CHASUS33 | JPMorgan Chase | United States | New York |
BARCGB22 | Barclays | United Kingdom | London |
CITIUS33 | Citibank | United States | New York |
UBSWCHZH | UBS | Switzerland | Zurich |
HSBCHKHH | HSBC | Hong Kong | Hong Kong |
How BIC is Used in International Payments
When processing an international wire transfer, the BIC serves as the critical routing identifier. Here is how it fits into the payment chain:
- Sender provides details: The sender supplies the recipient’s IBAN (account number) and the recipient bank’s BIC.
- Originating bank creates SWIFT message: The sender’s bank constructs an MT103 (or pacs.008 in ISO 20022) message, embedding the recipient bank’s BIC in the designated field.
- SWIFT network routes the message: The SWIFT network uses the BIC to determine the destination institution and routes the message accordingly.
- Correspondent banks (if needed): If no direct relationship exists between the two banks, the message passes through one or more correspondent banks, each identified by their own BIC.
- Beneficiary bank processes the credit: The receiving bank, identified by the BIC, extracts the IBAN from the message and credits the correct account.
The BIC is also used in SEPA (Single Euro Payments Area) transfers within Europe, though for SEPA Credit Transfers the BIC became optional in 2016 — banks can derive it from the IBAN. For non-SEPA international transfers, the BIC remains mandatory.
BIC Validation Rules
A valid BIC must satisfy the following criteria:
- Length: Exactly 8 or 11 characters
- Bank code (positions 1-4): Four uppercase letters (A-Z)
- Country code (positions 5-6): Two uppercase letters forming a valid ISO 3166-1 alpha-2 country code
- Location code (positions 7-8): Two alphanumeric characters (letters or digits)
- Branch code (positions 9-11, if present): Three alphanumeric characters
A BIC that contains digits in the country code position, uses lowercase letters, or has an incorrect length will fail validation. Unlike IBANs, BICs do not include a checksum — validation is purely structural and based on registry lookup.
Common Use Cases
- International wire transfers: BIC is required in SWIFT MT103 messages and ISO 20022 pacs.008 messages for routing payments to the correct bank
- SEPA payments: While optional since 2016 for SEPA Credit Transfers, BIC is still commonly used alongside IBAN for clarity and speed
- Correspondent banking: Banks use BICs to identify correspondent and intermediary banks in multi-hop payment chains
- Securities settlement: BICs identify custodian banks and settlement agents in securities transactions
- Trade finance: Letters of credit, guarantees, and documentary collections use BICs to identify issuing, advising, and confirming banks
- Regulatory reporting: Financial institutions use BICs in regulatory filings (e.g., FATCA, CRS) to identify counterparties
Try These Examples
A valid 8-character BIC for BNP Paribas in France. BNPA = bank code, FR = country (France), PP = location (Paris). BIC8 implicitly refers to the head office (branch code XXX).
BNPAFRPP The same BNP Paribas BIC expressed as 11 characters. The trailing XXX explicitly designates the head office. BNPAFRPP and BNPAFRPPXXX are functionally identical.
BNPAFRPPXXX Invalid because positions 5-6 must be an ISO 3166-1 alpha-2 country code (two letters). Here '12' is numeric, which violates the BIC specification.
BNPA1234