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.

The international system – SWIFT codes
For transferring money internationally, financial institutions and corporations rely on a system managed by the Society for Worldwide Interbank Financial Telecommunications -- SWIFT.

SWIFT is a member-owned cooperative of 10,800 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.

The code is constructed using a bank or institution code, a country code, a location code, and a branch code. Together, this is a comprehensive construct that effectively identifies every institution on the network, anywhere in the world.

The domestic U.S. system -- routing numbers
In function, 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. The first four digits are the routing code the Federal Reserve banks use to direct each transfer correctly through their system, and the second is the bank identifier used to notate the financial institution associated with the payment. The check digit is used to ensure that checks are correctly inputed into a system.

Americans most commonly know the routing numbers as the code printed on the bottom of paper checks, but it's also used for wire transfers, for payments via the automated clearinghouse system, and for direct deposits.

Check Routing Number Nuth Check

Routing number in this example is 129131673, appearing at the bottom left of the check. 

SWIFT or routing number?
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.

This article is part of The Motley Fool's Knowledge Center, which was created based on the collected wisdom of a fantastic community of investors. We'd love to hear your questions, thoughts, and opinions on the Knowledge Center in general or this page in particular. Your input will help us help the world invest, better! Email us at knowledgecenter@fool.com. Thanks -- and Fool on!


Try any of our Foolish newsletter services free for 30 days. We Fools may not all hold the same opinions, but we all believe that considering a diverse range of insights makes us better investors. The Motley Fool has a disclosure policy.