HomeGuidesThe Ultimate Guide to SWIFT and BIC Codes › How to Verify a SWIFT Code Format Check Online

How to Verify a SWIFT Code Format Check Online

Verifying a SWIFT code online is the process of confirming that an 8 or 11 character code matches the ISO 9362 format mask and is currently active in the interbank directory.

Format Validation vs. Registry Checks

There are two levels of BIC code verification: 1. **Syntactic Validation:** Checking if the code follows the ISO 9362 layout (e.g. 4 letters, 2 country letters, 2 location characters, and 3 optional branch characters). This can be checked instantly offline in a web browser using regular expression patterns. 2. **Registry Verification:** Querying the registry directory to confirm the code represents an active financial institution. This ensures the bank is ready to receive interbank transfers and prevents transactions from being sent to closed branches. Syntactic validation acts as the initial filter, catching typos immediately, while registry checks verify the real-world status of the target node. Combining both steps ensures that payments are set up correctly, preventing expensive return loops. Modern business systems integrate these checks into their checkout dashboards, ensuring that clients enter correct routing paths before submitting transaction details. This two-step checking workflow is critical for maintaining clean database records in customer-facing payment portals, reducing the administrative burden on support teams who would otherwise need to resolve rejected cross-border transfers manually. Syntactic verification check checks the structure of a SWIFT code. By comparing the input against the ISO 9362 format mask, systems can flag simple typos instantly. This offline check does not verify if the bank is active. To verify active status, systems must query a database of registered BICs, which is updated daily.

The Straight-Through Processing (STP) Advantage

Validating BICs prior to submitting transfers helps corporate accounts maintain high straight-through processing (STP) rates. This reduces manual settlement corrections and prevents transaction delays. When a bank receives a payment request with a pre-validated BIC, it can automate the entire clearing sequence, routing the payment through correspondent networks without human intervention. Conversely, invalid BICs force the payment into an exception queue, triggering manual review fees, delay warnings, and potential tracer charges from intermediate settlement institutions. Operating with low STP rates increases administrative costs, demonstrating why automatic verification systems are a standard component of modern treasury gateways. By verifying routing codes in real-time, firms can ensure their supply chain settlements process without delay, improving relationships with global vendors and optimizing cash flows. Treasury operations that automate these checks report significant reductions in processing cycles, allowing compliance officers to focus on high-risk accounts rather than simple data entry formatting exceptions. Straight-through processing (STP) is the key metric for payment operations. By validating BICs at the point of entry, banks can automate payment routing, reducing the need for manual intervention. This automation lowers transaction processing costs, ensuring that international wires clear faster and with fewer errors, which improves customer satisfaction.

Edge Case: Active vs. Deactivated BICs

A common point of failure in payment systems is the use of deactivated BICs. An institution may pass the format structure check but still fail execution because the bank went out of business or merged. SWIFT publishes directory updates to decommission obsolete codes. Automated systems must pull these registry updates daily. If a system relies on stale data, it risks routing payments to inactive clearing nodes, resulting in funds being frozen or returned after a delay of several business days. Developers should design verification rules that combine regex format checks with daily database updates to ensure highest accuracy. This double-layer validation ensures that your system catches not only simple typos but also structural changes in the global banking registry, protecting corporate funds from being misrouted to closed entities. Integrating automated directory pulls into the payment engine prevents these edge cases from disrupting day-to-day liquidity management, keeping payment networks functioning smoothly. Active and deactivated BICs are published in SWIFT's directory. If a bank merges or closes, its code is removed from the active list. If a system uses stale reference data, it risks routing payments to closed nodes, resulting in frozen wires that require manual intervention by correspondent banks to retrieve and credit.

Related topics

BIC Code Structure Explained (ISO 9362)

Learn how a BIC/SWIFT code is structured. Analyze the institution, country, location, and branch codes defined by ISO 9362.

ISO 9362 Standard: SWIFT Code Format Guidelines

Read our technical overview of the ISO 9362 standard. Understand the formatting, maintenance, and registry rules that govern BICs.

Frequently asked questions

How can I check if a SWIFT code is valid?
Use our search tool to verify if a code is present in the database, checking its bank name, city, and active country code. This runs a syntactic check and cross-references our offline registry database. If the code is not found, verify the spelling with your beneficiary. Never send money to an unverified code.
Can a valid SWIFT code still fail a wire transfer?
Yes. A code can pass format checks but still fail if it represents an inactive bank branch, is subject to clearing restrictions, has been deactivated in the daily directory, or if the account details are incorrect. Compliance checks at intermediary banks can also halt transfers. Always confirm the branch details before sending.
What regex pattern is used to check a SWIFT code?
The standard regex pattern to validate a SWIFT code format is `^[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?$`. This checks the institution, country, location, and optional branch structure. It is case-insensitive in most input fields but should be normalized to uppercase. Most developers use this pattern in checkout forms.
Who maintains the master list of active BICs?
SWIFT, as the official registration authority designated by the ISO, maintains the master list. They publish regular directories containing all registered BICs globally. Financial institutions license these directories to keep their internal databases aligned. This ensures that their routing tables remain current.

Sources & references

← Back to The Ultimate Guide to SWIFT and BIC Codes

Copied code: