Merchant Category Codes: What They Are and How to Use Them
A merchant category code (MCC) tells a card program what kind of business a merchant is. Learn who assigns it, the codes business cards meet most, how to find a merchant's code, and how to use category locks without blocking the purchases your team needs.
VirtualCardMaker.com, powered by Zil Money is a financial technology company, not a bank. Banking and money movement services are provided through partner financial institutions, including Citizens Bank, N.A., and licensed service providers. FDIC insurance coverage applies only to eligible deposit products and accounts, and is subject to applicable terms, conditions, limitations, and requirements. Additional information regarding partner institutions, products, and services is available in the applicable terms and agreements.
Read summarized version with:
A merchant category code (MCC) is a four-digit number that shows what kind of business a merchant is, like 5411 for grocery stores. The merchant's payment processor picks the code, and your card program reads it to decide whether a company card allows the purchase.
This guide is for owners, finance managers and card admins who want to know what the code on a transaction means and how to use it to control spending. It covers who assigns MCC codes and which codes business cards see often. It also shows how to look up a merchant's code and what to do when a category lock blocks a purchase it should allow.
What is a merchant category code?
A merchant category code is a four-digit number attached to a business when it starts taking card payments. It sorts merchants into groups. Examples are service stations (5541), hotels (7011) and software stores (5734). Every card purchase carries the merchant's code, so the card program can see what kind of business took the payment.
The code describes the merchant as a whole. It does not list the items in the purchase. If an employee buys office chairs at a store coded as a department store, the transaction shows 5311, the department store code, not furniture.
Key facts about MCC codes
- Standard: merchant category codes follow ISO 18245, the international standard for codes by type of business, trade or service.
- Network lists: Visa publishes its codes in the Visa Merchant Data Standards Manual, and Mastercard in its Quick Reference Booklet. Common codes match across both, but some names differ.
- Uses: card programs use the code for spending controls and reports. Card networks use it to apply their own rules to each type of business.
Who assigns a merchant category code?
The merchant's acquirer assigns it. The acquirer is the company that sets a business up to accept cards. It often works through a payment processor. The Visa Core Rules say the acquirer must give each merchant location the code that most accurately describes its business. Mastercard requires a valid and accurate code in every authorization request.
That means a merchant does not usually pick its own code, and the company that issued your card does not choose it either. If a merchant thinks its code is wrong, it asks its processor or acquirer to review it.
Your card program reads the code. It does not set it. When a card declines at a store because of its category, the fix is on your side (allow that merchant or category on that card) or on the merchant's side (ask its processor to correct the code). The card program applies your rules to whatever code arrives.
How do merchant category codes work when a card is used?
The code travels with every purchase request. Here is what happens between the tap and the approval.
- The employee pays
They tap, swipe or type the card number at checkout, in person or online.
- The merchant's processor sends the request
The request carries the amount, the merchant's name and location, and the merchant category code.
- The card network routes it
Visa or Mastercard passes the request to the program that issued the card.
- The card's rules are checked
The program compares the code and amount with the card's settings, such as a category lock, a merchant lock or a spend limit.
- Approved or declined
The purchase goes through or is declined, and the code stays on the transaction record for reports and review.

