About the Author
The Motley Fool has a disclosure policy.
Invest better with The Motley Fool. Get stock recommendations, portfolio guidance, and more from The Motley Fool's premium services.

Ever wondered how financial institutions exchange cash from account to account or even from country to country? The key is the use of specialized codes -- SWIFT codes and routing numbers -- that tell the financial system where and how to send money.
For transferring money internationally, financial institutions and corporations rely on a system managed by the Society for Worldwide Interbank Financial Telecommunication -- SWIFT.
SWIFT is a member-owned cooperative of 11,000 banks and companies from over 200 countries worldwide. The SWIFT network primarily facilitates the transfer of payments, securities, and Treasuries between said parties the world over.
SWIFT codes are a string of eight to 11 alphanumeric identifiers that tell the system how to handle each transfer. Think of the identifiers as the digital address of each institution. The SWIFT system uses the codes to know where the transfer is coming from, where it's going, and how it's going to get there.
Here's how the code is constructed:
Together, this is a comprehensive construct that effectively identifies every institution on the network, anywhere in the world.
The routing number system used by U.S. financial institutions is very similar to the international SWIFT system. The biggest difference is that routing numbers are used for transfers domestically instead of the internationally used SWIFT code.
Each nine-digit routing number consists of two different codes and a check digit. Here's how it works:
Americans most commonly know the routing numbers as the code printed on the bottom of paper checks, but they're also used for wire transfers, payments via the automated clearing house (ACH) system, and direct deposits.
The most significant difference between SWIFT codes and routing numbers is whether a given payment is crossing international borders. If your payment is staying domestic, then the routing number will be used, and if the payment is going abroad, the SWIFT code will take the lead.
In both cases, the code is a critical tool to ensure that the money transfer moves from one place to the other quickly, efficiently, and accurately every time.