HomeValidatorsFinance & Global IDsSWIFT / BIC Code Validator

SWIFT / BIC Code Validator

Finance & Global IDs

Validate SWIFT/BIC codes for correct 8 or 11 character format instantly. Decodes bank code, country, location, and branch — client-side, nothing stored.

Reviewed by the thecalcu.com team · Last updated July 29, 2026

What is a SWIFT/BIC?

The SWIFT / BIC Code Validator checks whether a SWIFT code (Bank Identifier Code) follows the correct structure defined by ISO 9362. SWIFT/BIC codes are used in every international wire transfer to route payments between banks, the sending bank uses the recipient bank's BIC to direct the funds through the SWIFT network to the correct institution.

A valid SWIFT/BIC code is either 8 or 11 uppercase characters following the pattern BBBB CC LL [BBB]:

  • Bank code (4 chars): Identifies the bank (A–Z only)
  • Country code (2 chars): ISO 3166-1 alpha-2 country code (A–Z only)
  • Location code (2 chars): City/area identifier (A–Z and 0–9)
  • Branch code (3 chars, optional): Specific branch; 'XXX' means primary/head office

This validator checks:

  1. Length is exactly 8 or 11 characters
  2. First 4 characters are uppercase letters (A–Z)
  3. Characters 5–6 are uppercase letters (ISO country code format)
  4. Characters 7–8 are uppercase letters or digits
  5. If 11 characters: characters 9–11 are uppercase letters or digits

What it does not check: Whether the specific code is in the active SWIFT registry or belongs to a currently operating bank. For that, consult your bank's BIC lookup or the official SWIFT BIC directory. Use the IBAN Validator alongside this for complete international transfer validation.

All validation runs client-side. No data is transmitted.

Why Use a SWIFT / BIC Code Validator?

International wire transfers are rejected by correspondent banks if the SWIFT/BIC code is malformed, causing delays, return fees, and manual intervention. A quick structural check before initiating a transfer catches the most common errors: wrong length, lowercase characters, digits in the bank or country position.

Finance team use case: An Indian company's treasury department is initiating a USD wire transfer to a German supplier. The supplier's invoice lists the BIC as DEUTDEFF500. The validator immediately flags it as 11 characters with a valid structure, bank code DEUT, country DE, location FF, branch 500, confirming the format before the payment instruction is submitted.

Developer use case: A payment platform onboarding system collects SWIFT/BIC codes from international vendors. Adding real-time format validation at the input field prevents malformed codes from entering the database and reaching the payment rail.

Who Should Use This Validator?

Finance and treasury teams at Indian companies making international wire transfers, remittances, supplier payments, royalty transfers, who need to confirm SWIFT/BIC format before submitting payment instructions.

Developers building payment, remittance, or trade finance applications that accept SWIFT/BIC input. Real-time format validation at the form level reduces downstream payment failures.

Accountants and CA firms handling foreign currency transactions for clients who need to verify bank details before processing. Use alongside the IBAN Validator for European recipient accounts.

Importers and exporters confirming foreign bank details on LC (Letter of Credit) documents and SWIFT MT103 payment instructions.

What Insights Does the SWIFT / BIC Code Validator Give You?

A valid result decodes the BIC into its four components: bank code, country code, location code, and branch code (or 'primary office' if no branch is specified). It also flags passive participants (location code second character = '0') and reverse-billing codes (second character = '1'), structural flags that affect routing in the SWIFT network.

An invalid result specifies which component failed: bank code has non-letter characters, country code is not all letters, location/branch has invalid characters, or the total length is not 8 or 11.

How to use this SWIFT/BIC calculator

  1. Enter the SWIFT/BIC code in the input field, 8 or 11 characters.
  2. Check the Valid/Invalid badge, updates instantly.
  3. Read the details panel, bank code, country, location, and branch are decoded individually.
  4. Note any warnings, passive participant or reverse billing flags indicate routing nuances.
  5. Proceed to the IBAN Validator for the account number if you are validating a complete set of European bank details.
Show formula & methodology ↓Show less ↑

Formula & Methodology

Validation rules (ISO 9362):

Position 1–4:  [A-Z]{4}  , Bank code (letters only) Position 5–6:  [A-Z]{2}  , Country code (letters only, ISO 3166-1) Position 7–8:  [A-Z0-9]{2}, Location code (letters or digits) Position 9–11: [A-Z0-9]{3}, Branch code (optional, letters or digits) Total length:  8 or 11

Regex: /^[A-Z]{4}[A-Z]{2}[A-Z0-9]{2}([A-Z0-9]{3})?$/

Valid and invalid examples:

