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.
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.
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.
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 |
Frequently Asked Questions