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

DEUTDEFF

Matches

  • DEUTDEFF

Input

BNPAFRPPXXX

Matches

  • BNPAFRPPXXX

Input

INVALID1

No match

Common use cases

  • International wire transfer form validation
  • Banking compliance / KYC pipelines
  • Payment file (XML/SEPA) ingestion
  • Treasury management system integrations