Common merchant category codes for business spend
Business cards meet the same few dozen codes again and again. The merchant category code list below groups them by what a card is for. Names are shortened from the Visa manual. For every code, use the Visa or Mastercard list.
| Code | Category | Typical business use | On an employee card |
|---|---|---|---|
| Fuel and vehicles | |||
| 5541 | Service stations | Fuel for company vehicles | Allow on fuel cards |
| 5542 | Automated fuel dispensers | Pay-at-the-pump fuel | Allow on fuel cards |
| 7523 | Parking lots, parking meters and garages | Parking on job sites and trips | Allow on travel and field cards |
| 4214 | Motor freight carriers and trucking, moving and storage, local delivery | Freight and delivery services | Allow on logistics cards |
| Travel | |||
| 4511 | Airlines and air carriers | Flights | Allow on travel cards |
| 7011 | Lodging: hotels, motels and resorts | Hotel stays | Allow on travel cards |
| 7512 | Automobile rental agency | Rental cars | Allow on travel cards |
| 4111 | Local and suburban commuter transportation, including ferries | Trains, transit and ferries | Allow on travel cards |
| 4121 | Taxicabs and limousines | Taxis and rides | Allow on travel cards |
| Meals | |||
| 5812 | Eating places and restaurants | Client meals and travel dining | Allow on travel and meal cards |
| 5814 | Fast food restaurants | Quick meals on the road | Allow on travel and meal cards |
| Software and subscriptions | |||
| 5734 | Computer software stores | Software purchases | Allow on software cards |
| 7372 | Computer programming, data processing and integrated systems design services | SaaS tools and cloud services | Allow on software cards |
| 5968 | Direct marketing: continuity and subscription merchants | Recurring subscriptions | Allow with a monthly cap |
| 4814 | Telecommunication services | Phone and internet plans | Allow on telecom cards |
| Ads and services | |||
| 7311 | Advertising services | Ad spend and agencies | Allow on marketing cards |
| 7399 | Business services (not elsewhere classified) | A broad mix of B2B services | Case by case |
| 8999 | Professional services (not elsewhere classified) | Consultants and other services | Case by case |
| Office and supplies | |||
| 5111 | Stationery, office supplies, printing and writing paper | Office supply wholesalers | Allow on supply cards |
| 5943 | Stationery stores, office and school supply stores | Office supply stores | Allow on supply cards |
| 5045 | Computers, computer peripheral equipment and software | Laptops and accessories | Allow on IT cards |
| 5251 | Hardware stores | Tools and job-site supplies | Allow on field cards |
| General retail | |||
| 5411 | Grocery stores and supermarkets | Break room and event supplies | Case by case |
| 5310 | Discount stores | Stores that sell a bit of everything | Case by case, with a cap |
| 5311 | Department stores | Stores that sell a bit of everything | Case by case, with a cap |
| 5999 | Miscellaneous and specialty retail shops | A broad catch-all retail code | Case by case |
| Money movement and cash-like | |||
| 4829 | Money transfer | Sending money to another person | Block on employee cards |
| 6010 | Financial institutions: manual cash disbursements | Cash over the counter | Block on employee cards |
| 6011 | Financial institutions: automated cash disbursements | ATM cash | Block on employee cards |
| 6012 | Financial institutions: merchandise, services and debt repayment | Payments to financial institutions | Block on employee cards |
| 6051 | Non-financial institutions: foreign currency, money orders and cryptocurrency | Cash-like purchases | Block on employee cards |
| 6540 | Non-financial institutions: stored value card purchase or load | Loading other cards | Block on employee cards |
| 7995 | Betting, including lottery tickets and casino gaming chips | Gambling | Block on employee cards |
The last column is a starting point, not a rule. Each company sets its own policy. Airlines, car rental companies and hotel chains can also carry their own brand codes in the 3000s, so a travel card may need more than the general travel codes.
How to find a merchant's MCC
There is no single public directory that tells you which code a specific store will send. These steps usually get you the answer.
- Check a past purchase. Open an earlier transaction with that merchant in your card dashboard or statement. The code that arrived is solid evidence.
- Ask the merchant. The code appears on the merchant's processor statement or account settings.
- Read the meaning in the network list. Once you have the four digits, the Visa or Mastercard list tells you the category name.
- Test with a small purchase. If you still cannot tell, make one small purchase on a card with the lock you plan to use and read the result.
Online lookup tools explain what a code means. They cannot tell you which code a given store, website or checkout page will send, because a brand's online and in-store sales can run through different accounts.
How do I block a merchant category on a company card?
Card programs use merchant category codes in two ways:
- Allow-list: the card works only in the categories you choose. It suits a card with one job, like fuel or travel.
- Block-list: the card works everywhere except the categories you name. It suits a general card where you only want to shut out risky codes.
For a card with a single purpose, an allow-list is the tighter choice. A card that can only buy fuel cannot be used for gift cards, whatever the store's code.
Lock by merchant or by category?
- One known vendor (a software subscription, a regular supplier): lock the card to that merchant. Category codes are not needed.
- The vendor changes but the type of store does not (fuel, parking, or hotels on business travel): lock the card to those categories.
- Marketplaces, big-box stores and payment apps, where one code covers many sellers: use a merchant lock plus a spend limit, and require a receipt for each charge.
Starter allow-lists by card purpose
| Card purpose | Start with these codes | Watch out for |
|---|---|---|
| Fuel | 5541, 5542 | Snacks rung up with the fuel. Add a per-purchase limit. |
| Software | A merchant lock per vendor. As a backup: 5734, 7372, 5968 | Vendors that bill through an app store or reseller with a different code. |
| Travel | 4511, 7011, 7512, 4111, 4121, 7523, 5812, 5814 | Booking sites coded as travel agencies or software. Chains with their own brand codes. |
| Ads | A merchant lock per ad platform. As a backup: 7311 | Ad platforms that do not use 7311. Check a posted charge first. |
| Office and supplies | 5111, 5943, 5045, 5251 | Big-box stores (5310, 5311) that sell everything. Add them only with a cap. |
| Any general employee card | Block 4829, 6010, 6011, 6012, 6051, 6540, 7995 | Gift cards can also be sold under general retail codes. |
With Virtual Card Maker, you can limit each card to the merchant categories you choose, or to specific merchant names, and add spend limits, country limits and time windows on top. See how merchant and category locks work, or see every card control.
Give every card one job
Issue a separate virtual card for fuel, travel or software, each with its own category lock and spend limit.
When MCC controls fail and what to do
Category locks only work as well as the codes merchants send. These four cases cause the common surprises.
The merchant is miscoded. A restaurant set up as an entertainment venue, or a grocery store coded as general retail, will fail a meals or grocery lock. The code is wrong at the source, so only the merchant's processor can change it.
One code covers many sellers. Marketplaces and payment facilitators process sales for many businesses. Visa lets some multi-line marketplaces use 5262 (marketplaces), so an allowed category can still reach thousands of sellers.
The basket is mixed. A service station code tells you where the card was used, not what was bought. Snacks and drinks can ride along with fuel on the same charge.
Online and in-store differ. The same brand can send one code at the register and another on its website or app, so a lock that works in person can decline online.
Gift cards and cash-like buys can slip through general retail codes. Blocking 6540 and 6051 helps, but many stores sell gift cards under their usual retail code. On a general employee card, combine category blocks with a spend limit and a receipt rule.
Checklist when a category lock declines a purchase
- Read the declined attempt
Note the merchant name and the code it sent.
- Check the card's job
Decide whether the purchase fits what the card was issued for.
- Allow it narrowly
If it fits, add that merchant by name, or allow that one category on that card only.
- Flag a wrong code
If the merchant looks miscoded, ask it to review the code with its processor.
- Update your template
Record the fix so the next card for the same purpose starts with it.
What is an MCC code?
Who assigns a merchant category code?
Are MCC codes the same for Visa and Mastercard?
How can I find a merchant's MCC before I buy?
What MCC is Amazon?
What is the MCC for gas stations?
What is the difference between MCC 5812 and 5814?
Is an MCC the same as a NAICS or SIC code?
Put category locks to work
Merchant category codes work well when every card has a clear job. Give fuel, travel and software their own cards, lock each one to the categories it needs, and let spend limits catch what the codes miss.
Create your account to issue your first card, or talk to our team about setting up category locks for your business.
Issue a card with these rules on it.
Set the limit, restrict the merchant, choose the active window, and send the card. Every charge lands in one dashboard, already attributed.
Build one in Card StudioNext, on the same problem.
- Basics
Are virtual cards safe? How they protect your money.
Virtual cards are built to limit what a leaked number can do. Here is how spending limits, merchant restrictions, and quick cancellation protect your money online.
June 1, 2026 · 2 min read - Basics
How do virtual cards work?
A virtual card is a card number you create on screen instead of a piece of plastic. It is funded by your prepaid wallet, capped to a limit you set, and ready to use online, in apps, or in a store through Apple or Google Wallet. Here is what the number actually is, how a payment moves from swipe to settlement, and which controls you can set on each card.
June 17, 2026 · 10 min read - Basics
Can you use a virtual card in a store?
A virtual card is built for online checkout, but you can also pay in person at most stores by adding it to a phone wallet. Here is when that works and when it does not.
June 2, 2026 · 3 min read
The next vendor gets its own Visa card.
Not the shared one. Its own number, its own ceiling, its own line in the ledger.










