BIC/SWIFT Validator

Validate BIC/SWIFT codes

Understanding BIC/SWIFT Codes
TL;DR

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:

SegmentPositionLengthContentExample
Bank code1-44 lettersIdentifies the institutionBNPA
Country code5-62 lettersISO 3166-1 alpha-2 countryFR
Location code7-82 alphanumericCity or region identifierPP
Branch code9-113 alphanumericSpecific 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.

BIC Code Structure — BNPAFRPP A diagram showing the BIC code BNPAFRPP split into four labeled segments: BNPA (Bank Code), FR (Country Code), PP (Location Code), and the optional branch code XXX. B N P A F R P P X X X Bank Code Country Location Branch 4 letters — institution BNPA = BNP Paribas 2 letters — ISO 3166 FR = France 2 alphanumeric PP = Paris 3 alphanumeric (optional) XXX = head office BIC8 = BNPAFRPP | BIC11 = BNPAFRPPXXX Both refer to the same institution (head office implied when branch is omitted)

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

BICInstitutionCountryLocation
BNPAFRPPBNP ParibasFranceParis
DEUTDEFFDeutsche BankGermanyFrankfurt
CHASUS33JPMorgan ChaseUnited StatesNew York
BARCGB22BarclaysUnited KingdomLondon
CITIUS33CitibankUnited StatesNew York
UBSWCHZHUBSSwitzerlandZurich
HSBCHKHHHSBCHong KongHong 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:

  1. Sender provides details: The sender supplies the recipient’s IBAN (account number) and the recipient bank’s BIC.
  2. 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.
  3. SWIFT network routes the message: The SWIFT network uses the BIC to determine the destination institution and routes the message accordingly.
  4. 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.
  5. 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

Valid BIC8 Valid

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
Valid BIC11 Valid

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 BIC — Numeric Country Code Invalid

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