| Code | Valid? | Note |
|---|---|---|
| DEUTDEDB | ✓ | Deutsche Bank Frankfurt (8-char) |
| DEUTDEDBBER | ✓ | Deutsche Bank Berlin branch (11-char) |
| SBININBB | ✓ | State Bank of India Mumbai |
| HDFCINBB | ✓ | HDFC Bank India |
| DEUT1EDB | ✗ | Digit in bank code (position 4) |
| DEUTD3DB | ✗ | Digit in country code (position 6) |
| DEUTDEDBX | ✗ | 9 characters, must be 8 or 11 |

Related Tools

You may also find these useful: PAN Number Validator.

Frequently Asked Questions

What is a SWIFT/BIC code?
A SWIFT code (also called a BIC, Bank Identifier Code) is an 8 or 11 character alphanumeric code that uniquely identifies a bank or financial institution for international wire transfers. It is used by the SWIFT network (Society for Worldwide Interbank Financial Telecommunication) to route payments between banks across 200+ countries. Every cross-border bank transfer requires the recipient bank's SWIFT/BIC code.
What is the format of a SWIFT/BIC code?
A SWIFT/BIC code has the structure BBBBCCLLBBB: 4-letter bank code (B), 2-letter country code (C), 2-character location code (L), and an optional 3-character branch code (B). The code is either 8 characters (no branch code, primary office assumed) or 11 characters (with branch code). All characters must be uppercase letters (A–Z) or digits (0–9) in the location and branch positions.
What does each part of a SWIFT/BIC code mean?
The bank code (first 4 characters) is an abbreviation of the bank's name chosen by the institution. The country code (characters 5–6) is the ISO 3166-1 alpha-2 country code, IN for India, US for the United States, DE for Germany. The location code (characters 7–8) identifies the city or area; the second character being '0' means a passive participant (does not accept live SWIFT messages). The branch code (characters 9–11), if present, identifies a specific branch, 'XXX' indicates the primary or head office.
What is the difference between SWIFT and BIC?
SWIFT and BIC refer to the same thing. SWIFT is the network and the organisation; BIC (Bank Identifier Code) is the ISO standard (ISO 9362) for the code format. The terms are used interchangeably. Some financial institutions and documentation use 'BIC', others use 'SWIFT code' or 'SWIFT/BIC'. All three refer to the same 8 or 11 character identifier.
Does this validator confirm the SWIFT/BIC code is active?
No, the validator checks the structural format: correct length (8 or 11 characters), 4-letter bank code, 2-letter country code, and alphanumeric location/branch codes. It does not query the SWIFT registry to confirm the bank is currently a member or that the code is active. Real-time validation requires querying a SWIFT BIC directory or using the IBAN checker at your bank.
What is a passive SWIFT participant (location code ending in 0)?
When the second character of the location code is '0' (zero), the BIC belongs to a passive participant, an institution that is registered in the SWIFT directory but does not receive live FIN messages directly. Payments to passive participants are routed through an active correspondent bank. The validator flags this when the location code's second character is '0'.
Is my SWIFT/BIC data stored when I validate it?
No, all validation runs entirely in your browser using client-side JavaScript. The SWIFT/BIC code is never sent to any server, stored, or logged. The tool works offline once the page is loaded.
How is a SWIFT code related to an IBAN?
A SWIFT/BIC code identifies the bank; an IBAN (International Bank Account Number) identifies the specific bank account. An international wire transfer typically needs both: the IBAN to specify which account at the bank should receive the funds, and the BIC to route the message to the correct bank on the SWIFT network. Use the [IBAN Validator](/iban-validator/) to check an IBAN, and this tool to check the accompanying SWIFT/BIC code.
How do I use the SWIFT / BIC Code Validator?
Enter the SWIFT/BIC code in the input field. The validator uppercases the input automatically. The Valid/Invalid badge updates instantly. If valid, the details panel shows the decoded bank code, country, location, and branch components. If invalid, the error describes which part of the structure is incorrect.
What is the SWIFT code for Indian banks?
Indian banks have SWIFT/BIC codes with 'IN' as the country code (characters 5–6). For example, State Bank of India's SWIFT code is SBININBB (8-character form) or SBININBBXXX (11-character primary office form). HDFC Bank is HDFCINBB, ICICI Bank is ICICINBB. The 'BB' location code is typically used for Bombay/Mumbai (the financial centre). For IFSC code validation (used for domestic NEFT/RTGS transfers within India), use the [IFSC Code Validator](/in/ifsc-validator/).
How is a SWIFT/BIC different from an IFSC code?
IFSC (Indian Financial System Code) is used exclusively for domestic Indian interbank transfers via NEFT, RTGS, and IMPS. It is an 11-character code specific to the Indian RBI-regulated system. SWIFT/BIC is the international standard used for cross-border wire transfers, sending money from India to a foreign bank, or receiving foreign remittances into Indian accounts. Any international transfer needs a SWIFT/BIC; domestic transfers within India use IFSC.
Also known as
BIC code validatorSWIFT code checkerbank identifier codeinternational wire transfer codecheck SWIFT code