A bank code is a number that identifies which bank holds your account

A bank code is a set of digits assigned to a specific bank or branch. It tells the financial system which institution to send money to or pull money from. When you make a transfer, pay a bill, or set up direct deposit, the bank code ensures your payment reaches the right place.

Bank codes go by different names depending on where you are and what you're doing. In the United States, the most common version is the routing number (also called a routing transit number or RTN). Other countries use different systems: the UK uses sort codes, Canada uses institution numbers, and many other countries use SWIFT codes or IBAN numbers for international transfers.

You need a bank code whenever money moves between accounts at different banks. If you're transferring within the same bank, the bank usually doesn't need it. But for ACH transfers, wire transfers, direct deposit setup, or bill payments that pull from your account, the receiving or sending institution will ask for it.

Key Takeaways

  • A bank code (routing number in the US) identifies which bank holds an account and ensures transfers go to the correct institution.
  • You'll need your bank code for ACH transfers, wire transfers, direct deposit setup, and automatic bill payments.
  • Your routing number appears on the bottom left of your checks and is also available through your bank's website, app, or customer service.
  • Giving out your routing number and account number is safe—these are not secret like a password and are printed on every check you write.
  • Different countries use different bank code systems: the US uses routing numbers, the UK uses sort codes, and international transfers use SWIFT codes or IBAN numbers.

Where to find your bank code

If you have checks, look at the bottom left corner. The first set of nine digits is your routing number. This is the quickest way to find it if you have a checkbook nearby.

If you don't have checks or prefer not to dig them out, log into your bank's website or mobile app. Most banks display your routing number in the account details or settings section. Some banks label it "routing number," others call it "transit number" or "ABA number." If you can't find it in the app, call your bank's customer service line—they can tell you in under a minute.

You can also search online for your bank's routing number using the bank's name and your state. The Federal Reserve maintains a database of routing numbers, and many third-party sites (like Wise or your bank's own website) let you look it up by institution name and location.

How bank codes work in different types of transfers

When you set up a direct deposit for your paycheck, your employer's payroll system uses your routing number and account number to send money to your bank. The routing number tells the payroll processor which bank to contact; the account number tells that bank which account to deposit into.

For ACH transfers (the most common way to move money between personal accounts), both the sending and receiving banks use routing numbers to confirm the transaction. The sending bank routes the money through the ACH network to the receiving bank, which then deposits it into the correct account.

Wire transfers work similarly but move faster and cost money. You provide the receiving bank's routing number, the account number, and sometimes the account holder's name. The sending bank uses the routing number to contact the receiving bank directly and transfer the funds.

Automatic bill payments also use your routing number. When you set up a payment to your electric company or mortgage lender, you give them your routing number and account number so they can pull the payment from your account on the date you choose.

Bank codes for international transfers

If you're sending or receiving money from outside the United States, routing numbers don't work. Instead, international transfers use SWIFT codes (also called BIC codes) or IBAN numbers.

A SWIFT code is an eight- or eleven-character code that identifies a specific bank and branch worldwide. For example, a SWIFT code might look like CHASUS33. The first four letters identify the bank, the next two identify the country, the next two identify the city, and the last three (if included) identify the branch.

An IBAN (International Bank Account Number) is a longer code—up to 34 characters—that includes the country code, check digits, and the bank and account information all in one. European banks use IBANs heavily; many other countries do too. If you're receiving money from abroad, your bank can provide your IBAN.

When you send money internationally, you'll typically need the recipient's SWIFT code or IBAN, their account number, and their full name. Some banks also ask for an intermediary bank's routing information if the money has to pass through multiple institutions.

Is it safe to share your bank code

Yes. Your routing number and account number are not secret information. Your routing number is printed on every check you write and is publicly available through the Federal Reserve. Your account number appears on your checks too. Anyone who has written you a check has seen both numbers.

Sharing these numbers with your employer, a bill collector, or someone sending you money is completely safe. They cannot withdraw money from your account or access your funds using only the routing number and account number. They can only deposit money into your account or set up a transfer you've authorized.

What you should never share is your PIN, online banking password, or the full details of a card (the 16-digit number, expiration date, and CVV). Those are the secrets that protect your account. A routing number and account number alone cannot be used to steal from you.

What happens if you give the wrong bank code

If you provide an incorrect routing number, the transfer may be rejected before it leaves your bank. Your bank's system checks routing numbers against the Federal Reserve's database, and if the number doesn't match a real bank, the transaction won't go through.

If the routing number is real but belongs to a different bank than you intended, the money may go to the wrong institution. The receiving bank will then try to match the account number to an account at their bank. If no account matches, the receiving bank will reject the transfer and send it back to your bank, which will return it to you. This process usually takes three to five business days.

If the account number is also wrong but happens to match an account at the wrong bank, the money could be deposited into someone else's account. This is rare but possible. If this happens, contact your bank immediately. They can work with the receiving bank to recover the funds, though the process can take time.

Always double-check the routing number and account number before you authorize a transfer, especially for large amounts or one-time payments to a new recipient.

Bank codes for different account types

Most accounts at the same bank branch share the same routing number, whether the account is a checking account, savings account, or money market account. The routing number identifies the bank and branch; the account number identifies which specific account within that bank.

However, some large banks have multiple routing numbers depending on the state where the account was opened or the type of service. If you have accounts at multiple branches or opened your account in a different state than where you live now, the routing number may be specific to the branch or region where the account originated.

If you're unsure which routing number to use, ask your bank. They can confirm the correct routing number for your specific account. It's better to ask than to guess and have a transfer fail or go to the wrong place.

Frequently Asked Questions

Can someone steal money from my account if they have my routing number and account number?

No. A routing number and account number alone cannot be used to withdraw money or make unauthorized transfers. They can only be used to deposit money into your account or to set up a transfer you've authorized. To steal from your account, someone would need your PIN, password, or card details.

What's the difference between a routing number and a SWIFT code?

A routing number is used for transfers within the United States and identifies a specific bank or branch. A SWIFT code is used for international transfers and identifies a bank worldwide. If you're transferring money to another US bank, use the routing number. For international transfers, use the SWIFT code or IBAN.

Do I need a different routing number for each account I have?

Usually no. Most accounts at the same bank branch share the same routing number. The account number is what distinguishes one account from another. However, some large banks assign different routing numbers based on the state or region where the account was opened, so it's worth confirming with your bank if you have multiple accounts.

What should I do if a transfer went to the wrong account because I gave the wrong routing number?

Contact your bank immediately and explain what happened. Your bank can work with the receiving bank to trace the transfer and attempt recovery. The process can take several days to weeks, but banks are usually able to retrieve funds sent to the wrong account if you report it quickly.

Where do I find my bank code if my bank doesn't have a physical branch near me?

Online banks and credit unions display routing numbers in their account settings or help sections. You can also call their customer service line or search for the routing number on their website using your bank name and state. The Federal Reserve's routing number database is also searchable online.