Skip to content

bic ​

Validates that a field contains a valid BIC (Bank Identifier Code) / SWIFT code.

Options ​

OptionTypeDefaultDescription
messagestringlocale defaultCustom error message

Playground ​

Valid values ​

ValueNotes
"DEUTDEFF"Deutsche Bank Frankfurt (8 chars)
"BNPAFRPPXXX"BNP Paribas Paris (11 chars with branch)

Invalid values ​

ValueReason
"INVALID"Does not match BIC format
"DEUT1234"Digits in bank/country code positions

Notes ​

  • Empty string ("") always returns valid: true. Combine with notEmpty to require a value.
  • BIC is either 8 characters (no branch) or 11 characters (with branch code).

Released under the MIT License.