SWIFT / BIC Code Validator
Finance & Global IDsValidate 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:
- Length is exactly 8 or 11 characters
- First 4 characters are uppercase letters (A–Z)
- Characters 5–6 are uppercase letters (ISO country code format)
- Characters 7–8 are uppercase letters or digits
- 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
- Enter the SWIFT/BIC code in the input field, 8 or 11 characters.
- Check the Valid/Invalid badge, updates instantly.
- Read the details panel, bank code, country, location, and branch are decoded individually.
- Note any warnings, passive participant or reverse billing flags indicate routing nuances.
- 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 11Regex:/^[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