Validation
SWIFT / BIC Code
Validate SWIFT/BIC bank identifier codes — 8 chars (head office) or 11 chars (branch).
Try it in RegexPro →Available in
Pattern
regexengine-agnostic
^[A-Z]{6}[A-Z0-9]{2}(?:[A-Z0-9]{3})?$Raw source: ^[A-Z]{6}[A-Z0-9]{2}(?:[A-Z0-9]{3})?$
How it works
[A-Z]{6} matches the bank-and-country prefix. [A-Z0-9]{2} matches the location code. (?:[A-Z0-9]{3})? optionally matches the 3-character branch code, allowing both 8-char head-office BICs and 11-char branch BICs.
Examples
Input
DEUTDEFFMatches
DEUTDEFF
Input
BNPAFRPPXXXMatches
BNPAFRPPXXX
Input
INVALID1No match
—Common use cases
- •International wire transfer form validation
- •Banking compliance / KYC pipelines
- •Payment file (XML/SEPA) ingestion
- •Treasury management system integrations
Related patterns
ISO 3166-1 alpha-2 Country Code
ValidationValidate 2-letter ISO 3166-1 alpha-2 country codes (US, GB, FR, JP, etc.) — structural check only.
ISO 4217 Currency Code
ValidationValidate 3-letter ISO 4217 currency codes (USD, EUR, GBP, JPY, etc.) — structural check only.
Canadian Postal Code
ValidationMatch Canadian postal codes in the A1A 1A1 or A1A1A1 format with valid first-letter prefixes.
US ZIP Code
ValidationMatch US ZIP codes in 5-digit (12345) and ZIP+4 (12345-6789) formats.